Skip Navigation

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

Problem:
The client's website became inaccessible after updating WordPress, with the 'WPML Multilingual CMS' plugin activated. The debug log showed a PHP fatal error related to an undefined function

icl_get_string_id()

in the WooCommerce Multilingual plugin.

Solution:
1. We advised the client to enable WordPress debugging by adding the following code to the 'wp-config.php' file:

define( 'WP_DEBUG', true );<br />define( 'WP_DEBUG_LOG', true );<br />define( 'WP_DEBUG_DISPLAY', true );

Above the line:

/* That's all, stop editing! Happy blogging. */

For more information, we provided a link to our debugging documentation: https://wpml.org/documentation/support/debugging-wpml/

2. We recommended updating the WPML Multilingual CMS to version 4.6.8 and WPML String Translation to version 3.2.8, after ensuring a website backup. Instructions for manual updates were provided: https://wpml.org/faq/updating-wpml-manually/

3. Upon receiving the client's WordPress and FTP credentials, we confirmed that the issue was due to outdated versions of WPML String Translation and WooCommerce Multilingual. After updating these plugins, the website was restored to normal functionality.

If this solution does not seem relevant to your situation, please do not hesitate to open a new support ticket with us for further assistance: WPML Support Forum

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 7 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 6 months ago.

Assisted by: Christopher Amirian.

Author Posts
December 2, 2023 at 8:19 pm #14978757

markusF-31

Tell us what you are trying to do?
Ever since I updated WordPress to the newest version, my Website is not accessible if I keep the plugin "WPML Multilingual CMS" activated.

Is there any documentation that you are following?
I think the person had the same issue: https://wpml.org/forums/topic/wpml-multilingual-cms-does-not-work-anymore/
But I could not resolve mine.

I need the plugin for all my translations. Having it deactivated is thus not an option.

Also, I can't provide debuging info, since if the plugin is deactivated, I can't seem to retrieve it.

Is there a similar example that we can see?
I think it is similar to this: https://wpml.org/forums/topic/wpml-multilingual-cms-does-not-work-anymore/

What is the link to your site?
hidden link

December 3, 2023 at 2:10 pm #14980145

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

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

Hi there,

If the website is not accessible it shows there is an error under the hood. You need to enable the WordPress debug to see what is the error and share with us:

Would you please access your website files and edit the "wp-config.php" file on the root folder of your WordPress installation and add the code below into the file:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );

Please add the code above the line below:

/* That's all, stop editing! Happy blogging. */

For more information:
https://wpml.org/documentation/support/debugging-wpml/

One other thing to mention is that we are in the 4.6.8 version of WPML Multilingual CMS and 3.2.8 for WPML String Translation. If you have older versions please update them:

- 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.
- Make sure you are signed in wpml.org.
- Go to https://wpml.org/account/downloads/
- Click the "Download WPML manually" link to show the rest of the plugins on the page.
- Download the latest version of the WPML and its add-ons.
- Install them manually on your website using the method below:
https://wpml.org/faq/updating-wpml-manually/

Thanks.

December 3, 2023 at 2:29 pm #14980155

markusF-31

Hi Christopher,

I have added to code, yet I dont know where I can find the debug information. Can you tell me where it is supposed to be.

In one of your articles it sais: "In most cases, you can find the debug.log file in the content folder. Depending on your server settings, use FTP or some other method to get the debug.log file. You can then send us its content."
However, there is no such file named "debug"

All the best,
Markus

Capture.PNG3.PNG
December 3, 2023 at 2:33 pm #14980219

markusF-31

Maybe, if it helps. I want on "recovery mode" and copied the following infotmation:

