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.

Our next available supporter will start replying to tickets in about 6.53 hours from now. Thank you for your understanding.

We have a longer than usual waiting time. Please make sure to check out the Known Issues page and Minimum Requirements before reporting any issue.
Sun Mon Tue Wed Thu Fri Sat
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

Tagged: 

This topic contains 29 replies, has 4 voices.

Last updated by adrienR-5 1 year, 1 month ago.

Assisted by: Subash Chandra Poudel.

Author Posts
August 6, 2023 at 5:43 am #14159407

Subash Chandra Poudel

Hi Arno,

We don't have an ETA yet our team are still working on it verifying the issue and trying to find a solution. The fact that cache might behave differently on different servers or situations is making the issue complex.

I have forwarded your update request to the team, I will send you an update here as soon as I have it from the team.

Regards,
Subash

August 17, 2023 at 9:14 am #14244233

arnoP-3

I'm adding a note here to refer back to this other issue that also seems Object Cache Pro related: https://wpml.org/forums/topic/translation-only-partially-makes-it-to-the-frontend/.

Is there any progress on your end? I think the more general issue is that WPML should prevent any backend actions/translation queries to be cached. That applies to all caches, not only to Object Cache Pro. If translations and translation statuses get cached somewhere, everything gets messy.

I would think that there should be a way to prevent caching, regardless of the type of cache. E.g. by making each query unique by adding a unique dummy WHERE clause or something like that. But I admit that I'm not technically experienced enough to understand all of this thoroughly.

August 18, 2023 at 5:20 am #14249401

Subash Chandra Poudel

Thank you for the updates and your thoughts.

The issue is still being troubleshot by our development team and I have forwarded your updates to the team.

Regards,
Subash

August 28, 2023 at 4:50 pm #14302565

Subash Chandra Poudel

Hi there,

We have an update from the team. The team provided a workaround can you please try the following and see if it helps with the issue:

- Backup the site completely first to prevent any issues.

- Go to /wp-content/ folder on the site and create a folder named mu-plugins if there is not one already.

- Inside the mu-plugins folder create a PHP file with any name ( or wpml-non-persistent-cache.php ) and place the following code on it:

<?php
/**
 * Plugin Name: WPML Non-Persistent Cache
 * Description: A plugin to prevent persistent caching issues (temporary issue: compdev-220).
 * Author: OnTheGoSystems
 * Author URI: https://wpml.org/errata/problems-with-buddypress-multilingual-and-redis-object-cache/
 * Version: 1.0.0
 * Plugin Slug: compdev-220
 */

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

Looking forward to hear how it goes.

Regards,
Subash

August 29, 2023 at 9:01 am #14305585

arnoP-3

Hi Subash,

Thank you. The solution makes sense (I mean, having a list of exclusions for the cache). I installed the file, then purged and restarted Object Cache Pro.

Issue (1) is not solved though. We adjusted the translation of a custom post type in the Advanced Translation Editor. After clicking Complete, the WPML status icon was stuck in the "refreshing translation status" mode. Without the cache enabled, this only takes seconds. Perhaps we need to add more exclusions?

The other issues remain to be seen.

August 29, 2023 at 12:20 pm #14306991

Subash Chandra Poudel

Thank you for the updates,

I have forwarded the details to our team and we will look further into it. In the mean time, I also recommend you do further tests like reclearing all caches and testing the cases again and see if it helps or not.

September 1, 2023 at 4:11 pm #14328043

arnoP-3

Here's an update after processing about 15 more posts that were translated by external translators.

First a summary of the issues:
# Issue 1: In the list of posts, the WPML translation status icon keeps rotating for a long time (20 minutes).

# Issue 2: Changes in the default language (English) don't immediately make it to the ATE. Changing a sentence in an English post worked fine and was visible in the frontend, but the Advanced Translation Editor still showed the old text. After 24 hours that was still the case. When making a second change to the same post, both changes were immediately updated in the ATE.

# Issue 3: Changes in the WPML Advanced Translation Editor are not immediately visible in the German frontend.

# Issue 4: Add user to WordPress, add user as translator in WPML, try to assign user to translation basket: user not listed.

# Issue 5: German translations missing in the frontend and some texts rendered in English even when translated. Also lost translated strings. Probably only happens if translation via translation jobs. Rare issue, only on one page so far. See https://wpml.org/forums/topic/translation-only-partially-makes-it-to-the-frontend/.

With your cache exceptions in place, issue #1 and #2 still occurred. Issue #3 occurred as well, but seems to be related with #1: once the translation status is ok, the frontend is ok too. We didn't try #4. Issue #5 is rare, so I can't say.

Note that things can work well for hours even with Object Cache Pro enabled. But then all these issues keep coming up for hours, and the only "solution" is to disable Object Cache Pro. Not much has changed yet I'm afraid.

Kind regards,
Arno

September 4, 2023 at 8:57 am #14334637

Subash Chandra Poudel

Thank you for the updates Arno,

The issue is now being handled by our core team and I have forwarded your updates to the team.

September 12, 2023 at 7:05 am #14380551

arnoP-3

Hi Subash,

I was just thinking: we also tested some recommended lines in the wp-config.php file before. They are currently commented out. Is that ok? I am only supposed to test with what you recommended on August 28, right?

The situation is still the same: sometimes things work fine for hours, but at other times we can't work without turning the cache off.

Another example: I was translating menus this week, and suddenly all menus were listed twice! I disabled Object Cache Pro, and that solved it.

September 12, 2023 at 10:44 am #14382831

Subash Chandra Poudel

The fix Provided on August 28'th or in the reply linked next should be enough:

https://wpml.org/forums/topic/object-cache-pro-causing-wpml-issues/page/2/#post-14302565

Our team is still working on it to find a proper way to replicate all of the issues and also to find the fix. In the mean time, do you have any info if this issue started from some specific date or after some specific update to WPML? Or was it like this always on your site?

Regards,
Subash

September 12, 2023 at 11:12 am #14382995

arnoP-3

I checked with my colleague and from what she can remember, these issues started around mid-June.

We started working with multiple external translators by late May. She can't recall issues like this around that time, or prior to May, when we had only one external translator.

But for sure by mid-June this was happening. Looking at the WPML releases, that was around the time that 4.6.4. was released, and I usually install them on this site quickly because it's still in development.

Interestingly, on June 23, someone else reported the same issue but they never resolved it: https://wpml.org/forums/topic/how-to-exclude-wpml-from-the-object-cache-pro/

More issues here:
https://wpml.org/forums/topic/object-cache-pro-issue/:
https://wpml.org/forums/topic/object-cache-issues/: "Just got a never stopping spinner after translating which completed"

Of course, this could all be a coincidence. Perhaps it's related to Object Cache Pro updates, which are installed by Cloudways and usually not immediately after they're released.

This is all I have for you right now. I hope they'll find a solution soon.

September 12, 2023 at 12:20 pm #14383709

Subash Chandra Poudel

Thank you for the details.

I have forwarded the details to our team.

Lets wait for the team's update after further troubleshooting.

October 7, 2023 at 6:20 am #14531895

arnoP-3

Hi Subash,

When do you expect an update about this issue?

October 9, 2023 at 4:52 am #14535757

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Arno,

Currently, we don't have any further information about this issue. Our development team is still working on it. We will update you here when we have any information.

Thanks for your patience.

September 26, 2024 at 6:50 pm #16227226

adrienR-5

Hello, any definitive solution with Object Cache Pro issues with WPML?

I have issues with menus myself when OCP is enabled, I can't see the other menus (not from my main language), and the dropdown for my main language I see lot of duplicates items of all my menus.