Fix “Class ‘PMA_Message’ not found” in phpMyAdmin with nginx + PHP_FPM

After updating phpMyAdmin I got this error:

PHP message: PHP Fatal error:  Class 'PMA_Message' not found in /usr/share/phpMyAdmin/libraries/Message.class.php on line 649" while reading upstream, client: xxx.xxx.xxx.xxx, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "myweb.com"
2014/12/20 18:05:28 [error] 27827#0: *30369 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined property: PMA_Error::$hash in /usr/share/phpMyAdmin/libraries/Error.class.php on line 169
PHP message: PHP Notice:  Undefined property: PMA_Error::$isDisplayed in /usr/share/phpMyAdmin/libraries/Message.class.php on line 724
PHP message: PHP Notice:  Undefined property: PMA_Error::$params in /usr/share/phpMyAdmin/libraries/Message.class.php on line 538

The problem was that the /var/lib/php/session owner group had changed and was no more owned by nginx. This solved the issue:

# chown root:nginx /var/lib/php/session

PhpMyAdmin-Logo

Ref: http://incredimike.com/2011/04/phpmyadmin-installation-errors/

You might also like

Fix “following signatures couldn’t be verified because the public key is not available” in Ubuntu
If you get a message like this when updating with apt-get:W: GPG error: http://extras.ubuntu.com...

Fix “Configuration of pmadb… not OK” in phpMyAdmin
You may get this message in pmpMyAdmin:To fix this you have to import/create the phpmyadmin database...

“Uncaught exception ‘ErrorException’ with message ‘proc_open(): fork failed” with composer
I got this error while updating with composer:PHP Fatal error: Uncaught exception 'ErrorException'...

Send email with SMTP and Plain Auth via telnet
First connect to the server. It's usualy on port 25 but this can change from server to server:telnet...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.