我在 VPS 中安装了 phpMyadmin,但我有很多弃用通知,例如:1) ./libraries/Util.class.php#1994 中的弃用通知。不推荐使用带有花括号的数组和字符串偏移访问语法2) ./libraries/common.inc.php#261 中的弃用通知。函数 get_magic_quotes_gpc() 已弃用3) ./libraries/url_generating.lib.php#239 中的弃用通知。不推荐使用带有花括号的数组和字符串偏移访问语法4) ./libraries/DatabaseInterface.class.php#537 中的弃用通知。不推荐使用无括号a ? b : c ? d : e的。使用(a ? b : c) ? d : e或a ? b : (c ? d : e)我有:CentOS 7.7 PHP 7.4.3 5.5.64我该如何解决这个问题?,每次加载页面或执行操作时它们都会出现)。
2 回答
撒科打诨
TA贡献1934条经验 获得超2个赞
您正在运行什么版本的 phpMyAdmin?php7.4 似乎存在 php 兼容性问题
我建议将 phpMyAdmin 更新到与 php7.4 兼容的最新版本。
https://www.phpmyadmin.net/news/2020/1/8/phpmyadmin-494-and-501-are-released/
或者——我不提倡在生产环境中这样做——你可以压制弃用的消息。例如,您可以将 php.ini 中的错误报告设置更改为:
error_reporting = E_ALL ^ E_DEPRECATED
慕神8447489
TA贡献1780条经验 获得超1个赞
编辑以下文件:config.inc.php。它可以位于/etc/phpmyadmin/config.inc.php或/usr/share/phpmyadmin/config.inc.php
/**
* Whether or not to query the user before sending the error report to
* the phpMyAdmin team when a JavaScript error occurs
*
* Available options
* ('ask' | 'always' | 'never')
* default = 'ask'
*/
$cfg['SendErrorReports'] = 'never';
- 2 回答
- 0 关注
- 64 浏览
添加回答
举报
0/150
提交
取消