This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing intermittent 404 errors on translated pages after browsing other translated pages on your site using WPML. Disabling the 'Disable XML-RPC-API' plugin and refreshing the homepage in the original language temporarily resolves the issue, but it recurs after loading more translated pages. Solution: 1. Ensure that the 'Disable XML-RPC-API' plugin is deactivated, as WPML requires the XML-RPC API to function properly. 2. After deactivating the plugin, either re-translate the pages or open the existing translations in the WordPress Editor and update them. 3. Check for any unexpected redirects that might be caused by other plugins, such as '301 Redirects'. If found, disable these plugins to see if the issue resolves.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we recommend opening a new support ticket. Additionally, 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. 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 use WPML on my site hidden link to translate pages into 4 languages. I followed the theme documentation on how to install and use the WPML plugin: hidden link.
Symptoms:
After installing and translating a few pages, I encounter a server-side error 404 on translated pages. The issue occurs intermittently, especially after browsing other translated pages. Refreshing doesn't solve the issue, but reloading the homepage in the original language does, although the problem returns after loading more translated pages.
Questions:
Why do I get a 404 error on translated pages after browsing other translated pages?
Why does reloading the homepage in the original language temporarily solve the 404 error issue?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
Usually, you should only get a 404 if the translation is saved as a draft. These translations are in fact published?
Does saving the WordPress-Permalinks solve the issue?
If not, does clearing the Cache solve the issue?
If the issue still persists, I would like to request temporary access (wp-admin and FTP) to the site to investigate the issue further.
The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up the site and database before granting us access.
If you cannot see the "wp-admin / FTP" fields, your post and site credentials will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.
I may need to install a plugin called "All In One WP Migration" here to create a copy of the site that I can use to investigate the issue further.
However, I would also be very grateful if you could provide a staging site or copy of the website from your server for this purpose.
If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/de/account/websites/.
If you are not able to provide such a copy of the website for testing, please let me know on this ticket.
The private reply form looks like this: hidden link
The next time you reply, click on "I still need assistance".
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.
If the author does not provide such a config, you can alternatively create one yourself. This config can be stored under WPML > Settings > Custom XML Configuration.
We can further offer a WPML test site on which we can recreate the issue and I assist you with a basic configuration for some of the widgets, but if there are many affected widgets it would be better to reach the author of those widgets.
the problems comes when you load few translated pages 1 after the other, try loading the site in french, in the explore menu you have translated pages. load these pages 1 after the other you get error 404 i attach the screenshot below
disabling Disable XML-RPC-API did not help i still get 404
after deactiving that plugin i did both, complete translation again on french translated pages and also open editor and save again. but i still get the error.