Background of the issue:
I am trying to maintain a bilingual website (English–Arabic) using WPML. I purchased WPML credits and enabled automatic translation to complete the remaining untranslated pages. After completing the translation, I ran a full site test.
Symptoms:
WooCommerce pages in Arabic stopped working, showing a 'There has been a critical error' message. All Arabic content across the site stopped working, including access to previously translated pages and the translation review panel. I saw a warning in WPML about the product_type field being set incorrectly for some product translations.
Questions:
How can I resolve the critical error affecting Arabic WooCommerce pages?
What steps should I take to fix the issue with the product_type field in WPML?
Hi,
Before your ticket is assigned to one of my colleagues, I'd like to guide you through some initial debugging steps to speed up the support process.
1. For critical error problem, please enable error reporting on your site as I need to see the details of the latest error log to understand the cause of the issue better. To enable it, open your ‘wp-config.php’ file 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 );
define( 'SCRIPT_DEBUG', true );
After adding the above code, please try reloading the backend/frontend of your site again, and if this will create a debug.log file in your site's wp-content directory. Please send us its contents.