Warning in ./libraries/sql.lib.php#<line number>
count(): Parameter must be an array or an object that implements Countable
![](https://unsrewiki.1sys1.com/wp-content/uploads/2018/12/1-VXjj4lPqxoNqHqt7UOIn6A-1024x517.png)
Couse of phpmyadmin’s library try to counting some parameter but got wrong a code.
# /usr/share/phpmyadmin/libraries/sql.lib.php
![](https://unsrewiki.1sys1.com/wp-content/uploads/2018/12/1-TCanXuY2VCA2lVoSVJlacQ-1024x410.png)
|| (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,
![](https://unsrewiki.1sys1.com/wp-content/uploads/2018/12/1-a6vNCvP4dGbNQUp3WDRq4w.png)
Then restart apache and database service
# systemctl restart apache2
# systemctl restart mariadb