[Resolved] Crash on translation edit and now the translation is gone
This thread is resolved. Here is a description of the problem and solution.
Problem: Fatal error and blank ATE when trying to edit translation
Solution: Backup the site completely to prevent any issues and for a reference point.
- Go to: WordPress Dashboard -> WPML -> Support page, Click on the "Troubleshooting" link there
- Click on the Clear and Fix options there like the following options except for the Reset options. Those options will fix any translation and Database issues if there are any.
Clear the Cache in WPML
Remove ghost entries from the translation tables
Fix element_type collation
Fix WPML table collation
Set language information
Cleanup and optimize string tables
Synchronize local job ids with ATE jobs
I had a page that was fully translated from English to German by our translator. However, the language switch did not work (it redirected to the German homepage). Typing the German URL into the browser address bar did get me the translated page though.
Then I wanted to edit the translation, but clicking the pen icon resulted in a crash (see attached). Now, the translation seems to be disappeared as I only get the plus icon for this page, and no longer the pen icon.
There's another page where the language switch does not work. I don't dare to touch it as the same thing may happen again.
What happened and how can I restore my translation?
Kind regards,
Arno
PS: I also received an error via e-mail. If I can privately attach that here, please let me know. I'm not sure if it's related.
Welcome to the WPML support forum. I will do my best to help you to resolve the issue.
We had a similar issue recently. Please try the steps suggested in the following ticket after a full site backup{mandatory} and make sure the issue is existing or not.
I tried this on a copy of the site first. I clicked "Clear the Cache in WPML" and that was completed quickly. Then I clicked "Remove ghost entries from the translation tables". It kept showing the rotating icon for 10 minutes, so I checked the browser console. There, I found this message:
Failed to load resource: the server responded with a status of 524 () /wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Ftroubleshooting.php&debug_action=ghost_clean&nonce=f9b54e8a2a
My guess is that the process is taking too long and does not ping the browser. Then something (possibly Cloudflare) concludes that the page is unresponsive and throws a timeout. I could be wrong.
How do I complete all the steps recommended in the ticket?
After waiting for 20 minutes, I opened another browser tab and went again to WordPress Dashboard -> WPML -> Support page and clicked "Remove ghost entries from the translation tables". This time, it showed "Done" within seconds.
Thank you for the updates. Normally the WPML Troubleshooting steps will take only a few minutes. It mainly depends on how big the database is.
Please clear all types of caches including server caches after a full site backup. Then try the WPML Troubleshooting steps and check if the problem remains.
If you are still facing issue while WPML Troubleshooting steps, please share with us the WordPress debug.log(not WPML debug information) for collecting more details on this. Refer to this page for instructions https://wpml.org/documentation/support/debugging-wpml/
To enable WordPress Debug log, open your wp-config.php file of site root and look for define('WP_DEBUG', false);. Change it to:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check you are getting any errors or warnings related to WPML in the log file.
If you can paste your debug.log to http://pastebin.com/index.php and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).
I already had all caching disabled, except for Object Cache Pro, which can only be disabled from the WordPress Dashboard. I disabled it, and then tried the whole procedure again on the copy of the site. This time it worked fine, and I was able to open the ATE and see the translation that we lost.
Then I did the same thing on the actual site, and there it worked too. The only strange thing is, that WPML still showed a plus icon for the page, as if there was no translation yet. But when I clicked it, all translated texts were available. Then I clicked Complete, and WPML now shows the pencil/edit icon as expected.
Thank you for the feedback. Happy to know you are getting the expected results now.
This looks like an exception. Only reported once in the past. We will keep a close eye on this. Normally we can fix conflicts like this using WPML Troubleshooting.
--
Thanks!
Bigul
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.