【问题标题】:stdClass::$plugin in /home/servupgg/public_html/wp-includes/class-wp-list-util.php on line 152第 152 行 /home/servupgg/public_html/wp-includes/class-wp-list-util.php 中的 stdClass::$plugin
【发布时间】:2019-11-10 02:40:14
【问题描述】:

我在 WordPress 仪表板中添加新插件时看到此错误。请任何专家解决我的问题 我的网站:https://serverproofs.com

我已经在使用最新版本的 WordPress。 我使用优惠券主题。

if ( ! $index_key ) {
        /*
         * This is simple. Could at some point wrap array_column()
         * if we knew we had an array of arrays.
         */
        foreach ( $this->output as $key => $value ) {
            if ( is_object( $value ) ) {
//152 line              $newlist[ $key ] = $value->$field;
            } else {
                $newlist[ $key ] = $value[ $field ];
            }
        }

        $this->output = $newlist;

        return $this->output;
    }

注意:未定义属性:/home/servupgg/public_html/wp-includes/class-wp-list-util.php 第 152 行中的 stdClass::$plugin

注意:未定义属性:/home/servupgg/public_html/wp-includes/class-wp-list-util.php 第 152 行中的 stdClass::$plugin

【问题讨论】:

标签: php wordpress themes


【解决方案1】:

依次尝试以下解决方案,其中之一肯定会解决问题。

解决方案 1:转到仪表板 -> 更新 -> 在您拥有最新版本的 WordPress 后,单击立即重新安装。

解决方案2:在配置文件define('WP_DEBUG', false)中将调试模式设置为false;

解决方案 3:通过 Litespeed Cache 插件或您选择的任何插件从 db 中删除所有瞬态。

【讨论】:

    【解决方案2】:

    检查您的 php 版本。版本 8 不起作用。使用 7.4。

    【讨论】:

      猜你喜欢
      • 2017-05-06
      • 1970-01-01
      • 1970-01-01
      • 2017-04-08
      • 2016-10-17
      • 2022-11-14
      • 1970-01-01
      • 1970-01-01
      • 2015-12-01
      相关资源
      最近更新 更多