【问题标题】:phpMyAdmin Shows Deprecation errorsphpMyAdmin 显示弃用错误
【发布时间】:2018-03-15 00:38:24
【问题描述】:

当我在我的 Ubuntu 16.04.3 服务器上登录我的 phpMyAdmin 4.5.4.1deb2ubuntu2 时,我收到了很多弃用通知:

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)

这里是complete list of error messages

我尝试在这里关注this answer,但这也没有用。 sudo apt-get updatesudo apt-get upgrade 也没有改变。

【问题讨论】:

    标签: phpmyadmin


    【解决方案1】:

    尝试使用aptitude reinstall phpmyadmin php-gettext php-mbstringapt install --reinstall phpmyadmin php-gettext php-mbstring 重新安装phpmyadmin 的软件包并重新加载您的页面。

    如果它们再次显示,也可能是 E_USER_DEPRECATED,请按如下方式更改 php.ini 中的错误报告

    error_reporting = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED & ~E_STRICT

    并重新加载您的网络服务器。

    【讨论】:

    • 即使将此添加到php.ini 我仍然得到相同的结果..许多弃用通知..
    猜你喜欢
    • 2019-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-15
    • 2020-04-16
    相关资源
    最近更新 更多