Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are using the WPML plugin with the Flatsome theme, and after activating WPML, your website stops working, displaying either a white page or an error message stating that the site is currently unable to handle the request.
Solution:
The issue is due to fatal errors related to the missing 'DOMDocument' class, which indicates that the PHP-XML extension is not installed or enabled on your server. This extension is crucial for WPML as it relies on it for XML parsing. To resolve this, check if the PHP-XML extension is installed and enabled on your server. You might need to contact your hosting provider or refer to your server's documentation to ensure the extension is properly installed. For further guidance, visit WPML support forum.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins.

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.

Tagged: 

This topic contains 5 replies, has 0 voices.

Last updated by artakG 3 months ago.

Assisted by: Andrey.

Author Posts
May 22, 2025 at 12:48 pm #17061815

artakG

Background of the issue:
I am trying to use the WPML plugin on a website that uses the Flatsome theme. After activating the WPML plugin, the website stops working.

Symptoms:
The website either shows a white page or displays the message 'nareks.am is currently unable to handle this request.'

Questions:
How can I resolve the issue where the website stops working after activating the WPML plugin?

May 22, 2025 at 7:34 pm #17063421

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

Your site likely has an error in its PHP code. When errors are not caught, the server stops everything and returns a page that says “500 error” or an empty page. Different servers are configured to display these errors slightly differently, but they all mean the same thing—there is an unhandled PHP error in the site’s code.

First, you need to see what the errors are. Guessing what might be the problem and trying different solutions may lead to even more trouble. The first step is to enable debug. You can do this by adding a few lines to the site’s wp-config.php file. With error log enabled, you will see what the actual problem is.

To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);

In order to enable the error logging to a file on the server you need to add yet one more similar line:

define( 'WP_DEBUG_LOG', true );

In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory.

https://wpml.org/documentation/support/debugging-wpml/

Let me know what you see after the debug mode has been enabled.

May 22, 2025 at 8:12 pm #17063472

artakG

I increased the wp_memory_limit. After that, I was able to activate the WPML plugin and export the debug information. However, after that, I can no longer access the Plugins page in the dashboard. I get the following error: '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.' However, I am not receiving any email that would help me understand the issue.

After enabling debugging, the following errors appeared, which I am sending below.

"
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hk-idram-payment-gateway domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home2/narekshoney/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the payment-gateway-for-ameriabank domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home2/narekshoney/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the payment-gateway-for-telcell domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home2/narekshoney/public_html/wp-includes/functions.php on line 6121

Deprecated: Optional parameter $args declared before required parameter $options is implicitly treated as a required parameter in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/testimonials-widget/includes/libraries/aihrus-framework/includes/class-aihrus-widget.php on line 144

Deprecated: Creation of dynamic property VI_WOOCOMMERCE_THANK_YOU_PAGE_DATA::$prefix is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-thank-you-page-customizer/includes/data.php on line 15

Deprecated: Creation of dynamic property VI_WOOCOMMERCE_THANK_YOU_PAGE_DATA::$prefix is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-thank-you-page-customizer/includes/data.php on line 15

Deprecated: Creation of dynamic property VI_WOOCOMMERCE_THANK_YOU_PAGE_DATA::$prefix is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-thank-you-page-customizer/includes/data.php on line 15

Deprecated: Creation of dynamic property VI_WOOCOMMERCE_THANK_YOU_PAGE_DATA::$prefix is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-thank-you-page-customizer/includes/data.php on line 15

Deprecated: Creation of dynamic property VI_WOOCOMMERCE_THANK_YOU_PAGE_DATA::$prefix is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-thank-you-page-customizer/includes/data.php on line 15

Deprecated: Creation of dynamic property VI_WOOCOMMERCE_THANK_YOU_PAGE_DATA::$prefix is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-thank-you-page-customizer/includes/data.php on line 15

Deprecated: Creation of dynamic property VI_WOOCOMMERCE_THANK_YOU_PAGE_DATA::$prefix is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-thank-you-page-customizer/includes/data.php on line 15

Deprecated: Creation of dynamic property VI_WOOCOMMERCE_THANK_YOU_PAGE_DATA::$prefix is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-thank-you-page-customizer/includes/data.php on line 15

Warning: Cannot modify header information - headers already sent by (output started at /home2/narekshoney/public_html/wp-content/plugins/woocommerce-thank-you-page-customizer/includes/data.php:15) in /home2/narekshoney/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1590

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the currency-switcher-woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home2/narekshoney/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce-conditional-shipping-and-payments domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home2/narekshoney/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property WC_CSP_Restrict_Payment_Gateways::$method_title is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-conditional-shipping-and-payments/includes/restrictions/class-wc-csp-restrict-payment-gateways.php on line 31

Deprecated: Creation of dynamic property WC_CSP_Restrict_Payment_Gateways::$before_payment_gateways_template is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-conditional-shipping-and-payments/includes/restrictions/class-wc-csp-restrict-payment-gateways.php on line 33

Deprecated: Creation of dynamic property WC_CSP_Restrict_Payment_Gateways::$after_payment_gateways_template is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-conditional-shipping-and-payments/includes/restrictions/class-wc-csp-restrict-payment-gateways.php on line 34

Deprecated: Creation of dynamic property WC_CSP_Restrict_Shipping_Methods::$method_title is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-conditional-shipping-and-payments/includes/restrictions/class-wc-csp-restrict-shipping-methods.php on line 32

Deprecated: Creation of dynamic property WC_CSP_Restrict_Shipping_Countries::$method_title is deprecated in /home2/narekshoney/public_html/wp-content/plugins/woocommerce-conditional-shipping-and-payments/includes/restrictions/class-wc-csp-restrict-shipping-countries.php on line 32

Deprecated: Creation of dynamic property EDD_SL_Plugin_Updater::$version is deprecated in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/EDD_SL_Plugin_Updater.php on line 34

Deprecated: Return type of Recursive_ArrayAccess::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-recursive-arrayaccess.php on line 88

Deprecated: Return type of Recursive_ArrayAccess::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-recursive-arrayaccess.php on line 101

Deprecated: Return type of Recursive_ArrayAccess::offsetSet($offset, $data) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-recursive-arrayaccess.php on line 115

Deprecated: Return type of Recursive_ArrayAccess::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-recursive-arrayaccess.php on line 137

Deprecated: Return type of WP_Session::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-wp-session.php on line 251

Deprecated: Return type of WP_Session::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-wp-session.php on line 273

Deprecated: Return type of WP_Session::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-wp-session.php on line 262

Deprecated: Return type of WP_Session::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-wp-session.php on line 295

Deprecated: Return type of WP_Session::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-wp-session.php on line 284

Deprecated: Return type of WP_Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2/narekshoney/public_html/wp-content/plugins/testimonials-widget/includes/libraries/class-wp-session.php on line 310

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$mode is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 42

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$enabledRocketLine is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 43

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$tooltipType is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 44

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$empty_card is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 58

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$hkd_idram_checkout_id is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 59

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$language is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 60

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$successOrderStatus is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 61

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$testmode is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 62

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$edp_rec_account is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 63

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$secret_key is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 64

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$debug is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 65

Deprecated: Creation of dynamic property WC_HKD_Idram_Gateway::$language_payment_idram is deprecated in /home2/narekshoney/public_html/wp-content/plugins/hk-idram-payment-gateway/includes/main.php on line 66

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$clientID is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 76

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$language_payment is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 78

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$hkd_arca_checkout_id is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 80

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$language is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 81

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$testmode is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 82

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$secondTypePayment is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 83

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$empty_card is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 84

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$user_name is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 85

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$password is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 86

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$save_card_button_text is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 87

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$save_card_header is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 88

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$save_card_use_new_card is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 89

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$debug is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 90

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$multi_currency is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 91

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$save_card is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 94

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$successOrderStatus is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 96

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$log is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 99

Deprecated: Creation of dynamic property WC_HKD_Ameriabank_Arca_Gateway::$bankErrorCodesByDiffLanguage is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-ameriabank/includes/main.php on line 148

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$valid_days is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 47

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$empty_card is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 49

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$payment_gateway_for_telcell_checkout_id is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 50

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$language is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 51

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$testmode is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 52

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$shop_id is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 53

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$shop_key is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 54

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$debug is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 55

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$currency is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 56

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$language_payment_telcell is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 57

Deprecated: Creation of dynamic property HKDigital_Telcell_Gateway::$successOrderStatusTelcell is deprecated in /home2/narekshoney/public_html/wp-content/plugins/payment-gateway-for-telcell/includes/main.php on line 59
About WordPress
Narek's
Live
Flatsome
Customize
22 updates available
00 Comments in moderation
New
Edit Page
SEOOK
Delete Cache
VillaTheme
Insights
Howdy, honadmin
Search
Skip to content

"

May 23, 2025 at 9:38 am #17065189

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

Those errors are not critical and won't trigger the message: There has been a critical error on this website...

Do you have any fatal errors in the debug.log? The errors will be saved to a debug.log log file inside the /wp-content/directory.

May 23, 2025 at 9:48 am #17065261

artakG

Yes, I already have the log. Below, I am sending a link to download it.

I can also provide login credentials for you to take a look.

hidden link

May 23, 2025 at 2:17 pm #17066876

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for the details.

I’ve identified two types of fatal errors on your site:

1. PHP Fatal error: Uncaught Error: Class “DOMDocument” not found in
/wp-content/plugins/old-sitepress-multilingual-cms/classes/xml-config/class-wpml-xml-config-validate.php:67

2. PHP Fatal error: Uncaught Error: Class “DOMDocument” not found in
/wp-content/plugins/google-analytics-for-wordpress/includes/admin/notifications/notification-multiple-gtags.php:19

Although these errors come from different plugins, they are both related to the missing DOMDocument class, which is part of the PHP-XML extension.

I recommend checking whether the PHP-XML extension is installed and enabled on your server. WPML relies on this extension for XML parsing, and without it, some features may not function correctly.

You may need to contact your hosting provider or consult your server’s documentation to ensure the extension is properly installed.

For more information:
https://wpml.org/forums/topic/fatal-erorr-in-line-66-home-mostarin-public_html-ardiaba-ardiawebnew-wp-content/

May 23, 2025 at 2:47 pm #17067008

artakG

The 'dom' extension was enabled. I recreated the .htaccess file, and it started working.

Sorry for the inconvenience and thank you for your help!