Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 24 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 8 months ago.

Assisted by: Long Nguyen.

Author Posts
November 24, 2023 at 2:42 am #14913025

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

For now, I do not see that issue with some products and two products you mentioned in the first comment or variations in the frontend.

If it happens randomly, please let me know when it happens.
Also, you should put the code that excludes groups from caching before the line /* That's all, stop editing! Happy publishing. */ in the file wp-config.php, please check the screenshot attached.
And update WooCommerce Multilingual to the new version 5.3.0 and observe this issue again. Refer documentation https://wpml.org/faq/install-wpml/#checking-for-updates

Look forward to your reply.
Thanks

wp-config.php 2023-11-24 09-33-12.png
Products ‹ zk250hk2z1-staging.onrocket.site — WordPress 2023-11-24 09-28-53.png
Products ‹ zk250hk2z1-staging.onrocket.site — WordPress 2023-11-24 09-27-40.png
November 24, 2023 at 8:56 am #14914417

laurineP

The issue is not random ! As I explained, if you go to the backend of the website > product list, you will see some tags and categories are in the wrong language (ex : "gold" written in the French product list page, see attached screenshot). And then if you go to plugin > redis and deactivate it, the issue will disappear. I will try what you said and come back to you.

product list.jpg
November 24, 2023 at 12:48 pm #14917375

laurineP

Tried everything possible, adding this to wp-config where you said. Nothing works.

define ( 'WP_REDIS_IGNORED_GROUPS', ['WPML_Cache_Terms_Per_Lang']);
//or this one
define ( 'WP_REDIS_IGNORED_GROUPS', ['counts', 'plugins', 'category_relationships']);

November 27, 2023 at 1:26 am #14926079

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

I'm not able to access the staging site again. Can you please help me move your site to a test site that is hosted on the Cloudways server? If it is OK with you, we can migrate your content to further debugging without any risk.
To migrate, please follow steps in the private reply below.
More information: hidden link

You will get an email when the migration starts and one when the migration ends. Let me know when the migration is ready, and I will check the issue on the test site immediately.
The copy of your site will be online, but search engines won't index it (the copy), so you don't have to worry about duplicate content.
The information you share with us will be confidential. Once the problem is resolved, the details you shared with us will be deleted from our records.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Look forward to your reply.
Thanks

November 27, 2023 at 12:59 pm #14930109

laurineP

Hi there, the migration was done. Please deactivate the plugin called "omnisend" as soon as possible because its creating problem with my remarking emails. Thanks

November 27, 2023 at 2:23 pm #14931021

laurineP

The lmigratio has failed because of Omnisend actually.. I will recreate a staging site from my end and send you the credential, can you please send me a private info request again ?

November 28, 2023 at 2:47 am #14935605

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

Yes, sure. Your next reply is set to private to share the info.

Thanks.

November 29, 2023 at 4:15 am #14945989

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

I see the code that excludes the group from caching is available in the file wp-config.php and I follow steps that you mentioned above (https://wpml.org/forums/topic/categories-variations-are-messed-up/page/2/#post-14914417) to replicate the issue but I still do not see that.

Here is a screen record on my end hidden link

If you know how to replicate it with clear steps, please take a screen record and share it with me. Otherwise, you also have a workaround that fixes the issue in my first reply (https://wpml.org/forums/topic/categories-variations-are-messed-up/#post-14523919).

I also add the code below to the file functions.php in the theme folder, please observe this issue again.

add_filter( 'redis_cache_add_non_persistent_groups', function( $groups ) {
	$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',
	];
	return $groups;
} );

Look forward to your reply.
Thanks

November 29, 2023 at 11:15 am #14949687

laurineP

I am sorry to insist, but on your screen I can see you didnt really look at all the product list. If you type ctrl+F and search for a French word like "or" or "argent" in the English product list you will find at least 1 or 2 products that have it. And same in the French product list if you look for "silver" or "gold". I swear it happens all the time.

It doesn't work with the word "rainbow" and it doesn't work if you look in the search bar of the website, because it only search the names of the products not the tag or the categories !

I went on the website (didnt change anything) and it took me literally 5s to find it, please look at the screenshot.

search.jpg
November 30, 2023 at 3:07 am #14957315

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

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

Hi,

I believe it is working now, here is a new screen record hidden link

I've deactivated all plugins except WPML, WooCommerce and Redis Object Cache. Then I disable and re-enable object cache in Redis settings.

Can you please recheck this?

The topic ‘[Closed] Categories & variations are messed up’ is closed to new replies.