This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue where selecting the Spanish translation on a specific page redirects to the homepage instead of showing the Spanish translation. Additionally, there is confusion about why some links show as translated while others do not.
Solution:
1. We recommend checking the page in an incognito window as it might display correctly.
2. The main menu, which includes parent menu items as Custom Links, needs translation. We advise translating the main menu and verifying the URLs. For guidance on translating menus, please refer to this documentation.
If this solution does not resolve your issue or seems outdated, 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 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.
Tagged: Documentation request
This topic contains 2 replies, has 1 voice.
Last updated by joshuaT-8 1 week, 4 days ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
January 17, 2025 at 4:19 pm #16607338 | |
joshuaT-8 |
Background of the issue: Symptoms: Questions: |
January 19, 2025 at 1:39 pm #16610508 | |
Noman Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Before your ticket is assigned to one of my colleagues, I'd like to guide you through some initial debugging steps to speed up the support process. Could you please follow the below steps and see if this resolves the issue: 1. The current WP Memory Limit on your site is 40MB. The WP memory limit needs to be increased, it's different from PHP memory. PHP memory is fine but WordPress uses 40MB as default in your site. The minimum requirements for WPML are 128MB: https://wpml.org/home/minimum-requirements/ Please add this line to your wp-config.php file to increase WP memory, wp-config.php file is located in the root of your WP install: /* WP Memory Limit */ define('WP_MEMORY_LIMIT', '256M'); You can add it anywhere in your file. I recommend placing it right before the following line: /* That's all, stop editing! Happy blogging. */ 2. We have recently released WPML 4.6.15, please take a backup of your site and update it to the latest version. You can update it from Plugins >> Add New page, click the Commercial tab, and then click the “Check for updates” button. Here is the screenshot for more details: 3. Please ensure the status of the secondary language pages are set to "Published" and not "Draft." Here’s how you can confirm this: 4. If the secondary language page is published, please try to open the default language page in Edit mode and make sure it shows the pencil icon and not the plus(+) icon as you can see in the attached screenshot. 5. Resave permalinks from the Settings >> Permalinks page by pressing the Save Changes button. 6. Clear all sorts of cache from your site/server/CDN and see if this resolves the issue. Please let us know the results, |
January 20, 2025 at 1:45 pm #16613747 | |
joshuaT-8 |
All of that was changed/addressed prior to submitting the ticket. Going to the translations management section doesn't work. I have to click on the plus icon next to the page for it to work correctly which seems to be a quicker and more consistent process. |
January 20, 2025 at 3:15 pm #16614303 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Your answer will be private, meaning only you and I can access it. ❌ Please backup your database and website ❌ ✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical. ✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site. Best regards, |
January 23, 2025 at 1:20 pm #16628067 | |
joshuaT-8 |
I forgot to include that you have my permission to take a local copy of the site to debug |
January 23, 2025 at 1:29 pm #16628115 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, 1) Thanks for the access details. I checked the page using the incognito window, and it works correctly. (Kindly check this hidden link">screenshot) 2) I checked the hidden link">main menu, and it's not translated. Please translate it and check the URLs. Best regards, |
January 23, 2025 at 5:26 pm #16629265 | |
joshuaT-8 |
Why do some links show as translated and other don't? I'm currently not understanding how that relates to translating the main menu. The sub menu is already translated. |
January 23, 2025 at 5:33 pm #16629282 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, The parent menu items are Custom Links, which need to be translated. Please check this guide to know more about menu translation. Best regards, |
January 23, 2025 at 5:46 pm #16629338 | |
joshuaT-8 |
The parent menu items are regular pages, not custom links. They're pages that have already been translated including the page title. Do I still need to translate even though most links show translated? There are onlly a few that aren't. |
January 23, 2025 at 5:48 pm #16629353 | |
joshuaT-8 |
Disregard, I see what you're referring to |
January 23, 2025 at 5:50 pm #16629356 | |
joshuaT-8 |
Do I need to translate the entire menu if one link is custom? |
January 23, 2025 at 5:53 pm #16629381 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Yes, you need to translate the menu in order to translate this URL. You can use the WPML-> WP Menu Sync option. Please check the menu translation guide. (https://wpml.org/documentation/getting-started-guide/translating-menus/#easy-customizable-wp-menus-sync) Best regards, |
January 23, 2025 at 6:07 pm #16629423 | |
joshuaT-8 |
I created a blank page for that specific page/URL and added a redirect to make it easier |
January 24, 2025 at 10:26 am #16630931 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for your reply. If this workaround fixes the issue for you, it's okay. However, that's not the recommended method of translating menus. Best regards, |
January 24, 2025 at 1:31 pm #16631557 | |
joshuaT-8 |
Will that cause any issues long term with the menu? |