I've uploaded the backup to a table, opening the table I see this:
Warning in ./libraries/sql.lib.php#601
count(): Parameter must be an array or an object that implements Countable
Backtrace
./libraries/sql.lib.php#2038: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#1984: PMA_executeQueryAndGetQueryResponse(
array,
boolean true,
string 'alternativegirls',
string 'tgp_photo',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `tgp_photo`',
NULL,
NULL,
)
./sql.php#216: PMA_executeQueryAndSendQueryResponse(
array,
boolean true,
string 'alternativegirls',
string 'tgp_photo',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `tgp_photo`',
NULL,
NULL,
)
./index.php#53: include(./sql.php)
Inside phpMyAdmin...
PHP is 7.2, the server is Ubuntu 16.04, installed yesterday.
Looking for I saw that some have this error in their code, but I did not find anyone who received it in phpMyAdmin...
What should I do? Is that my error? A phpmyadmin error? wait update ? I go back to PHP 7.1?
Hi the following solve my same problem absolutely (import/export and so on):
Fix Bug Phpmyadmin [plugin_interface.lib.php] + Php7.2 + Ubuntu 16.04
so... under ubuntu 18.04, mysql, php7.2: Terminal:
Find the following line(ctrl+f):
it was on line #551 for me
and change for following:
ctrl+s for save the changes
and in terminal: ctrl+c for get back promt...
and:
sudo systemctl restart apache2
"I think in new php version.It can’t use count() or sizeof() with un array type. Force parameter to array is easy way to solve this bug,..."
Thanks for the original author for the problem solving! I try to share it!
I found this PHP 7.2 count() - SYNTAX error in sql.lib.php
That perfectly works on my config:
Open
/usr/share/phpmyadmin/libraries/sql.lib.php
Change line: Move parenthesis before ==
in
tested on Debian, should works on Ubuntu:
1.) First download latest phpMyadmin file.
2.) Delete (make a backup) all previous version file located in
/usr/share/phpmyadmin
directory.3.) Uncompress to
/usr/share/phpmyadmin/
directory all files of latest phpmyadmin.4.) Modify file
libraries/vendor_config.php
and change line:to
and
to
5.) restart apache server and done.
put @count() where it giving the error it will Hide the error ..
Hope this will Fix the problem
Works on UBUNTU 16.04.3 Just open
usr/share/libraries/sql.lib.php
modify
|| (count($analyzed_sql_results['select_expr'] == 1)
To
|| ((count($analyzed_sql_results['select_expr']) == 1)
If someone have similar error in DB export page (I had this issue in Ubuntu 18.04), then replace line 551 in file
/usr/share/phpmyadmin/libraries/plugin_interface.lib.php
with code