undefined index:/ usr / share / phppgadmin / classes /中的插件

时间:2014-06-03 09:24:36

标签: php ubuntu-13.10 phppgadmin

将ubuntu从13.04更新到13.10后在phppgadmin中显示此错误消息

未定义的索引:/usr/share/phppgadmin/classes/PluginManager.php中的插件

2 个答案:

答案 0 :(得分:3)

我已经解决了这个问题。发生此错误是因为在数组中找不到插件索引。所以只需将第34行替换为。

// Get the activated plugins
$plugins = !empty($conf['plugins'])?$conf['plugins']:[];

这肯定会解决您的问题。

干杯:)

答案 1 :(得分:0)

在服务器上升级php,postgres和phpPgAdmin之后,我遇到了同样的问题,保留了我现有的配置文件。在查看新的pgAdmin配置文件模板后,我注意到了这个片段:

    /** Plugins management
     * Add plugin names to the following array to activate them
     * Example:
     *   $conf['plugins'] = array(
     *     'Example',
     *     'Slony'
     *   );
     */
    $conf['plugins'] = array();

我将它复制到我自己的配置文件中(在关闭php标记之前)并且一切顺利,没有对phpPgAdmin脚本进行任何更改。