- 状态
- 已解决
- 报告针对
- WPML Multilingual CMS 4.6.13
- 解决于
- Elementor Pro 3.26.0
- 相关插件/主题
- Elementor
- 主题标签
- Compatibility
问题概述
在高级翻译编辑器(ATE)中保存包含表单小工具或类似小工具(如搜索小工具)的已翻译Elementor页面时,可能会出现致命错误,且文章无法保存。这种情况专门发生在启用 Elementor 的嵌套元素功能时。
PHP Fatal error: Uncaught Error: Call to a member function get_main_id() on null in /plugins/elementor-pro/core/utils.php:80
临时解决方法
在继续操作之前,请确保对您的站点进行了完整备份。
- 打开 …/wp-content/plugins/elementor-pro/core/utils.php 文件。
- 找到第 80 行。
- 将:
if ( isset( Plugin::elementor()->documents ) ) { - 替换为:
if ( isset( Plugin::elementor()->documents ) && Plugin::elementor()->documents->get_current() ) {