求助:WordPress中Elementor与ElementorKit Lite兼容引发未定义数组键警告
问题:Elementor搭配ElementorKit Lite时首次加载页面出现未定义数组键警告
环境信息
- PHP版本:
8.2.4 - WordPress版本:
6.3 - 涉及插件:Elementor、ElementorKit Lite
问题详情
首次加载页面时会批量出现以下PHP警告,刷新页面或再次进入后警告自动消失:
Warning: Undefined array key "margin_widescreen" in C:\xampp\htdocs\innstylesalon\wp-content\plugins\elementor\core\files\css\base.php on line 776 Warning: Undefined array key "margin_laptop" in C:\xampp\htdocs\innstylesalon\wp-content\plugins\elementor\core\files\css\base.php on line 776 Warning: Undefined array key "margin_tablet" in C:\xampp\htdocs\innstylesalon\wp-content\plugins\elementor\core\files\css\base.php on line 776 Warning: Undefined array key "margin_mobile" in C:\xampp\htdocs\innstylesalon\wp-content\plugins\elementor\core\files\css\base.php on line 776 Warning: Undefined array key "padding_widescreen" in C:\xampp\htdocs\innstylesalon\wp-content\plugins\elementor\core\files\css\base.php on line 776 Warning: Undefined array key "padding_laptop" in C:\xampp\htdocs\innstylesalon\wp-content\plugins\elementor\core\files\css\base.php on line 776 Warning: Undefined array key "padding_tablet" in C:\xampp\htdocs\innstylesalon\wp-content\plugins\elementor\core\files\css\base.php on line 776 Warning: Undefined array key "padding_mobile" in C:\xampp\htdocs\innstylesalon\wp-content\plugins\elementor\core\files\css\base.php on line 776
通过禁用所有插件逐个排查,确认禁用ElementorKit Lite后警告不再出现,但我需要使用该插件,且此前未出现此问题,希望找到无需禁用插件的解决方法。
已尝试的解决方案
- 在
wp_config.php中增加内存限制:define('WP_MEMORY_LIMIT', '512M');,问题未解决
内容的提问来源于stack exchange,提问作者Besmella Kazim Kazimy
相关产品推荐
相关产品推荐

