Skip to content Skip to sidebar

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

Problem:
The client was facing 404 issues on the custom post types posts in a secondary language.

Solution:
The language code was added wrongly in a translated slug section and I've fixed it by following the below steps:

1. I went to WPML >> Settings > Post Types Translation section.

2. Clicked on the “Set different slugs in different languages for Epareuses” link

3. Replaced the English slug:

en/range/reach-mowers

With:

range/reach-mowers

Relevant Documentation:
https://wpml.org/documentation/getting-started-guide/translating-page-slugs/

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 2 voices.

Last updated by Noman 1 year, 9 months ago.

Assisted by: Noman.

Author Posts
November 6, 2023 at 10:13 am

liberosJ

I have a website with Elementor/CPT/ACF and WPML.

My first language is french and second lang is english
When I translate pages it works ok /

but when I click on a product page :
hidden link (works fine)
hidden link (displays Page not find)

November 6, 2023 at 10:54 am
November 6, 2023 at 1:37 pm #14738239

liberosJ

Hi Noman,
Any news on the issue ?

November 6, 2023 at 3:33 pm #14739503

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I have followed the below steps:

1. I went to WPML >> Settings > Post Types Translation section.
2. Clicked on the “Set different slugs in different languages for Epareuses” link
3. Replaced the English slug:

en/range/reach-mowers

With:

range/reach-mowers

And now it works correctly: hidden link

Could you please check and confirm?

Thank you

frontend ss.png
backend ss.png
November 7, 2023 at 9:09 am #14744947

liberosJ

That's perfect, many thanks !!!

One last question for your expertise...

I had the english & french pages working since the beginning of 2023.

Another person updated all the wordpress & plugins last month and since then, I've noticed the english version won't display pages.
Do you think this wrong settings for theses paramaters could have happen during the updates of the plugins ?

November 7, 2023 at 9:33 am #14745223

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear your original issue is solved, thanks for confirming 🙂

For your new issue:

1. If the pages are disappears from the dashboard, then please follow the below steps:

1.1. Please take a backup of your site first for safety reasons.

1.2. Please go to WPML >> Support >> Troubleshooting page and press the below buttons:
- Clear the cache in WPML
- [Pages] Synchronize posts taxonomies
- Remove ghost entries from the translation tables
- Synchronize local job ids with ATE jobs
- Synchronize translators and translation managers with ATE
- Assign translation status to duplicated content
- Fix post type assignment for translations
- Set language information

2. If the pages have display issue at frontend, then please enable error reporting on your site to see which theme/plugin or code is causing this issue.

Please note that we are allowed to handle one issue per chat/ticket as per our support policy. If the new issue still persists after following the above steps, please feel free to create a new chat/ticket and we would be more than happy to help.

If your original issue is solved, please mark this ticket as resolved, thank you

November 7, 2023 at 9:36 am #14745249

liberosJ

Ok thanks for all that.

Do you think the wrong parameter that you've helped me correct can have changed when we updated the plugins last month ?

November 7, 2023 at 10:10 am #14745773

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

No, I don’t think so, it seems it intentionally added somehow. Thank you

November 7, 2023 at 10:13 am #14745785

liberosJ

Thanks for your expertise and opinion.
Thanks again for solving my issue.
Have a great week !