带有 phpmyadmin 的 PHP 7 提供了大量弃用通知 [英] PHP 7 with phpmyadmin gives lots of Deprecation Notices
本文介绍了带有 phpmyadmin 的 PHP 7 提供了大量弃用通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有 Ubuntu 16.04 LTS,安装了 PHP7 和 phpmyadmin.但是,我收到了很多弃用通知,例如:
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)?
推荐答案
我遇到了这个问题,并通过简单地重新安装 phpmyadmin 及其依赖项解决了它.运行以下命令:
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!
这篇关于带有 phpmyadmin 的 PHP 7 提供了大量弃用通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文