今天在phpmyadmin上發生一件事,是匯入檔案時一直發生提醒
Warning in ./libraries/plugin_interface.lib.php#532
count(): Parameter must be an array or an object that implements Countable
的錯誤
解決方法如下:
修改 plugin_interface.lib.php
位置是:/usr/share/phpmyadmin/libraries/plugin_interface.lib.php
行數是532,原始code如下:
1 |
if ($options != null && count($options) > 0) { |
將其修改為
1 |
if ($options != null && count((array)$options) > 0) { |
即可解決