[英]"Deprecation Notice" in phpMyAdmin on Centos 7
I have phpMyadmin installed in a VPS, but i have a lot of deprecation notice like:我在 VPS 中安装了 phpMyadmin,但我有很多弃用通知,例如:
1) Deprecation Notice in ./libraries/Util.class.php#1994. 1) ./libraries/Util.class.php#1994 中的弃用通知。 Array and string offset access syntax with curly braces is deprecated
不推荐使用带花括号的数组和字符串偏移访问语法
2) Deprecation Notice in ./libraries/common.inc.php#261. 2) ./libraries/common.inc.php#261 中的弃用通知。 Function get_magic_quotes_gpc() is deprecated
函数 get_magic_quotes_gpc() 已弃用
3) Deprecation Notice in ./libraries/url_generating.lib.php#239. 3) ./libraries/url_generating.lib.php#239 中的弃用通知。 Array and string offset access syntax with curly braces is deprecated
不推荐使用带花括号的数组和字符串偏移访问语法
4) Deprecation Notice in ./libraries/DatabaseInterface.class.php#537. 4) ./libraries/DatabaseInterface.class.php#537 中的弃用通知。 Unparenthesized
a ? b : c ? d : e
不带括号
a ? b : c ? d : e
a ? b : c ? d : e
a ? b : c ? d : e
is deprecated. a ? b : c ? d : e
已弃用。 Use either (a ? b : c) ? d : e
使用
(a ? b : c) ? d : e
(a ? b : c) ? d : e
or a ? b : (c ? d : e)
(a ? b : c) ? d : e
还是a ? b : (c ? d : e)
a ? b : (c ? d : e)
I have:我有:
CentOS 7.7 PHP 7.4.3 5.5.64 CentOS 7.7 PHP 7.4.3 5.5.64
How can i solve this problem?, they show up each time a page is loaded or action is performed).我该如何解决这个问题?每次加载页面或执行操作时它们都会出现)。
What version of phpMyAdmin are you running?您正在运行什么版本的 phpMyAdmin? There appears to be a php compatibility issue with php7.4
php7.4 似乎存在 php 兼容性问题
I would recommend updating phpMyAdmin to the latest version compatible with with php7.4.我建议将 phpMyAdmin 更新到与 php7.4 兼容的最新版本。
https://www.phpmyadmin.net/news/2020/1/8/phpmyadmin-494-and-501-are-released/ https://www.phpmyadmin.net/news/2020/1/8/phpmyadmin-494-and-501-are-released/
Alternatively - and I wouldn't advocate doing this in a production environment - you could suppress deprecated messages.或者 - 我不提倡在生产环境中执行此操作 - 您可以取消不推荐使用的消息。 For example you could change the error reporting setting in your php.ini to something like:
例如,您可以将 php.ini 中的错误报告设置更改为:
error_reporting = E_ALL ^ E_DEPRECATED
Edit the following file : config.inc.php.编辑以下文件:config.inc.php。 It can be located in /etc/phpmyadmin/config.inc.php or in /usr/share/phpmyadmin/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';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.