imno007
Well-known member
Okay, I recently moved to a new server (Litespeed/CyberPanel) and I'm seeing errors like those below a few times throughout the day. It seems to be completely random, happening when clicking whatever, even once during log-in to the site and once or twice when navigating the admin, and it's resolved by just refreshing the page once or twice. I'm an idiot when it comes to this stuff, so some ideas on a likely culprit would be appreciated.
and
An exception occurred: [XF\Db\Exception] MySQL statement prepare error [2006]: MySQL server has gone away in src/XF/Db/AbstractStatement.php on line 212
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 39
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 54
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 79
XF\Db\AbstractAdapter->query() in src/XF/Mvc/Entity/Finder.php at line 1163
XF\Mvc\Entity\Finder->fetch() in src/XF/Mvc/Entity/Manager.php at line 212
XF\Mvc\Entity\Manager->findByIds() in src/XF/Navigation/NodeType.php at line 192
XF\Navigation\NodeType::loadPendingNodeData() in src/XF/Navigation/NodeType.php at line 113
XF\Navigation\NodeType::displayNodeExtended() in src/XF/Navigation/NodeType.php at line 152
XF\Navigation\NodeType::displayNode() in internal_data/code_cache/navigation_cache.php at line 607
XF\Pub\App->{closure}() in src/XF/Template/Templater.php at line 5768
XF\Template\Templater->renderNavigationClosure() in src/XF/Pub/App.php at line 475
XF\Pub\App->getNavigation() in src/XF/Pub/App.php at line 428
XF\Pub\App->renderPageHtml() in src/XF/App.php at line 1769
XF\App->renderPage() in src/XF/Mvc/Dispatcher.php at line 310
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 44
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1934
XF\App->run() in src/XF.php at line 333
XF::runApp() in index.php at line 13
and
An exception occurred: [XF\Db\Exception] Connection refused in src/XF/Db/Mysqli/Adapter.php on line 160
XF\Db\Mysqli\Adapter->makeConnection() in src/XF/Db/Mysqli/Adapter.php at line 28
XF\Db\Mysqli\Adapter->getConnection() in src/XF/Db/AbstractAdapter.php at line 51
XF\Db\AbstractAdapter->connect() in src/XF/Db/AbstractAdapter.php at line 73
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 91
XF\Db\AbstractAdapter->fetchOne() in src/XF/Session/DbStorage.php at line 30
XF\Session\DbStorage->getSession() in src/XF/Session/Session.php at line 53
XF\Session\Session->start() in src/XF/App.php at line 672
XF\App->XF\{closure}() in src/XF/Container.php at line 28
XF\Container->offsetGet() in src/XF/Pub/App.php at line 39
XF\Pub\App->XF\Pub\{closure}() in src/XF/Container.php at line 28
XF\Container->offsetGet() in src/XF/App.php at line 2253
XF\App->session() in src/XF/Pub/App.php at line 91
XF\Pub\App->start() in src/XF/App.php at line 1930
XF\App->run() in src/XF.php at line 333
XF::runApp() in index.php at line 13