Site icon Daniel Sobrinho

PhpMyAdmin count() error

If you are identifying this error when opening the phpMyAdmin screen, just when you display the screen of any of the tables, as below, the solution follows:

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

Backtrace

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

Above part of the error and below the solution:
Edit the file:
'/usr/share/phpmyadmin/libraries/sql.l
ib.php'
Replacing as below:
(count($analyzed_sql_result['select_expr']s == 1
)
by:
(count($analyzed_sql_results['select_expr']) == 1