skip to Main Content

Error:

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

Backtrace:

./libraries/display_export.lib.php#381: PMA_pluginGetOptions(
string 'Export',
array,
)
./libraries/display_export.lib.php#883: PMA_getHtmlForExportOptionsFormat(array)
./libraries/display_export.lib.php#1099: PMA_getHtmlForExportOptions(
string 'table',
string 'bpapluswpdb',
string 'wp_commentmeta',
string '',
integer 0,
array,
integer 0,
)
./tbl_export.php#143: PMA_getExportDisplay(
string 'table',
string 'bpapluswpdb',
string 'wp_commentmeta',
string '',
integer 0,
integer 0,
string '',
)

How can I fix it?

3

Answers


  1. There is an open launchpad bug for this with possible solution in the comments:
    https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/1768071

    Login or Signup to reply.
  2. This problem also occurs when you have an older version of phpMyAdmin which may not play well with newer PHP versions.

    TO solve the issue:

    1) Download the latest version of phpMyAdmin from https://www.phpmyadmin.net/.

    2) Unzip the downloaded folder.

    3) Copy all it’s content to /usr/share/phpmyadmin.

    Be sure all matching files and folders are being replaced with new ones (those you downloaded).

    4) Restart apache: sudo systemctl restart apache2

    All will work.

    Login or Signup to reply.
  3. Just edit the plugin _interface.lib.php

    sudo gedit /usr/share/phpmyadmin/libraries/plugin_interface.lib.php
    

    Find this line

    if ($options != null && count($options) > 0) {
    

    Add (array) or replace with this

    if ($options != null && count((array)$options) > 0) {
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search