欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

phpmyadmin - count(): Parameter must be an array or an object that implements Countable

程序员文章站 2022-03-23 17:58:50
...

最近用了宝塔phpmyadmin老是报错count(): Parameter must be an array or an object that implements Countable网上找了一下解决方案
phpmyadmin - count(): Parameter must be an array or an object that implements Countable

1找到/www/server/phpmyadmin/phpmyadmin_60cb4fddeb15dcc1/libraries/sql.lib.php
2找到(count($analyzed_sql_results['select_expr'] == 1)
3替换(count($analyzed_sql_results['select_expr']) == 1

再次启动发现错误消失