更新你的插件兄弟..如果已经更新,试试这个。
文件 - google-analyticator > google-api-php-client > src > Google_Client.php
旧代码(从第 35 行开始)
require_once "config.php";
// If a local configuration file is found, merge it's values with the default configuration
if (file_exists(dirname(__FILE__) . '/local_config.php')) {
$defaultConfig = $apiConfig;
require_once (dirname(__FILE__) . '/local_config.php');
$apiConfig = array_merge($defaultConfig, $apiConfig);
新代码(从第 35 行开始)
require_once (dirname(__FILE__) . "/config.php");
// If a local configuration file is found, merge it's values with the default configuration
if (file_exists(dirname(__FILE__) . '/local_config.php')) {
$defaultConfig = $apiConfig;
require_once (dirname(__FILE__) . '/local_config.php');
$apiConfig = array_merge($defaultConfig, $apiConfig);
添加到第 35 行...
require_once (dirname(__FILE__) . "/config.php");
代替...
require_once "config.php";
似乎已经解决了这个问题。
从这里获取它https://wordpress.org/support/topic/recent-update-throws-error-in-settings-page