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?
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
this worked for me
Try replace this function in file: /usr/share/phpmyadmin/libraries/sql.lib.php
Easiest Method:
Just run this below command line in terminal and come back to PhpMyAdmin. Now it works fine :)
Manual Method:
Open sql.lib.php file
Find for
count($analyzed_sql_results['select_expr']
code on file. You can get this at line ~613. You can see this below wrong codeJust replace that wrong code with this below one
Save the file and come to PhpMyAdmin.
couse of phpmyadmin’s library try to count some parameter. At this line 532, I found this code in this path.
Edit File
/usr/share/phpmyadmin/libraries/plugin_interface.lib.php
at line 532:Find the line
if ($options != null && count($options) > 0) {
and replacecount($options)
withcount((array)$options)
.Restart Apache Service:
In new php version it can’t use count() or sizeof() with un array type. So you have to forcefully change the parameter to array here.
I had this issue when using windows and the responses above solved it for me, however when i switched to linux (ubuntu 18.04 LTS) I had the same issue and couldn't figure out how to solve it because I didn't see the file '/usr/share/phpmyadmin/libraries/sql.lib.php'.
This sql.lib.php file wasn't in the share folder or the phpmyadmin/libraries folder of my /opt/lampp directory - since I was using xampp on my ubuntu. Based on the update made to the xampp (because I used the latest installation as of now) setup.
The answer is still to replace:
(count($analyzed_sql_results['select_expr'] == 1)
With:
(count($analyzed_sql_results['select_expr']) == 1
However the file to look for is
Sql.php
found in/opt/lampp/phpmyadmin/libraries/classes/Sql.php
Future updates or if you still don't find it: use
grep -r 'count($analyzed_sql_results' /opt/lampp/phpmyadmin
to search for matching documents in your directory and edit accordinglyphpmyadmin 4.7.4 is supposed to have "Fixed several compatibility issues with PHP 7.2"
Chances are you have an older version of phpmyadmin.
https://www.phpmyadmin.net/news/2017/8/24/phpmyadmin-474-released/