Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 1 replies, has 0 voices.

Last updated by Christopher Amirian 4 days, 4 hours ago.

Assisted by: Christopher Amirian.

Author Posts
June 2, 2025 at 12:03 pm #17097798

dragisaA

Background of the issue:
I am trying to use the WPML plugin with WooCommerce Multilingual on my website. I encountered a fatal error while attempting to set string language in the plugin. The error occurred in the file /home/kesezaus/public_html/kesizapravosmukalki.mk/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-strings.php on line 334.

Symptoms:
Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in /home/kesezaus/public_html/kesizapravosmukalki.mk/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-strings.php:334

Questions:
Why am I encountering a fatal error with the function icl_get_string_id()?
How can I resolve the fatal error in the WooCommerce Multilingual plugin?

June 2, 2025 at 12:34 pm #17097926

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

The chat was disconnected so I re-enter my last reply here:

Would you please test if the same thing happens on a minimal installation?

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except WPML and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

Thanks.