[Resolved] Links in site revert back to primary language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where links within their multilingual site revert back to the primary language instead of leading to the correct language-specific URLs as configured in WPML. Solution: 1. Ensure that links are manually translated as explained in the WPML documentation on translating links with the Advanced Translation Editor. 2. If the issue persists, perform a full backup of your site. 3. Temporarily deactivate and then reactivate most of the plugins to check if this resolves the issue. 4. If the problem continues, it may be necessary to allow the WPML support team to troubleshoot directly on the production site, with precautions such as full backups and possibly escalating the issue to 2nd Tier Support.
If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. We also advise 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. For further assistance, please 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.
Background of the issue:
I am trying to ensure that links within my site do not revert back to the primary language. For instance, when I go to hidden link and click on the big orange button 'BEKIJK ONS COMPLETE VASTGOED AANBOD', it should lead to hidden link. I have configured WPML for each language to have its own domain extension.
Symptoms:
Instead of leading to hidden link, the link reverts back to the Spanish version hidden link. Additionally, the link wants to go to hidden link, which is incorrect.
Questions:
Why do links within my site revert back to the primary language?
How can I ensure that links lead to the correct language-specific URLs as configured in WPML?
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.
I regret any inconvenience caused, but to proceed with troubleshooting, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.
To guide you further, please adhere to these instructions:
1. View the Duplicator instructions video: hidden link
3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.
Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.
Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.
I apologize for the delay in response. Just letting you know that I would need more time to investigate this and I will come back to you as quickly as possible.
May I have your permission to proceed with troubleshooting on your production site? This would involve temporarily deactivating plugins or themes as needed. I will also escalate this matter to our 2nd Tier Support for further review. If you agree, please perform a full backup and let me know.
If you promise to be VERY CAREFUL you have my consent, but keep in mind; this is a new site for a new client of mine and I would really like to keep him happy!!!
I'm making a new duplicator backup as we speak / type, so give it half an hour and go ahead!
I’ve tested this both locally and on our sandbox site, but I haven’t been able to replicate the issue you experienced.
However, after deactivating and then reactivating most of the plugins on your Website, the links appear to be fixed. I’m still uncertain about the cause of the problem.
Good to hear from you again. I'll do some test runs through the site and see what's what.
May I ask your professional opinion? have I set up and configured the WPML stuff correctly in this site, looking at tanonomies, site structure and such?