Skip to content

Instantly share code, notes, and snippets.

@andreyuhai
Last active January 13, 2019 11:15
Show Gist options
  • Save andreyuhai/4e8258f9944126c34ffae56be6e202e5 to your computer and use it in GitHub Desktop.
Save andreyuhai/4e8258f9944126c34ffae56be6e202e5 to your computer and use it in GitHub Desktop.
How to fix phpmyadmin count(): Parameter must be an array or an object that implements Countable

How to fix "count(): Parameter must be an array or an object that implements Countable" error

Just run this below command line in terminal and come back to PhpMyAdmin. Now it works fine

sudo sed -i "s/|\s*\((count(\$analyzed_sql_results\['select_expr'\]\)/| (\1)/g" /usr/share/phpmyadmin/libraries/sql.lib.php

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment