Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client's website, which is multilingual, encountered an issue where product URLs in the French version were incorrect, leading to 404 errors.
Solution:
First, we suggested that the client tests the issue on a staging site using the default WordPress theme and only WPML and WooCommerce plugins enabled, ensuring all other plugins were disabled. This step was to isolate the problem and confirm it was not caused by a theme or another plugin.
Upon further investigation, we discovered that the translation of the custom product base in French was incorrect. We corrected the base to match the other languages, which resolved the issue and the URLs began working correctly.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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 6 replies, has 0 voices.

Last updated by Dražen 2 weeks ago.

Assisted by: Dražen.

Author Posts
November 25, 2024 at 9:37 am #16438388

dannyV-9

Background of the issue:
My site has 3 languages. Suddenly, on the French language version, my products are showing a wrong URL causing a 404 error. I have looked at several things but can't see anything particular.

Symptoms:
Permalinks on products have changed for the French language, causing a 404 error.

Questions:
Why are the product URLs incorrect in the French language?
How can I fix the 404 error for French product URLs?

November 25, 2024 at 10:02 am #16438781

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for contacting us.

Do you have a staging site where you can test a few things? Try to see if the issue happens when usingthe WP default theme and only WPML plugins and Wocommerce enabled, all other disabled. Please make sure to create a backup, before doing any actions, just in case.

If not, would it be possible to create one so we can also check further?

Let me know.

Thanks,
Drazen

November 26, 2024 at 12:48 pm #16444718

dannyV-9

Unfortuntely we don't have a staging site..

Creating one will take some time due to the size/complexity of the website...

Are there any pre-checks we can already try off hrs (CET hrs) since this is quite a urgent matter...

Thx a lot

Regards

November 26, 2024 at 1:30 pm #16445089

Dražen
Supporter

Languages: English (English )

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

Hello,

not much I can suggest since I am not sure how are you building and creating these pages, and I see you are using some 3rd party plugins / theme that might not be compatible with WPML.

I would like to suggest testing if the same issue happens with the default WP theme and only WPML plugins and Wocommerce, all others disabled. That way we can see if the issue is with product links and translation, or the issue is specific to that page and the way you are building it.

If possible I would suggest creating a staging and testing that.

Other than that you can share with me how are you creating that page, and if you are using any additional builder widgets or plugins?

Regards,
Drazen

December 3, 2024 at 4:36 pm #16473081

dannyV-9

I checked on a specific article and noticed this...

hidden link

hidden link

hidden link

so you can see the the last url (with the french tag) is not equal to the onther 2 languages...

So I would think permalinks but I don't see any difference...

December 4, 2024 at 7:02 am #16474458

Dražen
Supporter

Languages: English (English )

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

Hello,

can you please confirm you have followed and tested as suggested in my last reply?

Please also let me know your feedback on my question.

Thanks,
Drazen

December 7, 2024 at 6:50 pm #16488773

dannyV-9

Took down all of the plugings..except the woocommcere and WPML...

See attached...

When I then go to the dutch version of the product...

hidden link

the english version

hidden link

the french version

hidden link

so url is still showing wrongly...

Thx

PS ; let keep using this product as are main test...

Danny V - no plugins.JPG
December 9, 2024 at 7:25 am #16491204

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks.

1)I see your product in EN has only URL with product/title, while in FR it has categories in URL. Are you using some plugin or similar to remove it from default language?

2) Please share the access details of your website, so I can log in and take a look.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

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


- Please backup the site files and database before providing us access. 

- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.



Thanks,
Drazen

December 10, 2024 at 8:28 am #16496296

Dražen
Supporter

Languages: English (English )

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

Hello,

you have translated wrongly your custom product base, it is product and in french it is something else, image attached.

I have changed it to product like in other languages and it works fine:

hidden link

Regards,
Drazen

WooCommerce Multilingual & Multicurrency ‹ NV MARTIN VAN CLEVEN — WordPress.jpg