WPML
Status
Resolved
Resolved in
Avada 7.11.3
Related plugin/theme
Avada
Topic tags
Compatibility

Overview of the issue

When using the Avada theme alongside WPML, users will encounter an issue while trying to reset the Avada caches through the theme’s options panel in secondary languages. Specifically, the action doesn’t execute as expected and triggers a ”403 Forbidden” error displayed in the browser console.

Workaround

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


  • Open /wp-content/themes/Avada/includes/lib/inc/class-fusion-fusionredux.php file.

  • Look for line 1537.

  • Change:
    		check_ajax_referer( 'fusionredux_ajax_noncefusion_options', 'nonce' );


  • For
    		// Get default language.
    		$default_language = Fusion_Multilingual::get_default_language();
    
    		// Get current language
    		$current_language = apply_filters('wpml_current_language', NULL);
    
    		if ($current_language !== $default_language) {
    			check_ajax_referer('fusionredux_ajax_noncefusion_options_' . $current_language  . '', 'nonce');
    		}
    
    		// Check English or All languages
    		if ('' === $current_language || 'en' === $current_language) {
    			check_ajax_referer('fusionredux_ajax_noncefusion_options', 'nonce');
    		}

All known issues →