Search code examples
phpmyadminphp-7ubuntu-16.04

PHP 7 with phpmyadmin gives lots of Deprecation Notices


I have Ubuntu 16.04 LTS running with PHP7 and phpmyadmin installed. However, I get a lot of deprecation notices like:

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)

Is this a problem? How can I get rid of these notices (they pop up each time a page is loaded or action is performed)?


Solution

  • 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!