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如下:
if ($options != null && count($options) > 0) {
將其修改為
if ($options != null && count((array)$options) > 0) {
即可解決
若出現sql.lib.php#601出錯﹕
用nano编辑 sql.lib.php
sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php
按CTRL+ W 搜索 (count($analyzed_sql_results[‘select_expr’] == 1)
替换为 ((count($analyzed_sql_results[‘select_expr’]) == 1)