XF 2.1 Server problem with 10.3.26-MariaDB and PHP: 7.3.6


Before two days my site went down all day when my host provider make some updates.
I know for sure that went from 7.1.33 to 7.3.6 and 10.3.26-MariaDB.
After that I can not do any updates without problem.
It begin like that

503 Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
And with the following errors.

An exception occurred: [XF\Db\Exception] MySQL statement prepare error [2006]: MySQL server has gone away in src/XF/Db/AbstractStatement.php on line 228

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 94
XF\Db\AbstractAdapter->query() in src/XF/Session/DbStorage.php at line 57
XF\Session\DbStorage->writeSession() in src/XF/Session/Session.php at line 215
XF\Session\Session->save() in src/XF/Install/App.php at line 190
XF\Install\App->complete() in src/XF/App.php at line 2194
XF\App->run() in src/XF.php at line 391
XF::runApp() in install/index.php at line 14

And the next


Any ideas, please?
First answer from my host is...
The solution to the problem you are facing is to ask the xenforo community for a patch for the problem with upgrading MariaDB to your php version.

I am very confused, any help is welcome
Last edited:


Well-known member
Still having problem even using PHP 7.3.x?

I also got similar issue:

Tom McIntyre

Active member
Sounds surprisingly close to the problems I am having after upgrade to MariaDB and PHP7.3

Is there anyone available to help with this problem on a private server? We will need PHP configured properly and ImageMagick installed since it was removed when PHP was upgraded to 7.3.

Willing to pay.