Fatal Error in Gdn_Database.Query();

MySQL server has gone away

select count(c.CommentID) as `CountComments` from `GDN_Comment` `c` where `c`.`DiscussionID` = :cDiscussionID and (`c`.`DateInserted` < :cDateInserted)

The error occurred on or near: /home/paulus/mi6community.com/library/database/class.database.php

417:                 if (!$message) {
418:                     $message = $ex->getMessage();
419:                 }
420: 
421:                 trigger_error($message, E_USER_ERROR);
422:             }
423: 
424:         }
425: 

Backtrace:

/home/paulus/mi6community.com/library/database/class.database.phpPHP::gdn_ErrorHandler();
[/home/paulus/mi6community.com/library/database/class.database.php:421] PHP::trigger_error();
[/home/paulus/mi6community.com/library/database/class.sqldriver.php:1707] Gdn_Database->query();
[/home/paulus/mi6community.com/library/database/class.sqldriver.php:664] Gdn_SQLDriver->query();
[/home/paulus/mi6community.com/applications/vanilla/models/class.commentmodel.php:954] Gdn_SQLDriver->get();
[/home/paulus/mi6community.com/applications/vanilla/controllers/class.discussioncontroller.php:359] CommentModel->getOffset();
[/home/paulus/mi6community.com/library/core/class.dispatcher.php:862] DiscussionController->comment();
[/home/paulus/mi6community.com/library/core/class.dispatcher.php:279] Gdn_Dispatcher->dispatchController();
[/home/paulus/mi6community.com/index.php:29] Gdn_Dispatcher->dispatch();

Variables in local scope:

[sql] 'select count(c.CommentID) as `CountComments`
from `GDN_Comment` `c`
where `c`.`DiscussionID` = :cDiscussionID
  and (`c`.`DateInserted` < :cDateInserted)'
[inputParameters] array (
  ':cDiscussionID' => 10108,
  ':cDateInserted' => '2024-08-09 22:54:59',
)
[options] array (
  'Type' => 'select',
  'Slave' => NULL,
  'ReturnType' => 'DataSet',
)
[returnType] 'DataSet'
[tries] 2
[try] 0
[pDO] array (
)
[pDOStatement] array (
  'queryString' => 'select count(c.CommentID) as `CountComments`
from `GDN_Comment` `c`
where `c`.`DiscussionID` = :cDiscussionID
  and (`c`.`DateInserted` < :cDateInserted)',
)
[state] '00000'
[code] NULL
[message] 'MySQL server has gone away|Gdn_Database|Query|select count(c.CommentID) as `CountComments`
from `GDN_Comment` `c`
where `c`.`DiscussionID` = :cDiscussionID
  and (`c`.`DateInserted` < :cDateInserted)'
[ex] array (
)
[php_errormsg] 'PDOStatement::execute(): Error reading result set\'s header'

Need Help?

If you are a user of this website, you can report this message to a website administrator.

If you are an administrator of this website, you can get help at the Vanilla Community Forums.

Additional information for support personnel: