【问题标题】:Why undefined proper $identifier is showing on error log but not in UI为什么未定义的正确 $identifier 显示在错误日志中但未显示在 UI 中
【发布时间】:2019-07-03 10:14:42
【问题描述】:
class MPF_Miinto_Main
{
    private $sandbox;

    private $identifier;

    private $secret;

    public function __construct($config)
    {
        $this->sandbox = $config->sandbox;
        $this->identifier = $config->identifier;
        $this->secret = $config->secret;
    }

}

它显示:

PHP 注意:未定义属性:stdClass::$sandbox in /var/www/html/exportfeed/wp-content/plugins/woocommerce-miinto/core/classes/miinto-main.php 在第 28 行 PHP 注意:未定义的属性:stdClass::$identifier in /var/www/html/exportfeed/wp-content/plugins/woocommerce-miinto/core/classes/miinto-main.php 在第 31 行 PHP 注意:未定义的属性:stdClass::$secret in /var/www/html/exportfeed/wp-content/plugins/woocommerce-miinto/core/classes/miinto-main.php 在第 32 行

【问题讨论】:

    标签: php wordpress


    【解决方案1】:

    因为您将display_errors 设置为0

    【讨论】:

      猜你喜欢
      • 2020-09-14
      • 2016-06-04
      • 1970-01-01
      • 2020-09-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多