我安装了Ubuntu16.04LTS,安装了PHP7和phpmyadmin。然而,我收到了很多反对意见的通知,例如:
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)这有问题吗?我如何处理这些通知(每次加载页面或执行操作时都会弹出)?
发布于 2017-02-11 16:24:31
我遇到了这个问题,并通过简单的phpmyadmin及其依赖项的重新安装来解决它。运行以下命令:
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一旦重新安装,你应该是好的新的!
发布于 2017-03-15 20:00:33
我解决这个问题的方法是遵循16.04版本的phpmyadmin中的折旧通知错误的askubuntu指令。它涉及更改/usr/share/php/php-gettext/streams.php中的三行,以及/usr/share/php/gettext.php/gettext.php中的一行。
从该链接中,您需要进行以下更改(如果您有ubuntu16.04):
sudo nano /usr/share/php/php-gettext/streams.php第48行StringReader错误.
到52号线换乘
function StringReader ($str='') {至
function __construct($str='') {第84行FileReader错误
到90号线换乘
function FileReader($filename) {至
function __construct($filename) {第145行CacheFileReader错误
到146线换乘
function CachedFileReader($filename) {至
function __construct($filename) {使用sudo nano /usr/share/php/php-gettext/gettext.php.
第36行gettext_reader { error
我想你现在明白要点了,到第101行去换衣服
function gettext_reader($Reader, $enable_cache = true) {至
function __construct($Reader, $enable_cache = true) {发布于 2016-10-14 02:44:43
您可以为phpmyadmin.Here使用另一个PPA,它是PPA链路。
sudo add-apt-repository ppa:nijel/phpmyadmin
sudo apt update
sudo apt install phpmyadmin因为它只是一个临时的解决方案,或者不是一个最优的解决方案,直到ubuntu repos中的phpmyadmin包被重建。
https://stackoverflow.com/questions/37002494
复制相似问题