Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Bruno Kos 1 year, 2 months ago.

Assisted by: Bruno Kos.

Author Posts
September 15, 2023 at 11:31 am #14402907

marcialB

Hi Bruno

Okay, thanks for letting me know.

There is a second issue with Avada the team should look into: when resetting the Avada cache in the original language, it works, but in other languages we get a 403 error.

hidden link > Performance > at the very bottom

This error is reproducable across all our projects with Avada and WPML. But it worked in the past - I discovered this behaviour a few weeks back for the first time.

Thank you!

September 15, 2023 at 11:47 am #14403001

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I can see the issue in our sandbox so I sent this case to our compatibility team also.

September 15, 2023 at 11:52 am #14403015

marcialB

Thank you very much!

September 19, 2023 at 8:16 am #14417023

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Can you try this?

In wp-content/themes/Avada/includes/lib/inc/class-fusion-fusionredux.php, look for line 1537 ad change:

		// Check nonce.
		check_ajax_referer( 'fusionredux_ajax_noncefusion_options', 'nonce' );

to:

		// 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');
		}
September 22, 2023 at 9:45 am #14445803

marcialB

Hi Bruno

I can confirm this works (at least for this setup). Did you already contact the Avada developers so this fix gets implemented in the future?

Thank you!

September 25, 2023 at 5:49 am #14454383

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Yes, we will inform them as we are in contact with them, but you can also report this to their forums so that they prioritize this.