A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): MySQL server has gone away

Filename: mysqli/mysqli_driver.php

Line Number: 307

Backtrace:

File: /home2/besthubp/news.besthubpages.com/application/models/Post_model.php
Line: 322
Function: query

File: /home2/besthubp/news.besthubpages.com/application/controllers/Profile_controller.php
Line: 33
Function: get_post_count_by_user

File: /home2/besthubp/news.besthubpages.com/index.php
Line: 325
Function: require_once

Database Error

A Database Error Occurred

Error Number: 2006

MySQL server has gone away

SELECT COUNT(table_posts.id) AS count FROM (SELECT posts.id, posts.lang_id, posts.title, posts.title_slug, posts.summary, posts.category_id, posts.image_big, posts.image_slider, posts.image_mid, posts.image_small, posts.image_mime, posts.slider_order, posts.featured_order, posts.post_type, posts.image_url, posts.user_id, posts.pageviews, posts.created_at, categories.name AS category_name, categories.name_slug AS category_slug , categories.color AS category_color, users.username AS author_username, users.slug AS author_slug, (SELECT COUNT(comments.id) FROM comments WHERE posts.id = comments.post_id AND comments.parent_id = 0 AND comments.status = 1) AS comment_count FROM posts INNER JOIN categories ON categories.id = posts.category_id INNER JOIN users ON users.id = posts.user_id WHERE posts.is_scheduled = 0 AND posts.visibility = 1 AND posts.status = 1 AND posts.lang_id = 1 AND posts.user_id=1) AS table_posts

Filename: models/Post_model.php

Line Number: 322

Database Error

A Database Error Occurred

Error Number: 2006

MySQL server has gone away

INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('9f490671123dbfec6def709867ca4d1c8e24155d', '3.239.158.36', 1615287021, '__ci_last_regenerate|i:1615286983;')

Filename: libraries/Session/drivers/Session_database_driver.php

Line Number: 237

Database Error

A Database Error Occurred

Error Number: 2006

MySQL server has gone away

SELECT RELEASE_LOCK('638c5479e5f05e029358aba4e7efe388') AS ci_session_lock

Filename: libraries/Session/drivers/Session_database_driver.php

Line Number: 424