1. Communitation Log:
om","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"hidden link{project_id}/documents","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"ffad5fa853bba0b6c9eda94b382b0201","doc_url":"https://wpml.org/translation-service/lilt/","notification":false,"tms":true,"has_language_pairs":false,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"","how_to_get_credentials_url":"","client_create_account_page_url":"","partner":false,"review_url":"","uses_ate":false,"self_registered":false,"custom_fields":[{"label":"API Key","name":"api_key","type":"text"}],"default_service":0,"translation_feedback":false,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":0,"popularity_ranking":0.0,"primary":0.0,"primary_ranking":0.0},"ratings":{"wpml_average_user_rating":0.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":true},{"id":117,"name":"Smartcat","description":"Smartcat is an all-in-one platform connecting businesses and translators into a continuous translation delivery loop by combining a collaborative workflow solution, a marketplace, and a network of translation professionals.\r\n","url":"https://wpml.org/go/smartcat/","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"%{server_url}/projects/%{project_id}","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"d1c696251639dde597dd81b6fec113a9","doc_url":"https://wpml.org/translation-service/smartcat/","notification":false,"tms":true,"has_language_pairs":false,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"","how_to_get_credentials_url":"","client_create_account_page_url":"","partner":false,"review_url":"","uses_ate":false,"self_registered":false,"custom_fields":[{"label":"Server URL","name":"server_url","type":"text"},{"label":"API key","name":"api_key","type":"text"},{"label":"Account ID","name":"account_id","type":"text"}],"default_service":0,"translation_feedback":false,"feedback_forward_method":"api","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":0,"popularity_ranking":0.0,"primary":5.0,"primary_ranking":0.0},"ratings":{"wpml_average_user_rating":5.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":true},{"id":121,"name":"Smartling","description":"Smartling is a translation management platform and language services provider to localize content across devices and platforms. Author of Enterprise Translation Cloud, a data-driven approach to localization that helps customers achieve higher quality translation at a lower total cost.","url":"https://wpml.org/go/smartling/","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"hidden link{account_id}/account-jobs/{project_id}:{job_id}","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"3f1d34db7a1c34e0840e81b4aceb97db","doc_url":"https://wpml.org/translation-service/smartling/","notification":true,"tms":true,"has_language_pairs":true,"deadline":false,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"","how_to_get_credentials_url":"","client_create_account_page_url":"","partner":false,"review_url":"","uses_ate":false,"self_registered":false,"custom_fields":[{"label":"User Identifier","name":"user_identifier","type":"text"},{"label":"User Secret","name":"user_secret","type":"text"},{"label":"Account UID","name":"account_uid","type":"text"},{"label":"Project ID","name":"project_id","type":"text"}],"default_service":0,"translation_feedback":false,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":0,"popularity_ranking":0.0,"primary":0.0,"primary_ranking":0.0},"ratings":{"wpml_average_user_rating":0.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":true},{"id":144,"name":"RWS Language Cloud TMS","description":"Manage the whole translation process without leaving WordPress, by sending content directly to any language service provider, in-house or external.","url":"hidden link","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"hidden link","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"a87dad5a887e062d5a269574bd54fc3b","doc_url":"https://wpml.org/translation-service/rws-language-cloud/","notification":false,"tms":true,"has_language_pairs":false,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"Your username and password are the same as the credentials you use to login to SDL Language Cloud","how_to_get_credentials_url":"https://wpml.org/translation-service/sdl-language-cloud/#connecting-to-language-cloud","client_create_account_page_url":"hidden link","partner":false,"review_url":"","uses_ate":false,"self_registered":false,"custom_fields":[{"label":"Username","name":"username","type":"text"},{"label":"Password","name":"password","type":"text"},{"label":"Client ID","name":"client_id","type":"text"},{"label":"Client Secret","name":"client_secret","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":0,"popularity_ranking":0.0,"primary":0.0,"primary_ranking":0.0},"ratings":{"wpml_average_user_rating":0.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":true},{"id":148,"name":"Crowdin","description":"More than 1 000 000 people use Crowdin to translate, manage and organize localization projects. No matter if you manage projects for clients, you work for a Fortune 100 company, or you're self-employed, Crowdin has features and integrations that will suit your localization needs.","url":"hidden link","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"699e6ed91a275d04372c7289922a5610","doc_url":"","notification":true,"tms":true,"has_language_pairs":true,"deadline":false,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"","how_to_get_credentials_url":"","client_create_account_page_url":"","partner":true,"review_url":"","uses_ate":false,"self_registered":false,"custom_fields":[{"label":"API token","name":"api_token","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":0,"popularity_ranking":0.0,"primary":0.0,"primary_ranking":0.0},"ratings":{"wpml_average_user_rating":0.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":false},{"id":149,"name":"Parlam","description":"The Parlam connector for WPML will link your WordPress platform with your Parlam TMS account. Once there, you can translate the content yourself assisted by the translation memory or assign it to the freelance translator or LSP of your choice.","url":"https://wpml.org/go/parlam/","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"b5a3b7ee5fa28c5370ed81e9a5db619b","doc_url":"","notification":true,"tms":true,"has_language_pairs":true,"deadline":false,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"","how_to_get_credentials_url":"","client_create_account_page_url":"","partner":true,"review_url":"https://wpml.org/submit-your-review/?parent_translation-service_id=9080929","uses_ate":false,"self_registered":false,"custom_fields":[{"label":"API token","name":"api_token","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":0,"popularity_ranking":0.0,"primary":0.0,"primary_ranking":0.0},"ratings":{"wpml_average_user_rating":0.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":false}]
}

December 3, 2023 at 2:58 pm #14980279

markusF-31

I have found the debug file 🙂

