This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing persistent loading and sporadic 404 errors on translated pages of their website after using WPML. The issues included pages not displaying after translation and random 404 errors when switching languages. Solution: We recommended the following steps to troubleshoot and resolve the issues: 1. Ensure all pages are correctly translated by making a minor edit in the original language, saving it, and then updating the translation. 2. Check and flush cache settings, as stale cache data might lead to pages not loading correctly. 3. Deactivate and reactivate plugins to identify any that might be causing conflicts, particularly focusing on the 'Razorpay for WooCommerce' and 'Categories Images' plugins, which were found to be problematic. 4. Switch the language URL format settings in WPML to see if this affects the 404 errors. 5. Increase the WordPress memory limit to ensure sufficient resources are available for operations. 6. If issues persist, especially with specific plugins like 'WooCommerce PayPal Payments', deactivate them to check if the problem resolves.
If these steps do not resolve the issues, or if the solution seems outdated or not applicable 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. For further assistance, please open a new support ticket 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 have translated almost all the website using WPML, and it is working as expected except for a few pages. The issue occurs when I try to open the translated pages, which keep loading. The problematic pages are: hidden link, hidden link, and hidden link. I have provided a link to a folder where the issue can be seen: hidden link.
Symptoms:
The translated pages keep loading and do not display as expected.
Questions:
Why do the translated pages keep loading indefinitely?
How can I resolve the issue with the translated pages not displaying?
1.- Please describe the steps you followed to translate the pages on your site.
2.- Also, I kindly ask you to follow these steps:
- Edit one of the pages in the original language
- Make a small change in the content
- Save the changes
- Go to WPML -> Translation Management -> Select the content and translate it (you can automatically translate it or assign it to yourself for translation)
- Finish the translation
- Double-check if the issue has disappeared
If the issue disappeared, follow the same steps in the other pages.
I went to WPL->Translation Management-> Select pages and then Autotranslate
I have tried making changes and saving the saving in original language and re-translate it. Issue remain same.
I have also faced the issue that while switching between different languages, the page is throwing 404 error while same page open again if we refresh or again switch from English to that language. This 404 error coming randomly anywhere.
Please share the access credentials to your site in your next message, which I have set private. This will allow me to double-check the configuration and reproduce the issue.
Confirm you have created a full site backup that you can restore if necessary.
I have flushed the cache memory, synced the menu, re-saved the permalinks, and run some troubleshooting steps. Now, I kindly ask you to update the translations of the pages where the problem can be seen and then double-check if the issue has disappeared.
Hi,
The issue still persist.
2 Issues as mentioned below:
1. translated Page keep loading. (hidden link)
2. I am trying to access the other lanugage version of our pages, but we are encountering 404 errors. The errors are sporadic and disappear after refreshing the page a few times. We have tested this on multiple computers and different browsers, but the issue persists. Here is a link to a page where the issue can be seen: hidden link
I'm more than happy to help you with any issues related to the translation of the content on your site. But first, you must solve the error in the theme code so we can rule that out as a possible cause for the 404 errors.
Hi,
Theme developer has fixed the issue and now hidden link & hidden link is opening in other languages too but still 404 error exist.
In fact, I have disabled the CDN for the website and also uninstalled the Lightspeed plugin which was being used for cache. Now cache has been flushed and website is not being cached but still 404 problem persist.
When i have changed language URL format from Different languages in directories to Language name added as a parameter, 404 error has bee stopped but when returning back to Different languages in directories, again 404 error started.
Pls suggest how to fix it.
Please follow these steps:
- Activate the WordPress debug mode, as described in this guide: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
- Reproduce the 404 errors
- Go to the wp-content folder -> Edit the debug.log file and check the latest errors recorded in the file
- Share the latest fatal error