[Resolved] There has been a critical error on this website
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing a critical error message when trying to translate a page using WPML, and you have debug settings enabled in your WordPress configuration, the issue might not be directly related to WPML. Solution: First, check the
debug.log
file in your wp-content folder for any fatal error messages. This will help identify if the issue is with WPML or another plugin. In this case, the error was traced back to the WooCommerce plugin, specifically an unknown format specifier in a PHP file. Since the problem originates from WooCommerce, we recommend contacting WooCommerce support to resolve this issue.
Please note that this solution might be outdated or not applicable to your specific 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 the issue persists, please open a new support ticket with us.
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 translate a page on my website hidden link using WPML. I have added the following code to my configuration: define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
Symptoms:
When I click on the Flag to translate the page, I receive the message 'There has been a critical error on this website'.
Questions:
Why am I receiving a critical error message when trying to translate a page using WPML?
What steps should I take to resolve the critical error on my website?
We can't provide a solution for a problem coming from WooCommerce. You must contact the WooCommerce support service and ask them to investigate their code to determine what is causing the failure.