警告-count():参数必须是实现Countable的数组或对象

时间:2019-03-02 10:43:43

标签: phpmyadmin

我已经安装了PHPMyADMIN,并且正在发出警告。

Warning in ./libraries/sql.lib.php#601
count(): Parameter must be an array or an object that implements Countable
Backtrace

./libraries/sql.lib.php#2038: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#1984: PMA_executeQueryAndGetQueryResponse(
...
./index.php#53: include(./sql.php)

1 个答案:

答案 0 :(得分:1)

这是Phpmyadmin [sql.lib.php]的错误。右括号缺失-) 解决此问题的最简单方法是,将波纹管复制并粘贴到终端中,然后检查PHPMyAdmin

sudo sed -i "s/|\s*\((count(\$analyzed_sql_results\['select_expr'\]\)/| (\1)/g" /usr/share/phpmyadmin/libraries/sql.lib.php

如果您手动进行操作,则可能会得到500 server internal error

enter image description here