4

I just got this error (no errors in phpMyAdmin for the last 2 years):

PHP Fatal error: Class 'PMA_Message' not found in /usr/share/phpMyAdmin/libraries/Error.class.php on line 24

I tried searching the net and links like

but none solved my issues, and strangely enough - these are only two links which pop up in the first 50 links of google search for this error. So, please shed some light on this.

Btw, the site which is hosted on this server works fine, DB works fine (mysql, login via SSH).

3
  • I am also having this problem on cent os. I looked at the yum log and found this Sep 25 04:00:18 Updated: phpMyAdmin-4.0.10.2-2.el6.noarch. I am guessing something went wrong with a release and downgrading the package should fix it. Sep 25, 2014 at 17:14
  • Yes, I should have mentioned - I'm on CentOS. Did the downgrade help you?
    – Nikola
    Sep 25, 2014 at 17:30
  • I haven't tried it yet...I am going to let my host do the downgrade for me (I am not great at this stuff) Sep 25, 2014 at 17:31

4 Answers 4

3

I fixed this issue by restarting apache.

1
  • Thanks, in my case the reload was enough (service httpd reload)
    – Nikola
    Sep 26, 2014 at 5:20
0

I received that error message after the yum update last night.

Fixed the issue by clearing the APC opcode cache.

1
  • I tried it by doing apc_clear_cache(), but that didn't fix the problem Sep 25, 2014 at 18:16
0

Just finished fixing after 2 hours of googling...

The problem appeared because of deleting the tmp session folder (not default /var/lib/php/session in my case it was /tmp/ext_www/my.subdomain.for.phpmyadmin/)

This error message

PHP Fatal error: Class 'PMA_Message' not found in /usr/share/phpMyAdmin/libraries/Error.class.php on line 24

don't show actual problem. Use your logs or config to find out valid session folder.

In my case I found this by installing adminer at the phpmyadmin folder, it showed me the proper error message about "writeability" of session folder.

Sorry for my bad english, hope this could help someone

0

less /etc/php.ini

session.save_path = "/var/lib/php/session"

ll /var/lib/php/session

drwxrwx--- 2 root apache 397312 Feb 9 10:41 session

chmod 777 /var/lib/php/session

http://www.php.net/manual/en/session.configuration.php#ini.session.save-path

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.