Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1835 Malformed communication packet

maifeld
Thu, 05 Nov 2020 18:06:15 +0000
Software Support

OJS was down for us this morning due to a bug in MariaDB rolled out last night. I was able to resolve it by upgrading PHP to 7.3 and thought I would share with other users. Below is the error message I found for OJS; then I discovered other sites on our server were also having similar SQL issues. Here is the bug:

https://jira.mariadb.org/browse/MDEV-24121?focusedCommentId=171262&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-171262

Application Version - OJS 3.2.1.1

Description of issue
White Screen of Death once logged in

Error log messages

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1835 Malformed communication packet in /home/username/public_html/ojs/lib/pkp/lib/vendor/illuminate/database/Connectors/MySqlConnector.php:57 Stack trace:
#0 /home/username/public_html/ojs/lib/pkp/lib/vendor/illuminate/database/Connectors/MySqlConnector.php(57): PDOStatement->execute()
#1 /home/username/public_html/ojs/lib/pkp/lib/vendor/illuminate/database/Connectors/MySqlConnector.php(30): Illuminate\Database\Connectors\MySqlConnector->configureEncoding(Object(PDO), Array)
#2 /home/username/public_html/ojs/lib/pkp/lib/vendor/illuminate/database/Connectors/ConnectionFactory.php(182): Illuminate\Database\Connectors\MySqlConnector->connect(Array) #3 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors{closure}()
#4 /home/username/public_html/ojs/lib/pkp/lib/vendor/illuminate/database/Connection.php(919): call_user_func(Object(Closure))
#5 /home/username/public_html/ojs/lib/pkp/lib/vendor/illuminate/database/Conne in /home/username/public_html/ojs/lib/pkp/lib/vendor/illuminate/database/Connection.php on line 664

$ php --version
PHP 7.2.34 (cli) (built: Nov 4 2020 16:01:29) ( NTS )

$ mysql -V
mysql Ver 15.1 Distrib 10.2.34-MariaDB, for Linux (x86_64) using readline 5.1

Used WHM to update this domain to PHP 7.3.

5 posts - 4 participants