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和PHP版本不匹配導致。將PHP版本或者PHPmyadmin更換即可。
PHP和PHPmyadmin版本關係:
PHP5.2,phpmyadmin4.1
PHP5.5及以下,phpmyadmin4.4
PHP7.x,phpmyadmin4.7/4.8