Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Incomplete
-
Affects Version/s: 10.3.3
-
Fix Version/s: N/A
-
Component/s: OTHER
-
Labels:
-
Environment:Ubuntu 16.04, PHP 7.2.1
Description
When accessing phpMyAdmin I get the following error:
Warning in ./libraries/sql.lib.php#601
count(): Parameter must be an array or an object that implements CountableBacktrace
./libraries/sql.lib.php#2038: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#1984: PMA_executeQueryAndGetQueryResponse(
array,
boolean true,
string 'holding',
string 'users',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `users`',
NULL,
NULL,
)
./sql.php#216: PMA_executeQueryAndSendQueryResponse(
array,
boolean true,
string 'holding',
string 'users',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `users`',
NULL,
NULL,
)
This is fixed by editing file ./libraries/sql.lib.php line 601.
Replace: || (count($analyzed_sql_results['select_expr'] == 1)
With: || (count($analyzed_sql_results['select_expr']) == 1