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?
Proceed following steps at ubuntu-18.04:
Step 1) locate
sql.lib.php
It will show something like:
Step 2) Open terminal (Alt t) and write:
Step 3)
sudo gedit /usr/share/phpmyadmin/libraries/sql.lib.php
and search below function:Step 4) Replace above function with:
Step 4) Save & close file and below command on terminal
Step 5)
sudo service mysql reload
Step 6)
sudo service apache2 reload
It works for me.. Goodluck
Edit file
/usr/share/phpmyadmin/libraries/sql.lib.php
:Replace:
count($analyzed_sql_results['select_expr'] == 1)
With:
(count($analyzed_sql_results['select_expr']) == 1)
Restart the server
Edit file '/usr/share/phpmyadmin/libraries/sql.lib.php' Replace: (make backup)
With:
Edit file '/usr/share/phpmyadmin/libraries/sql.lib.php'
see error on your error
./libraries/sql.lib.php#2038: PMA_isRememberSortingOrder(array) ./libraries/sql.lib.php#1984: PMA_executeQueryAndGetQueryResponse(
go to this line and remove the function call.
It works for me. Thank you
On Ubuntu 18.04 with MariaDb and Nginx, I solved it with updating file /usr/share/phpmyadmin/libraries/sql.lib.php as follows:
The answer mentioned by @Nguyen throws a 500 error saying: