Skip to content Skip to sidebar

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.

This topic contains 1 reply, has 0 voices.

Last updated by Noman 2 days, 6 hours ago.

Author Posts
July 11, 2025 at 9:51 pm #17229382

mohabM-4

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?

July 13, 2025 at 4:53 pm #17231301

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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.

2. For product_type notice, please take a backup of your site and try to follow the suggestions from this thread: https://wpml.org/forums/topic/split-product_type-field-was-set-incorrectly/#post-15191522 and see if this resolves the issue.

3. Please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support

Kindly let us know the results,
Thank you