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?
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.