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.

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

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 14 replies, has 3 voices.

Last updated by Nicolas V. 9 months, 4 weeks ago.

Assisted by: Nicolas V..

Author Posts
April 4, 2024 at 1:08 pm

FortunyShop

D'accord, nous devons faire remonter l'information car la cause n'est pas claire et il faut prendre le temps d'enquêter.

Gardez l'accès s'il vous plaît car nous en avons toujours besoin.

April 4, 2024 at 2:21 pm
April 4, 2024 at 9:39 pm #15485860

Ilyes
Supporter

Languages: French (Français )

Timezone: Pacific/Easter (GMT-05:00)

Hello again,

After checking your configuration, there is a high chance that Object Cache is what is causing these 404 error.

One way to test it, is to disable it and see if the issue persists,

We've recently identified some issues with WPML that only arise when the Object cache is enabled on the site. For detailed information, please check the Errata below.

- https://wpml.org/errata/object-cache-pro-various-issues/

Could you please install the plugin suggested in the Errata and see if it resolves the issue?

- Back up the site completely first to prevent any issues.
- Go to the "/wp-content/" folder on the site and create a folder named 'mu-plugins' if there is not one already.
- Inside the 'mu-plugins' folder upload this PHP file: hidden link
- Once done, enable the Object Cache plugin and clear the caches from there.

After setting up the plugin properly, it would be beneficial to refresh the permalink structure. You can do this by navigating to "Settings > Permalinks" from your dashboard and clicking on "Save changes." This step often helps to ensure the changes take effect correctly.

Best,

April 5, 2024 at 7:58 am #15486554

FortunyShop

Ok thanks for your answer, so, for sure the problem is Redis Object Cache.
Please find attached 2 screenshot, one with object cache on, one off.
Basically you can see that the footer block under the logo is always in one language if the cache is ON. When deactivated the language is correct, I guess it's the same with the URLs, so when searching for a URL it's missing in the language not present in cache.

The thing is I uploaded your Must Use Plugin and activated the object cache and still have the issue. Does it mean I have to switch object cache completely off?

Thanks

redis-enabled.png
redis-disabled.png
April 5, 2024 at 12:18 pm #15488070

FortunyShop

Checking the server resource usage, I have to say that disabling Redis Object Cache obviously increases the usage of MySql resources and PHP processes in general, hope you can help with this so I can switch Redis back on. Please see the blue and orange areas in the attachment.
Thank you

Screenshot 2024-04-05 141423.png
April 5, 2024 at 9:13 pm #15489899

Ilyes
Supporter

Languages: French (Français )

Timezone: Pacific/Easter (GMT-05:00)

Hello,

I totally understand that this is a crucial plugin for your site,

I tried to re-apply our plugin workaround manually, could you please enable the Object Cache again and then resave your permalinks?

If the issue persist, I will have to send a copy of your site to our developers, they will then investigate this further.

Best,

April 8, 2024 at 7:19 am #15492736

FortunyShop

Categories seem to work with object cache on but still something is wrong, the footer still shows up in the wrong language. Please see attachment.

THanks

french.png
April 8, 2024 at 9:57 pm #15496309

Ilyes
Supporter

Languages: French (Français )

Timezone: Pacific/Easter (GMT-05:00)

Hello,

It turns out this part of your footer is coming from a UX block : hidden link

So I checked if this Block from Flatsome theme is translated or not, it seems to be missing for many languages: hidden link

Please try completing its translation and let me know if that fixes it,

Best,

April 9, 2024 at 8:24 am #15497337

FortunyShop

Test n. 1: please find attached the screenshot.

Did not translate the block as you suggested yet.
Redis Cache turned OFF and cleared cache, the block is showing in the correct language (Italian), this means that Object cache has something to do with this.
Next I'll try your solution with Obj cache ON.

redis-off.jpg
April 9, 2024 at 8:29 am #15497357

FortunyShop

Test n. 2: please find attached the screenshot.

Did not translate the block as you suggested yet.
Redis Cache turned ON, the block is showing in the wrong language (English) in the Italian site.

redis-on.jpg
April 9, 2024 at 9:06 am #15497602

FortunyShop

Test n. 3: please find attached the screenshot.

Translated the block in all languages as you suggested.
Redis Cache turned ON, all caches flushed in all languages (WProcket and Cloudflare) but still the block is showing in the wrong language (English) in the Italian site.

block-translation.jpg
April 9, 2024 at 9:57 pm #15501829

Ilyes
Supporter

Languages: French (Français )

Timezone: Pacific/Easter (GMT-05:00)

Hello,

Thank you for testing this out,

This is potentially the same issue all over again with Object Cache plugin,

I think we should escalate this to our 2nd tier team, but before that, since we will have to turn Object cache on and off for testing purposes, could we simply do that on your live site or should we migrate your site on a different server of ours (or yours if you have a staging with a the same issue)?

I will open an internal ticket once you confirm which approach we could take,

PS: we will also potentially need a copy of your site, for that I could install all-in-one WP migration

Best,

April 10, 2024 at 8:16 am #15502667

FortunyShop

I have a staging area but with no Object Cache installed.
If no changes are made to the site apart from activating and deactivating Object Cache you can use the live site.
If changes are needed to debug (like switching themes or deactivating plugins) please copy everything to your servers.

Thanks

April 10, 2024 at 5:56 pm #15506002

Nicolas V.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Hello,

Ilyes will be of for a few days. I logged into your site and find a workaround for your issue.

Here is the video of my intervention: hidden link

- Basically I switched to a default HTML WordPress widget
- I translated it in "WPML > String Translation"
- I purged all caches from Object Cache and WP Rocket

April 11, 2024 at 3:58 pm #15510374

FortunyShop

Thanks for the suggested solution. It works using html, however I guess that everytime I'll use these kind of blocks in my theme I'll have this language problem.

I also tried to translate every block with Advanced Editor and to update each language with a different slug but same result.

Thanks for your support anyway

The topic ‘[Closed] Categories showing 404 error’ is closed to new replies.