Skip to content Skip to sidebar

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

Problem:
The client was experiencing a 'Page not found' error when switching to the French translation of the homepage, despite the translation being completed.

Solution:
We found that the homepage was set to display the latest posts, we recommended the following steps to resolve the issue:
1. Navigate to Dashboard > Settings > Reading > "Your homepage displays" section.
2. Change the setting to 'A static page'.
3. Select the default language homepage as the static page and save the changes.

If this solution doesn't look relevant to your issue, please feel free to 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 5 replies, has 2 voices.

Last updated by angeloM-17 1 year, 6 months ago.

Assisted by: Mohamed Sayed.

Author Posts
December 24, 2023 at 2:29 pm #15124353

angeloM-17

Hi. After completing the translation of my Italian website in English, I've started the French translation. I have an issue with the homepage already: when I switch to French, I have an error message "Page not found" (see FRENCH error screenshot). The translation is completed, as you can see in the TRANSLATION IS OK screenshot.

I can safely send you information about how to connect to the staging environment where you can do whatever you want.

I've tried deleting the French page and re-creating it: same result.

I've also attached a copy of the Italian and English homepage, that are working as expected.

Thanks for your help!

ITALIAN ok.jpg
ENGLISH ok.jpg
TRANSLATION IS OK for both languages.png
FRENCH error.png
December 24, 2023 at 9:21 pm #15125097

Mohamed Sayed

Hi Angelo,
Thanks for contacting WPML support.

Could you please try the following steps and see if that helps?

- Edit the original page in the default language
- Make a small change and update it (You can undo the changes later)
- Update the French translation

If that didn't help, create a full backup of the database and website then go to WPML > Support > Troubleshooting page, and click the following:

- Clear the Cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML table collation
- Set language information
- Fix post type assignment for translations

Let me know please how that goes.

Kind regards,
Mohamed

December 25, 2023 at 9:50 am #15125941

angeloM-17

Thanks Mohamed (and Happy Holidays) 🙂 I've tried both, first making a fake update: it did not work. Then clicking all those fixes in troubleshooting: after doing it, it was still not working, so I also did a fake update & update French like in option 1. Same result, still not working! I see "Page cannot be found" (in French).

I can give you access to my staging area where I am having this issue. Please note: other pages that I've already translated in French are working fine...

Bye!
A.-

December 25, 2023 at 10:11 am #15125959

Mohamed Sayed

Happy Holidays to you too 🙂

Please provide temporary access (WP-Admin) to the staging site so we can investigate this issue further.

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

✙ I would also need your permission to take a local copy of your site to debug the issue locally if needed.

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

December 25, 2023 at 5:45 pm #15127463

Mohamed Sayed

Hi,

The homepage was set to display the latest posts in your WordPress settings, I changed it to show a static page and selected the Italian homepage then the issue was resolved. Please see here: hidden link

Please try the following steps on the production site and let me know if that helps:

1. Go to Dashboard > Settings > Reading > "Your homepage displays" section
2. Set it to the Static page option
3. Select the Italian page and save the changes

Kind regards,
Mohamed

Screenshot_428.png
Screenshot_429.png
December 26, 2023 at 1:02 pm #15130085

angeloM-17

Thanks Mohamed, it solved my issue!

Can you now just tell me why I have 3 homepages that are "separated" in the 3 languages? Let me explain it better. Other pages are "unique": it's enough to me to edit the "Italian" page (for instance, I add a new text box), and the new text box appears also in the English and the French ones. If I do this in the homepage, it does not happen: I have to add the additional text box also to the French and the English pages, otherwise the text box is missing!

Thanks in advance!

December 26, 2023 at 3:40 pm #15130428

angeloM-17

I am sorry, it is not true: I've just tried, also the homepage is "unique". Thanks Mohamed for your help! Happy holidays once again.