phpMyAdmin Class 'PMA_Message' not found i

2019-07-04 11:18发布

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).

标签: phpmyadmin
4条回答
姐就是有狂的资本
2楼-- · 2019-07-04 11:39

I fixed this issue by restarting apache.

查看更多
甜甜的少女心
3楼-- · 2019-07-04 11:47

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

查看更多
我命由我不由天
4楼-- · 2019-07-04 11:47

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

查看更多
别忘想泡老子
5楼-- · 2019-07-04 11:52

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

Fixed the issue by clearing the APC opcode cache.

查看更多
登录 后发表回答