[Resolved] Can't translate pages and they are wrong as well.
This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to update translations for your WordPress site using WPML but encounter errors. Specifically, for the homepage, you receive the error 'we tried three times but failed. Please contact support'. For other pages, you encounter a fatal WordPress error or an error message.
Solution:
We have created separate tickets to track the issues you are facing with WPML more efficiently. Please follow the workarounds suggested in these tickets:
Additionally, create a new post (a simple one for testing) and check if you can translate it as expected. For already translated pages that are showing errors, try the workaround suggested here: Translation status stuck or displaying an error.
If these solutions do not resolve your issue or seem outdated, 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 the problem persists, 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 update translations for my WordPress site using WPML, but I encounter errors. I expected to see the translation page.
Symptoms:
I can't translate pages correctly. For the homepage, I get the error 'we tried three times but failed. Please contact support'. For other pages, I encounter a fatal WordPress error or an error message. WPML heeft deze pagina drie keer proberen te vertalen, maar dat is niet gelukt. Om hem te laten repareren, neem contact op met Ondersteuning van WPML.
Questions:
Why am I getting errors when updating translations?
How can I resolve the 'we tried three times but failed' error?
Please tries the following troubleshooting steps after a full site backup{mandatory}.
1) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)
2) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables
- Synchronize local job ids with ATE jobs
- Synchronize translators and translation managers with ATE
Then make a minor change in the Homepage content in the original language (to refresh the translation settings), and update it. After that, resend it for translation in English and make sure the issue is existing or not.
Thank you for the updates. Please create a new page or post (a simple one for testing) and check whether you can translate it.
Also, please share the WordPress debug.log (not WPML debug information) with us so we can collect more details on this. Refer to the following pages for instructions
To enable WordPress Debug log, open your wp-config.php file of the 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 );
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).
Thank you for the updates. I created a simple post for testing. However, it shows the following error message while translating the post to English or French.
There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.
Therefore please allow me to make a duplicator copy of your site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server. So we can troubleshoot the issue without affecting your live site.
I created a couple of new tickets for the easy tracking of the issues you are facing with WPML. It will help us to avoid discussing multiple problems in a single ticket.
So please try the workaround suggested in the following tickets first.