Yesterday when i open phpmyadmin on my laptop which runs lubuntu 16.04 and php 7.0, i get a bunch of error message like this:
Deprecation Notice in ./../php/php-gettext/streams.php#48
Methods with the same name as their class will not be constructors in a future version of PHP; StringReader has a deprecated constructor
Backtrace
./../php/php-gettext/gettext.inc#41: require()
./libraries/select_lang.lib.php#477: require_once(./../php/php-gettext/gettext.inc)
./libraries/common.inc.php#569: require(./libraries/select_lang.lib.php)
./index.php#12: require_once(./libraries/common.inc.php)
I don't know what causes this, but maybe it has something to do with other program that i install on my lubuntu, because i remember phpmyadmin was working fine before.
Anyway, the error message was showing that there are some deprecated php classes such as StringReader, FileReader, CacheFileReader, all of these classes related to php-gettext and mbstring package.
You can ignore these error message and phpmyadmin will still working, but every time you load page on phpmyadmin the deprecation notice will show up again, it's so annoying.
So how to get rid of this error message? the solution is to reinstall phpmyadmin along with php-gettext and php-mbstring package. Here's what you need to do:
The solution:
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
trust me it works!
No comments:
Post a Comment