2

将 ubuntu 从 13.04 更新到 13.10 后,在 phppgadmin 中出现此错误消息

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

4

2 回答 2

3

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

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

这肯定会解决你的问题。

干杯:)

于 2014-06-03T09:27:24.200 回答
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 脚本没有任何更改。

于 2017-03-20T13:57:34.467 回答