This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing a 404 error when trying to view a translated page using WPML, it might be due to a conflict between the page slug and a custom post type slug. In this case, the translated page and a custom post type were using the same slug, causing a redirection issue.
Solution:
We recommend checking for any redirections that might have been set up inadvertently. Specifically, look for where the slug for your translated page is being redirected. You may need to remove or adjust this redirection to ensure that the correct translated page is accessible.
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 problems persist, please open a new support ticket at WPML support forum for further assistance.
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: Not WPML issue
This topic contains 14 replies, has 1 voice.
Last updated by Bruno Kos 1 week, 1 day ago.
Assisted by: Bruno Kos.
Author | Posts |
---|---|
September 30, 2025 at 4:26 am #17442522 | |
pratheepR |
Background of the issue: Symptoms: Questions: |
September 30, 2025 at 5:07 am #17442543 | |
pratheepR |
I have successfully translated a page on the English site from English to Spanish using WPML. I am trying to view the translated page, it is going to 404 page |
September 30, 2025 at 8:48 am #17443253 | |
Noman WPML Supporter since 06/2016
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting WPML Support. Could you please follow the below steps and see if this resolves the issue: 1. Take a backup of your site first for safety reasons. 2. We have recently released WPML 4.8.1, please update it to the latest version. You can update it from Plugins >> Add New Plugin page, click the Commercial tab, and then click the “Check for updates” button. Here is the screenshot for more details: https://wpml.org/wp-content/uploads/2020/04/wpml-force-plugin-update-1.png 3. Resave the permalinks from the Settings >> Permalinks page by pressing the Save Changes button. 4. Clear all sorts of site/server/CDN cache and see if this resolves the issue. If the issue still persists, kindly: 1. Share a translated page URL where I can see the problem. Kindly let me know the results, |
October 1, 2025 at 4:27 am #17447020 | |
pratheepR |
Hi Noman, We have followed the steps you suggested: Updated the plugin However, we are still facing the same issue — the translated content is not displaying and instead redirects to a 404 page. This issue occurs for all pages. Ex: The issue persists for both logged-in and logged-out users. Note: |
October 1, 2025 at 6:15 am #17447177 | |
Noman WPML Supporter since 06/2016
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thanks for trying the above steps, I can see the issue on the Single Service page. To take a closer look at the 404 page issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue. Your next answer will be private, meaning only you and I can access it. === Please backup your database and website === ✙ I would need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential. Thank you |
October 1, 2025 at 9:28 am #17447880 | |
Noman WPML Supporter since 06/2016
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Yes I am able to login to your site. |
October 2, 2025 at 10:07 am #17451553 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
I think I see the issue. You have this page: However, the same slug is also used for the Services custom post type: The Services page did not have a translation, so I created one here: I set the slug to servicios, since that’s your translated slug. For example: But when visiting: …it redirects to: -------------------------------------------- 301 Moved Permanently -------------------------------------------- Status: 301 Moved Permanently Code: 301 Date: Thu, 02 Oct 2025 09:51:46 GMT Content-Type: text/html; charset=UTF-8 Connection: close Expires: Thu, 02 Oct 2025 10:51:46 GMT Location: <em><u>hidden link</u></em> This means you have a redirection set somewhere, and it needs to be removed. Try finding where you set this, because the site itself is quite complex. Because of this redirect, the slug /es/servicios/ (your translated Services page) is never reached. |
October 2, 2025 at 12:44 pm #17452081 | |
pratheepR |
Hi Bruno, If it is redirecting we will check it, thanks for it. But the page(Product Sustanace) which I marked up in the image. Can you please check why it is going to 404 page. That is already has parent page(Industries), that page also coming as blank. |
October 3, 2025 at 5:36 am #17453365 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
This also looks like a some sort of a redirection issue. For example hidden link if I try to visit it from the backend, that is the URL. But in the frontend it redirects to hidden link. This one hidden link redirects to hidden link While hidden link doesn't use the correct parent page slug because it should be hidden link, but If try this URL WordPress takes me to hidden link. I am not sure why all of this occurs, but basically every page I tried redirects somewhere and parent page slugs are different for almost every child Industry custom post type there is, and this is likely the cause for all these 404s. If not within any of the plugins, perhaps this is set within the theme, htaccess or even server-side? |
October 6, 2025 at 2:04 pm #17461063 | |
pratheepR |
I'm seeing htis issues in log is it because of that we are getting 404. Can you please check that |
October 7, 2025 at 6:30 am #17462386 | |
pratheepR |
Hi Team, Can we have a Zoom call to figure out the issue? Thanks in advance, |
October 7, 2025 at 6:51 am #17462437 | |
pratheepR |
Can we please set up a online meeting to understand the problem and you can advice me on the solutions. |
October 7, 2025 at 1:11 pm #17463936 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Unfortunately, we don’t provide live support sessions such as Zoom or online meetings — all assistance is offered through tickets and chat only. Regarding the issue, it doesn’t appear to be related to WPML itself. From what I can see, there are several redirects and inconsistencies with slugs across your pages, which seem to be causing the 404 errors and unexpected behavior. For example: * The URL /es/industries/aeroespacial-y-defensa/ redirects to /es/industries/aeroespacial-defensa/. In addition, your Services page and the Services custom post type share the same slug (/services/), which can lead to conflicts. I noticed there’s a redirect from /es/servicios/ (the translated Services page) to /es/services/servicios-posventa/, which prevents the translated page from being accessed. This suggests that a redirection is set somewhere — possibly in your theme, a redirect plugin, your .htaccess file, or even server-side. I recommend reviewing where these redirects are configured and adjusting or removing them as needed. If you’re not the developer of the site or are unsure how to check this, you can reach out to one of the independent WPML contractors listed here: Once these redirects are cleaned up, WPML should handle the URLs correctly. |
October 11, 2025 at 4:10 pm #17476597 | |
pratheepR |
Hi Bruno, we have resolved the issue. But still we need the assistance example: instead of the expected could you please tell me, how can I resolve this issue. |
October 13, 2025 at 9:44 am #17479009 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
For me, hidden link returns a 404 error, and I have to type the URL manually. When I open hidden link and use the language switcher, it takes me to hidden link, which works properly. How do you end up at hidden link? |