WPML

Overview of the Issue

When the LiteSpeed Cache plugin’s Edge Side Includes (ESI) feature is enabled, the WPML Tools tab in Translation Management fails to load. This issue triggers a browser console error:

?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)

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/plugins/litespeed-cache/src/core.cls.php file.
  • Look for line 720.
  • Replace:
    $this->_footer_comment .= "\n<!-- " . $data . ' -->';
  • With:
    $this->_footer_comment .= "<!-- " . $data . ' -->';

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.