Php 7 With Phpmyadmin Gives Lots of Deprecation Notices

PHP 7 with phpmyadmin gives lots of Deprecation Notices

I had this problem and solved it with a simple reinstall of phpmyadmin and its dependencies. Run the following commands:

sudo apt-get remove --purge phpmyadmin php-gettext php-mbstring -y
sudo apt-get autoremove -y
sudo apt-get update
sudo apt-get install phpmyadmin php-gettext php-mbstring -y

Once reinstalled, you should be good as new!

Deprecation Notice in phpMyAdmin on Centos 7

What version of phpMyAdmin are you running? There appears to be a php compatibility issue with php7.4

I would recommend updating phpMyAdmin to the latest version compatible with with php7.4.

https://www.phpmyadmin.net/news/2020/1/8/phpmyadmin-494-and-501-are-released/

Alternatively - and I wouldn't advocate doing this in a production environment - you could suppress deprecated messages. For example you could change the error reporting setting in your php.ini to something like:

error_reporting = E_ALL ^ E_DEPRECATED

Getting Deprecation notice errors in Phpmyadmin

It should be ok - this means that some code is planned to be removed, but PHPmyadmin should be working correctly.

After update, situation can change - then you will need to adjust to situation.

Always is better to use newest version of PHP and PHPMyAdmin.



Related Topics



Leave a reply



Submit