升级到PHP 7.4后,elemntor开始给出错误
url:www.aldon.ltd/ 云服务:GCP 服务器:Openlitespeed Wordpress Linux:Ubuntu 20.04 LTS
Notice: Trying to access array offset on value of type null in /var/www/html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 1449
注意:尝试在第1451行的/var/www/html/wp-content/plugins/elementor/includes/base/controls-stack.php中访问类型为null的值的数组偏移量
除了网页顶部显示的此通知,其他所有功能均按预期工作。
代码导致错误
/ **
*结束控件部分。
*
*用于关闭现有的打开控件部分。当您使用此方法时
*它将停止向该部分添加新控件。
*
*此方法应在_register_controls()
内部使用。
*
* @自1.4.0起
* @公开访问
* /
公共功能end_controls_section(){
$ stack_name = $ this-> get_name();
// Save the current section for the action.
$current_section = $this->current_section;
$section_id = $current_section['section'];
$args = [
'tab' => $current_section['tab'],];
位于/usr/local/lsws/logs/error.log的错误日志
PHP注意:wp_deregister_script被错误地称为正确。请勿在管理区域中注销jquery-core
脚本。要定位前端主题,请使用wp_enqueue_scrip>
PHP注意:/var/www/html/wp-content/plugins/elementor/includes/base/controls-stack.php在第1449行
PHP注意:第1451行的/var/www/html/wp-content/plugins/elementor/includes/base/controls-stack.php