跳转到主要内容
首页

用户帐户菜单

  • 登录

主导航

  • 首页
  • 小公司运营
  • 网站建设
  • 创业杂谈
  • 兼职赚钱
  • 小微企业信息化
  • 手册教程
    • 《大伟哥的Drupal 8建站指南》
    • 《通过JohnChow.Com在网上赚钱》
  • 关于

面包屑

  • 首页
  • 解决phpMyAdmin在Ubuntu 16.04/PHP7.0下的Deprecation Notice

解决phpMyAdmin在Ubuntu 16.04/PHP7.0下的Deprecation Notice

By 大伟哥 | 2017-09-22,周五, 15:11

今天大伟哥在phpMyAdmin下管理MySQL数据库,发现了很多错误提示:

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)
./db_structure.php#13: require_once(./libraries/common.inc.php)

这台服务器是前几天新安装的Ubuntu Server 16.04,默认用的是PHP7.0,安装的时候没有发现错误,不知道是当时没有注意还是错误是后来发生的。虽然只是报警,暂时没有发现影响使用的问题,但是心理还是不爽,看提示应该是php-gettext的问题,网上也有说是php-mbstring模块的问题,解决方法很简单,重新安装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
网站建设
  • 2043 阅读
PHP
phpMyAdmin

添加新评论

此字段内容将保密,不会被其他人看见。
关于文本格式
  • 不允许使用HTML标签。
CAPTCHA
4 + 2 =
计算出这道简单的算术题并键入答案。例如、1+3,就输入 4。
发布评论前,请通过下面的验证,以免被当作垃圾评论机器人屏蔽。

搜索

沪ICP备17000093号-1

公安备案沪公网安备 31011402008254号

© 2016-2022 大伟哥博客版权所有