Skip Navigation

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']),
    

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>