在将WordPress更新到6.0.2之后,我看到了"死亡的白屏"--我只是说
有一个严重的错误
没有进一步的解释.
After some debugging I located the line, that produces the error:
/wp-content/plugins/jet-theme-core/includes/locations.php line 53
它是将数组赋给$this->_locations[ $id ]
的类Jet_Theme_Core_Locations
的函数
有了这些声明
private $_locations = array();
public $test = array();
private $_test = array();
我测试了一些陈述,发现
$this->_locations = true; // works
$this->_locations = "test"; // works
$this->_locations = array(); // works
$this->_locations = array("test"); // produces a critical error
$this->_locations = array("test" => "test"); // produces a critical error
$this->_locations[] = "test"; // produces a critical error
$this->_locations["test"] = "test"; // produces a critical error
$test = array("test" => "test"); // works
$this->test = array(); // works
$this->test = array("test"); // works
$this->_test = array(); // works
$this->_test = array("test"); // works
我一定是漏掉了什么.可能是很明显的事情.但我想不通,这是什么.
[编辑:] PHP日志(log)文件显示:
PHP Fatal error: Uncaught Error: Class 'Elementor\\Post_CSS_File' not found in /wp-content/plugins/jet-theme-core/includes/locations.php:106