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.
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?
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
- 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.
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.
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?
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.