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.

This topic contains 34 replies, has 2 voices.

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

Assisted by: Bruno Kos.

Author Posts
August 29, 2023 at 11:55 am #14306801

Bruno Kos
Supporter

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

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

After

add_action('wp_ajax_fusion_options_nl_ajax_save', array($this, 'purge_cache'), PHP_INT_MAX );

on the line 42 would be a better location so that it is included into the function.

For the Dutch language it does seem to work?
hidden link

August 30, 2023 at 7:19 am #14310645

nickyd-3

Hi I have updated the files, now I am not getting the error but the changes are not saved. I have activated search for main menu in Dutch. It's active but it's not displaying in the frontend. You can compare these two links:
hidden link
hidden link

Screenshot 2023-08-30 at 9.16.45.png
August 30, 2023 at 9:54 am #14312171

nickyd-3

You have the access of the site and FTP. You can make the changes and check it if you can save the changes. In case you need the DB, I can share that too. Several settings are stuck due to this issue. It would be great if could check it.

August 30, 2023 at 3:03 pm #14314759

Bruno Kos
Supporter

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

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

We are still working on this, but this being very specific issue possibly related to caching and hosting setup, we have no solutions to offer at this point. I will keep you posted.

August 31, 2023 at 1:09 pm #14320855

Bruno Kos
Supporter

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

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

We don't have a solution for this as we may need some input from your hosting. We did a test with this:

add_action( 'admin_init', 'wpml_fix', PHP_INT_MAX );
	        function wpml_fix() {
		        if( defined('DOING_AJAX') && DOING_AJAX ) {
			        CDN_Clear_Cache_Hooks::purge_cache();
		        }
	        }

So we tried to call clearing of the cache on admin_init - which should be executed just before an AJAX call - fusion_options_nl_ajax_save. However it is not working for some reason. The ajax action always fails with error 400 and there is nothing in the log.

Can you send this info to hosting company and get us some feedback on that?