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

Bug #1768071 reported by Jbyvosges
70
This bug affects 15 people
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Many warnings like, i.e. when Imort :

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

Backtrace

./libraries/display_import.lib.php#371: PMA_pluginGetOptions(
string 'Import',
array,
)

Warning in ./libraries/DisplayResults.php#869
 A non-numeric value encountered

Backtrace

./libraries/DisplayResults.php#4934: PMA\libraries\DisplayResults->_getTableNavigation(
etc.

Serveur : Localhost via UNIX socket
Type de serveur : MariaDB
Version du serveur : 10.1.29-MariaDB-6 - Ubuntu 18.04
Version du protocole : 10
Utilisateur : root@localhost
Jeu de caractères du serveur : UTF-8 Unicode (utf8)
Apache/2.4.29 (Ubuntu)
Version du client de base de données : libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $
Extension PHP : mysqliDocumentation curlDocumentation mbstringDocumentation
Version de PHP : 7.2.3-1ubuntu1

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: phpmyadmin 4:4.6.6-5 [modified: usr/share/phpmyadmin/libraries/sql.lib.php]
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 30 17:56:20 2018
InstallationDate: Installed on 2018-04-27 (3 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180425.1)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: phpmyadmin
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jbyvosges (j-lbarbry) wrote :
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
Vladimir Ilic (ilivlad) wrote :
Revision history for this message
david (drtechno1971) wrote :

count() must be an array, or an object countable in (declared)

correction to the operation on lines #551-570 in the file: plugin_interface.lib.php

if ($options != null && count((array)$options) > 0) {
            foreach ($options->getProperties()
                as $propertyMainGroup
            ) {
                // check for hidden properties
                $no_options = true;
                foreach ($propertyMainGroup->getProperties() as $propertyItem) {
                    if (strcmp('PMA\libraries\properties\options\items\HiddenPropertyItem', get_class($propertyItem))) {
                        $no_options = false;
                        break;
                    }
                }

                $ret .= PMA_pluginGetOneOption(
                    $section,
                    $plugin_name,
                    $propertyMainGroup
                );
            }
        }

Revision history for this message
Fernanda Borges de Carvalho (fernandisa) wrote :

This didn't worked for me. Appeared an error after I reload the page:
error code “500 internal server error”
What can I do?

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.