Skip Navigation

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

Problem:
The client was experiencing 404 errors or blank pages when switching to the French version of Elementor static posts on their bilingual site. The issue was related to the URL slugs for 'Country' and 'Project' which were translated, causing the posts not to be found.
Solution:
We recommended checking the WPML > String Translation section and deleting the translated slugs for the custom post types (CPT). Specifically, the client needed to search for the slug of the CPT, in this case, 'project' and 'country', and delete them. This action resolved the issue, allowing the translations to switch correctly without errors.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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.

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: 

This topic contains 9 replies, has 0 voices.

Last updated by rushdiS 2 weeks, 2 days ago.

Assisted by: Dražen.

Author Posts
May 21, 2025 at 9:12 am #17055974

rushdiS

Background of the issue:
I am trying to view the French version of the Elementor static posts on my site. The site is English by default but can switch to French. The issue can be seen on this page:

Country issue:
1. hidden link
2. hidden link

Project issue:
1. hidden link
2. hidden link

Symptoms:
When selecting French on the Elementor static posts, I get a 404 error or a blank page that says: "This page isn’t working". This issue occurs on the Countries and Projects Elementor single post static posts.

Questions:
Why am I getting a 404 error or a blank page when switching to French on Elementor static posts?
How can I resolve the issue of the French version not displaying correctly?

May 21, 2025 at 9:26 am #17056126

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I have created ticket, please check further what is causing issue for you by enabling back 1 plugin by 1, and let us know how it goes.

Regards,
Drazen

May 21, 2025 at 9:36 am #17056205

rushdiS

Hi There

I have deactivated all the suggested plugins and then started activating them one by one, but I see that the issues have happened again, the 404 errors are still happening, even with the limited plugins that are active.

1. hidden link

2. hidden link

Please note, only the suggested plugins are currently active:
1. Elementor
2. Toolset
3. WMLP

May 21, 2025 at 9:40 am #17056214

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

please share the access details of your website, so I can log in and take a look.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/


- Please backup the site files and database before providing us access. 

- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.



Thanks,
Drazen

May 21, 2025 at 10:28 am #17056481

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I checked and I could see same slug and translation being used by domain wpcf (country-detail), not sure what that is.

I deleted it from String translation and seems it worked fine, but now I can not access at all your website, not sure why looks like I am being blocked by something.

Please check if you still have issue and make sure I can access your website and there is no firewall blocking access.

Let me know.

Regards,
Drazen

May 21, 2025 at 10:58 am #17056613

rushdiS

Hi there

WordFence was deactivated so there shouldn't be a block. I reactivted WordFence now, please try once more. I can see that the country translation is showing. The projects seems to still be an issue.

If you can't login then please let me know so I can try it my side? What do I need to delete from my strings?

May 21, 2025 at 11:00 am #17056621

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I still can not login, might be your firewall hosting blocking me.

What I have do is gone to WPML > String translation and searched for slug of CPT, in your example, project and delete it.

Let me know if that helps.

Regards,
Drazen

May 21, 2025 at 11:07 am #17056691

rushdiS

Hi there

There's a few named project that I can see, which one is the correct one?

Please see attached screenshot.

New Project (6).jpg
May 21, 2025 at 11:17 am #17056757

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I do not see correct one in the list.

Try like this, search for projet and click checkbox "include translations".

Regards,
Drazen

May 21, 2025 at 2:19 pm #17058063

rushdiS

Hi there

I deleted all strings with "Projet", I have also retranslated the projects posts once again, but this hasn't seemed to fix the issue.

The French translation still goes to the broken 404 page:

hidden link
hidden link

This happens for all Projects static Elementor posts.

I could install the temp login plugin, let me know if you would like to try that method of logging in instead?

May 21, 2025 at 3:05 pm #17058239

rushdiS

Hi there

I have managed to figure it out, under string translations I had to remove the Project and Country "URL slug", from what I can understand, these Custom Post Type slugs were translated and the posts couldn't be found cause the URL was being sent to the translated slug. I deleted these two strings and then refreshed the front end, it took a while but it was corrected to the correct post.

My translations are now switching perfectly.

Thank you so much Dražen for your assistance.