Executing a query returns error Parameter must be an array or an object that implements Countable

Bug #1765311 reported by Claudio Fior
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I use mariadb server.

Complete error message

Warning in ./libraries/sql.lib.php#613
count(): Parameter must be an array or an object that implements Countable

Backtrace

./libraries/sql.lib.php#2128: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#2079: PMA_executeQueryAndGetQueryResponse(
array,
boolean true,
string 'abbrevia',
string 'eps_cliente',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `eps_cliente`',
NULL,
NULL,
)
./sql.php#221: PMA_executeQueryAndSendQueryResponse(
array,
boolean true,
string 'abbrevia',
string 'eps_cliente',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `eps_cliente`',
NULL,
NULL,
)

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: phpmyadmin 4:4.6.6-5
ProcVersionSignature: Ubuntu 4.15.0-15.16-generic 4.15.15
Uname: Linux 4.15.0-15-generic x86_64
ApportVersion: 2.20.9-0ubuntu5
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Apr 19 09:06:19 2018
InstallationDate: Installed on 2018-02-21 (56 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
SourcePackage: phpmyadmin
UpgradeStatus: Upgraded to bionic on 2018-03-06 (43 days ago)

Revision history for this message
Claudio Fior (caiofior) wrote :
Revision history for this message
Michael Bolli (michael-bolli-us) wrote :

This is because of an incompatibility with PHP 7.2. If you install the latest phpMyAdmin (e.g. from GitHub), the error is gone.

Revision history for this message
Claudio Fior (caiofior) wrote :

Thanks

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in phpmyadmin (Ubuntu):
status: New → Confirmed
Revision history for this message
Markus Neubauer (mn-ubuntu) wrote :

read https://github.com/phpmyadmin/phpmyadmin/issues/14332#issuecomment-403118068
File is /usr/share/phpmyadmin/libraries/sql.lib.php (around line 613)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.