Page 1 of 1

"Deprecation Notice" message on login page of phpMyAdmin

Posted: Tue Dec 13, 2016 6:40 am
by baijianpeng
Recently I completely re-installed my VPS, used Ubuntu 16.04 64-bit as the operating system, then installed VestaCP 0.9.8-17.

Today when I tried to login phpMyAdmin, I saw following messages below the login form:
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)
Deprecation Notice in ./../php/php-gettext/streams.php#84
Methods with the same name as their class will not be constructors in a future version of PHP; FileReader 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)
Deprecation Notice in ./../php/php-gettext/streams.php#145
Methods with the same name as their class will not be constructors in a future version of PHP; CachedFileReader 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)
Deprecation Notice in ./../php/php-gettext/gettext.php#36
Methods with the same name as their class will not be constructors in a future version of PHP; gettext_reader has a deprecated constructor

Backtrace

./../php/php-gettext/gettext.inc#42: 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)
What does this mean?

How to solve this problem?

Thank you.

Re: "Deprecation Notice" message on login page of phpMyAdmin

Posted: Tue Dec 13, 2016 6:47 am
by baijianpeng
Ok, this issue solved easily with editing the php.ini file :

file path: /etc/php/7.0/apache2/php.ini

Change error_reporting value to:

Code: Select all

error_reporting = ~E_DEPRECATED & E_ALL.
Then restart Apache:

Code: Select all

# systemctl restart apache2
Well, the "Deprecation Notice" message no longer shown there.

Re: "Deprecation Notice" message on login page of phpMyAdmin

Posted: Sun Jun 18, 2017 10:01 pm
by nside