Fix Bug Phpmyadmin [sql.lib.php]

Warning in ./libraries/sql.lib.php#<line number>
count(): Parameter must be an array or an object that implements Countable

Couse of phpmyadmin’s library try to counting some parameter but got wrong a code.

# /usr/share/phpmyadmin/libraries/sql.lib.php
|| (count($analyzed_sql_results[‘select_expr’] == 1)

That’s missing close bracket ‘)’ before operation with 1. So you need to change it to:

|| (count($analyzed_sql_results[‘select_expr’]) == 1

remove last close bracket ‘)’ at this line like this,

Then restart apache and database service

# systemctl restart apache2
# systemctl restart mariadb

Mohammed has written 27 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>