跳过导航

Open

Topic Tags: Compatibility

Overview of the issue

If you are using WP-Optimize – Clean, Compress, Cache plugin alongside WPML and A different domain per language feature is enabled, it leads to the following fatal error:

Fatal error: Uncaught Error: Call to a member function get_current_language() on null in /wpml-url-cached-converter.php on line 18.

Workaround

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

  • Open …/wp-content/plugins/wp-optimize/cache/class-wpo-cache-config.php file.
  • Look for line 225.
  • Comment out that line:
    			//'uploads'									=> wp_normalize_path(wp_upload_dir()['basedir']),
    

留下回复

紧扣主题并尊重他人。如果您需要帮助解决与本帖无关的问题,请使用我们的 Support Forum 开始聊天或提交票据。

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>