[03-Dec-2023 14:56:24 UTC] PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php:332
Stack trace:
#0 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(93): WCML_WC_Gateways->get_gateway_string_id('PayPal', 'paypal', 'title')
#1 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(78): WCML_WC_Gateways->register_gateway_settings_strings('paypal', Array)
#2 [internal function]: WCML_WC_Gateways->loaded_woocommerce_payment_gateways(Array)
#3 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(371): call_user_func_array(Array, Array)
#4 /home/u340867361/domains/aroshops.com/public_html/wp-includes/class-wp-hook.php(324): WPML\FP\Fns::WPML\FP\{closure}(Array)
#5 /home/u340867361/domains/aros in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php on line 332
[03-Dec-2023 14:56:43 UTC] PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php:332
Stack trace:
#0 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(93): WCML_WC_Gateways->get_gateway_string_id('PayPal', 'paypal', 'title')
#1 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(78): WCML_WC_Gateways->register_gateway_settings_strings('paypal', Array)
#2 [internal function]: WCML_WC_Gateways->loaded_woocommerce_payment_gateways(Array)
#3 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(371): call_user_func_array(Array, Array)
#4 /home/u340867361/domains/aroshops.com/public_html/wp-includes/class-wp-hook.php(324): WPML\FP\Fns::WPML\FP\{closure}(Array)
#5 /home/u340867361/domains/aros in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php on line 332
[03-Dec-2023 14:56:48 UTC] PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php:332
Stack trace:
#0 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(93): WCML_WC_Gateways->get_gateway_string_id('PayPal', 'paypal', 'title')
#1 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(78): WCML_WC_Gateways->register_gateway_settings_strings('paypal', Array)
#2 [internal function]: WCML_WC_Gateways->loaded_woocommerce_payment_gateways(Array)
#3 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(371): call_user_func_array(Array, Array)
#4 /home/u340867361/domains/aroshops.com/public_html/wp-includes/class-wp-hook.php(324): WPML\FP\Fns::WPML\FP\{closure}(Array)
#5 /home/u340867361/domains/aros in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php on line 332
[03-Dec-2023 14:56:48 UTC] PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php:332
Stack trace:
#0 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(93): WCML_WC_Gateways->get_gateway_string_id('PayPal', 'paypal', 'title')
#1 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(78): WCML_WC_Gateways->register_gateway_settings_strings('paypal', Array)
#2 [internal function]: WCML_WC_Gateways->loaded_woocommerce_payment_gateways(Array)
#3 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(371): call_user_func_array(Array, Array)
#4 /home/u340867361/domains/aroshops.com/public_html/wp-includes/class-wp-hook.php(324): WPML\FP\Fns::WPML\FP\{closure}(Array)
#5 /home/u340867361/domains/aros in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php on line 332
[03-Dec-2023 14:56:53 UTC] PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php:332
Stack trace:
#0 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(93): WCML_WC_Gateways->get_gateway_string_id('PayPal', 'paypal', 'title')
#1 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(78): WCML_WC_Gateways->register_gateway_settings_strings('paypal', Array)
#2 [internal function]: WCML_WC_Gateways->loaded_woocommerce_payment_gateways(Array)
#3 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(371): call_user_func_array(Array, Array)
#4 /home/u340867361/domains/aroshops.com/public_html/wp-includes/class-wp-hook.php(324): WPML\FP\Fns::WPML\FP\{closure}(Array)
#5 /home/u340867361/domains/aros in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php on line 332
[03-Dec-2023 14:57:25 UTC] PHP Fatal error: Uncaught Error: Call to undefined function icl_get_string_id() in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php:332
Stack trace:
#0 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(93): WCML_WC_Gateways->get_gateway_string_id('PayPal', 'paypal', 'title')
#1 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(78): WCML_WC_Gateways->register_gateway_settings_strings('paypal', Array)
#2 [internal function]: WCML_WC_Gateways->loaded_woocommerce_payment_gateways(Array)
#3 /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(371): call_user_func_array(Array, Array)
#4 /home/u340867361/domains/aroshops.com/public_html/wp-includes/class-wp-hook.php(324): WPML\FP\Fns::WPML\FP\{closure}(Array)
#5 /home/u340867361/domains/aros in /home/u340867361/domains/aroshops.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php on line 332

December 4, 2023 at 7:12 am #14982335

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

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

Hi there,

Thank you. The error shows that you either do not have the WPML String Translation Installed, or it is deactivated or it is out of date.

Please make sure that you have the plugin "WPML String Translation" active and the version of the plugin is 3.2.8.

If the issue perssts, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

I will need also the FTP info so I can access sthe site files.

Make sure you set the next reply as private.

Thanks.

December 5, 2023 at 8:43 am #14993871

markusF-31

Hi there, do you have an update for me?

The functioning of the website is very important for me - especially during Christmastime. I pay regularly for a subscription and expect more feedback, not 1 chat per day or even longer.

Please don't take this personal. I am well aware that the company might not give you (Christopher) the resources and means to reply faster. This is feedback for whomever that is relevant.

December 5, 2023 at 12:58 pm #14997483

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

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

Hi there,

Thank you for your patience and sorry for the late reply.

I spent some time and indeed the issue was an older version of the WPML String Translation and also the Woocommerce Multilingual.

I managed to do the update and now the website is back online.

Thanks.

December 5, 2023 at 6:17 pm #15001863

markusF-31

Hi Christophe,

Strange.. I have updated the String. Anyway, I really appreciate the help!

All the best to you 🙂