Skip to content

Instantly share code, notes, and snippets.

@akash-coded
Created January 23, 2020 18:12
Show Gist options
  • Save akash-coded/6d46ac61ab34013a4cb94096ac597370 to your computer and use it in GitHub Desktop.
Save akash-coded/6d46ac61ab34013a4cb94096ac597370 to your computer and use it in GitHub Desktop.
Fix Bug Phpmyadmin [sql.lib.php] + Php7.2 + - Warnings

Warning in ./libraries/sql.lib.php#601 (phpMyAdmin)

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

1_VXjj4lPqxoNqHqt7UOIn6A

It is because of phpmyadmin’s library try to counting some parameter but got wrong a code. So by looking at line 613, we find:

1_TCanXuY2VCA2lVoSVJlacQ

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

that’s missing close bracket ‘)’ before operation with 1. So, change it to

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

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

image

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