logo
Blog single photo

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


                        

sudo  /usr/share/phpmyadmin/libraries/sql.lib.php

Find By $analyzed_sql_results['select_expr']

Replace:

((empty($analyzed_sql_results['select_expr']))
    || (count($analyzed_sql_results['select_expr'] == 1)
        && ($analyzed_sql_results['select_expr'][0] == '*')))

With:

((empty($analyzed_sql_results['select_expr']))
    || (count($analyzed_sql_results['select_expr']) == 1)
        && ($analyzed_sql_results['select_expr'][0] == '*'))

Restart the server apache:

sudo service apache2 restart

Top