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: Exception, Not WPML issue
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 22, 2023 at 3:12 pm #14272517 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
I asked our 2nd tier team about this, I'll get back to you as soon as I have any news or questions for you. |
August 23, 2023 at 6:54 am #14274893 | |
nickyd-3 |
Thank you |
August 24, 2023 at 7:09 am #14282021 | |
nickyd-3 |
Hello, please let us know if there's any update. Thanks |
August 24, 2023 at 8:08 am #14282447 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
We are still checking this. |
August 24, 2023 at 2:13 pm #14286343 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
This is escalated to our 2nd tier team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you. |
August 25, 2023 at 1:20 pm #14292177 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
We found out that this happens only in your environment and we fixed it by clearing CDN cache. So perhaps it was only that - a caching where the information about missing table was there for some reason. Can you try now? |
August 25, 2023 at 4:25 pm #14293309 | |
nickyd-3 |
Hi, I tried clearing cache and checked it same think happened. But the server has cloudflare CDN for the fast loading websites. Do we need to change any settings there or deactivate it? |
August 28, 2023 at 5:04 am #14297127 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
I see - so the issue returns after a while, let me see with our 2nd tier if there is a particular caching group we can exclude. |
August 28, 2023 at 8:18 am #14298095 | |
nickyd-3 |
Thank you. We have CDN in our server. Let me know if we need to deactivate it. |
August 28, 2023 at 9:03 am #14298791 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
Are you able to exclude specific groups from caching, do you have such option in your CDN? If not, perhaps you could create a mu plugin (so within wp-content/mu-plugins) that would look something like this: <?php /** * Plugin Name: WPML Non-Persistent Cache * Description: A plugin to prevent persistent caching issues * Author: OnTheGoSystems * Author URI: https://wpml.org/errata/problems-with-buddypress-multilingual-and-redis-object-cache/ * Version: 1.0.0 * Plugin Slug: compdev */ wp_cache_add_non_persistent_groups( [ 'convert_url', 'element_translations', 'get_pages_adjust_ids', 'get_user_admin_language', 'translation_priority_relationships', 'translationmanagement--get_translation_job_id', 'wpml_cache_terms_per_lang', 'wpml_endpoints_support', 'wpml_pre_option_page', 'wpml_register_string_filter', 'wpml_register_string_filter--facetwp', 'wpml_slug_translation_records--post', 'wpml_slug_translation_records--taxonomy', 'wpml_st_cache', 'wpml_term_translation', 'wpml_tm_blog_translators--has_translators', 'wpml_wp_cache__group_keys', ] ); It could be element_translations group only, so no need for other groups within this list. Can you try and let us know? |
August 28, 2023 at 9:21 am #14298891 | |
nickyd-3 |
I can add the code, please tell me the PHP page name. |
August 28, 2023 at 12:03 pm #14300505 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
You can name a plugin as you wish, please check this: |
August 28, 2023 at 12:18 pm #14300727 | |
nickyd-3 |
I did, cleared cache and check. It's not solved yet. |
August 29, 2023 at 8:13 am #14304967 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
After checking this further, we can see that you also have a custom caching solution in your mu-plugins folder. What if within that plugin, so wp-content/mu-plugins/cdn-cache-management/includes/cdn-clear-cache-hooks.php, you also add: add_action('wp_ajax_fusion_options_nl_ajax_save', array($this, 'purge_cache'), PHP_INT_MAX ); add_action('wp_ajax_fusion_options_de_ajax_save', array($this, 'purge_cache'), PHP_INT_MAX ); add_action('wp_ajax_fusion_options_fr_ajax_save', array($this, 'purge_cache'), PHP_INT_MAX ); add_action('wp_ajax_fusion_options_it_ajax_save', array($this, 'purge_cache'), PHP_INT_MAX ); .... and for all other languages the same, so the same rules but add additional actions where you only update language code within "options_LANGUAGE_CODE_ajax" part. Can you try this and check if it causes issues elsewhere perhaps? |
August 29, 2023 at 10:03 am #14305913 | |
nickyd-3 |
Hi, Please check it and let me know. For CDN, we have cloudflare, let me know if we need to deactivate it. Thanks |