正文

phpmyadmin导出数据库报错:Warning in ./libraries/plugin_interface.lib.php#532 count(): Parameter must be an array or an object that implements Countable

phpmyadmin导出数据库报错:Warning in ./libraries/plugin_interface.lib.php#532 count(): Parameter must be an array or an object that implements Countable

详细错误信息如下:

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

Backtrace

./libraries/display_export.lib.php#284: PMA_pluginGetOptions(
string 'Export',
array,
)
./libraries/display_export.lib.php#731: PMA_getHtmlForExportOptionsFormat(array)
./libraries/display_export.inc.php#66: PMA_getHtmlForExportOptions(
string 'database',
string 'vps_cheshirex_co',
string '',
string '<div><a href="#" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">全选</a> / <a href="#" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">全不选</a><br /><select name="table_select[]" id="table_select" size="10" multiple="multiple"> <option value="xm_company" selected="selected">xm_company</option> <option value="xm_index" selected="selected">xm_index</option> <option value="xm_log" selected="selected">xm_log</option> <option value="xm_place" selected="selected">xm_place</option> <option value="xm_user" selected="selected">xm_user</option> </select></div>',
integer 5,
array,
string '',
)
./db_export.php#92: require_once(./libraries/display_export.inc.php)

错误截图:

phpmyadmin导出数据库报错:Warning in ./libraries/plugin_interface.lib.php#532  count(): Parameter must be an array or an object that implements Countablephpmyadmin导出数据库报错:Warning in ./libraries/plugin_interface.lib.php#532  count(): Parameter must be an array or an object that implements Countable

问题原因:

是PHPmyadmin和PHP版本不匹配导致。将PHP版本或者PHPmyadmin更换即可。

PHP和PHPmyadmin版本关系:

PHP5.2,phpmyadmin4.1
PHP5.5及以下,phpmyadmin4.4
PHP7.x,phpmyadmin4.7/4.8