- 状态
- 已解决
- 相关插件/主题
- LiteSpeed Cache
- 主题标签
- Compatibility
问题概述
当启用LiteSpeed Cache插件的Edge Side Includes (ESI)功能时,翻译管理中的 WPML 工具选项卡无法加载。该问题会触发浏览器控制台错误:
?wpml-app=ate-widget&ver=4.6.11:5 Uncaught SyntaxError: Invalid or unexpected token (at ?wpml-app=ate-widget&ver=4.6.11:5:3152)
临时解决方法
在继续操作之前,请确保对站点进行完整备份。
- 打开 …/wp-content/plugins/litespeed-cache/src/core.cls.php 文件。
- 找到第 720 行。
- 将:
$this->_footer_comment .= "\n<!-- " . $data . ' -->';
- 替换为:
$this->_footer_comment .= "<!-- " . $data . ' -->';