Fix Bug Phpmyadmin [sql.lib.php] + Php7.2 + Ubuntu 16.04
1 min readApr 28, 2018
Warning in ./libraries/sql.lib.php#601
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. so when i looking at this line 601, I found this code at this path
$ /usr/share/phpmyadmin/libraries/sql.lib.php
|| (count($analyzed_sql_results[‘select_expr’] == 1)
that’s missing close bracket ‘)’ before operation with 1. So i changed it to
|| (count($analyzed_sql_results[‘select_expr’]) == 1
remove last close bracket ‘)’ at this line like this,
May this trick help your code.