• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Updating from RC1 to RC2 reported this error

Bionic Rooster

Well-known member
Update stopped with this error
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

  1. XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 174
  2. XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 36
  3. XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 46
  4. XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 69
  5. XF\Db\AbstractAdapter->query() in src/XF/Session/DbStorage.php at line 57
  6. XF\Session\DbStorage->writeSession() in src/XF/Session/Session.php at line 215
  7. XF\Session\Session->save() in src/XF/Install/App.php at line 142
  8. XF\Install\App->complete() in src/XF/App.php at line 1866
  9. XF\App->run() in src/XF.php at line 328
  10. XF::runApp() in install/index.php at line 14

Chris D

XenForo developer
Staff member
This generally indicates MySQL server connectivity issues or timeouts.

Can generally be solved by changing wait_timeout and max_allowed_packet in my.cnf or similar.