Skip Navigation

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

Problem:
The client is facing an issue where the Pagelist component within a Navigation block is not correctly pointing to the English homepage in a multilingual setup. The settings for the Pagelist component are duplicated across both Dutch and English versions when trying to translate the pattern or template part. This results in navigation issues, particularly when switching languages, leading to broken links and 'page not found' errors.
Solution:
We recommend performing a full backup of your site before proceeding with any changes. After backing up, you should verify the slug changes for your homepage in each language. Specifically, ensure that the slug for the Dutch homepage does not interfere with the WPML functionality. If issues persist after checking and adjusting the slugs, we suggest deactivating plugins temporarily to identify if any are causing redirection issues. If the problem remains unresolved, please consider opening a new support ticket with us for further assistance. Additionally, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.

If this solution does not resolve your issue or seems irrelevant, please do not hesitate to open a new support ticket with us for personalized assistance. Visit our support forum at WPML Support Forum.

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 9 replies, has 2 voices.

Last updated by tomv-59 6 months ago.

Assisted by: Kor.

Author Posts
July 18, 2024 at 4:23 pm #15973748

tomv-59

Background of the issue:
The menu bar at the top of every page is automatically generated by adding a Pagelist block within a Navigation block. The navigation points to a single page (home) from which the URL structure and menus are then automatically generated. The client needs the pagelist component in the EN version to point to the EN homepage. They have tried translating the pattern or template part, but the setting for the page list component is copied to both the Dutch and English versions of the template part. Manually managing the menus is not an option due to the frequency the page structure and sub-menus change.

Symptoms:
The setting for the page list component is copied to both the Dutch and English versions of the template part when trying to translate the pattern or template part.

Questions:
How can I ensure the pagelist component in the EN version points to the EN homepage without affecting the Dutch version?
Is there a way to use the automatic navigation creation together with WPML? I created a pattern and tried to translate that but that also didn't work. After translating to EN the dutch site can no longer access the specified root page, and the same goes when translating from english to NL.
Thank you for your help.

July 18, 2024 at 4:31 pm #15973868

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

July 18, 2024 at 4:34 pm #15973880

tomv-59

I am running on a managed wordpress environment without FTP access. Upgrades are performed by the hosting provider to ensure continuity and no incompatibilities. I will create the backup and send credentials.

July 18, 2024 at 4:42 pm #15973884

tomv-59

Can you please send the e-mail to palmpje@gmail.com? I am the developer working on the site and do not have access to the owners e-mail address and he is unavailable at the moment. I will temporarily change the e-mail address in the account settings in this WPML interface.

July 18, 2024 at 4:44 pm #15973887

tomv-59

I created a backup, could you please let me know where I can send the admin login?

July 18, 2024 at 5:07 pm #15973916

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I received your login credentials via email and I will check and revert.

July 19, 2024 at 1:21 pm #15978616

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I've checked and I'm able to see the issues with translating the navigation menu in the English language here hidden link

However, I noticed some issues with your translated links. Switching to English from Dutch leads to a page not found hidden link . All English language page hidden link links are all broken.

I've tried deactivating plugins but there are still redirections. All English language page links are broken. Could you check on your end?

July 19, 2024 at 1:44 pm #15978680

tomv-59

Thank you,,

I am happy that you see the issue with the auto navigation in combination with wpml.

With regards to the links, I will check.

I recently changed the slug for the NL homepage from 'content' to 'nl', so that all dutch subpages would start with /nl/. A page needs a non,-empty slug for the auto navigation to work. Choosing nl I realise now might cause interference with the way WPML works. I will make some changes and get back to you later today.

Thanks for the excellent support.

Owen Knoote

July 19, 2024 at 1:45 pm #15978682

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Alright then, please let me know how it goes.

July 24, 2024 at 10:15 pm #16000603

tomv-59

The issue has been resolved by changing the URL slug of the homepage to something different than a language shortcode. Thanks for the assistance.