Skip Navigation

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

Problem:

A fatal error is being shown on the checkout page

 CRITICAL Uncaught Error: Call to undefined function WCML\Tax\Strings\icl_get_string_id()

Solution:

While using WooCommerce Multilingual & Multicurrency, you need to have WPML String Translation plugin activated.

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 derrickL-4 1 year, 8 months ago.

Assisted by: Ahmed Mohammed.

Author Posts
May 3, 2023 at 10:22 am #13577293

derrickL-4

If i have place order then showing me loader it's not going to next page
Please check now it's very big issue from my side
Thank you

May 3, 2023 at 12:30 pm #13578451

derrickL-4

Please response me fast it's very big issue in my side urgent need your help

May 3, 2023 at 12:48 pm #13578721

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for contacting WPML support!

I'm sorry to hear that you're experiencing difficulties with placing orders on your website. I'm here to assist you in any way I can 🙂

I understand that when you try to place an order on your website, the page gets stuck and the order doesn't go through. Is this problem occurring in the default language of your website?

Could you kindly share a test product URL that has been translated into another language? This will allow me to investigate the issue and provide you with a solution.

Additionally, to better understand how to move forward with a solution, could you please provide me with information about your environment by following these steps: http://wpml.org/faq/provide-debug-information-faster-support/.

Looking forward to hearing back from you.

May 4, 2023 at 4:12 am #13582623

derrickL-4

Please check now

May 4, 2023 at 2:19 pm #13587215

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for providing the debug information.

I was able to reproduce the issue on your website while visiting the website in the default language (English).

As you can see in the attached screenshot, there's an internal server error logged in the browser console, causing this issue.

I'm still not sure if this is a WPML issue, so please go to your WordPress dashboard → WooCommerce → Status → Logs and look for the fatal errors for today (2023-05-04). When found, please copy them and paste into your next reply.

Looking forward to hearing back from you.

20230504 at 17.15.21@2x.png
May 5, 2023 at 4:17 am #13590591

derrickL-4

2023-05-04T14:05:44+00:00 CRITICAL Uncaught Error: Call to undefined function WCML\Tax\Strings\icl_get_string_id() in /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce-multilingual/classes/Tax/Strings/Hooks.php:26
Stack trace:
#0 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WCML\Tax\Strings\Hooks->translateLabelString('INERNATIONAL', 4)
#1 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(205): WP_Hook->apply_filters('INERNATIONAL', Array)
#2 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-tax.php(682): apply_filters('woocommerce_rat...', 'INERNATIONAL', 4)
#3 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(659): WC_Tax::get_rate_label(4)
#4 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(499): WC_Checkout->create_order_tax_lines(Object(WC_Order), Object(WC_Cart))
#5 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(439): WC_Checkout->set_data_from_cart(Object(WC_Order))
#6 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1256): WC_Checkout->create_order(Array)
#7 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(485): WC_Checkout->process_checkout()
#8 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout('')
#9 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#10 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')
#12 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax('')
#13 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(false, Array)
#14 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#15 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/template-loader.php(13): do_action('template_redire...')
#16 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-blog-header.php(19): require_once('/home/clients/2...')
#17 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/index.php(17): require('/home/clients/2...')
#18 {main}
thrown in /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce-multilingual/classes/Tax/Strings/Hooks.php on line 26

2023-05-04T14:07:02+00:00 CRITICAL Uncaught Error: Call to undefined function WCML\Tax\Strings\icl_get_string_id() in /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce-multilingual/classes/Tax/Strings/Hooks.php:26
Stack trace:
#0 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WCML\Tax\Strings\Hooks->translateLabelString('INERNATIONAL', 4)
#1 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(205): WP_Hook->apply_filters('INERNATIONAL', Array)
#2 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-tax.php(682): apply_filters('woocommerce_rat...', 'INERNATIONAL', 4)
#3 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(659): WC_Tax::get_rate_label(4)
#4 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(499): WC_Checkout->create_order_tax_lines(Object(WC_Order), Object(WC_Cart))
#5 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(439): WC_Checkout->set_data_from_cart(Object(WC_Order))
#6 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1256): WC_Checkout->create_order(Array)
#7 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(485): WC_Checkout->process_checkout()
#8 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout('')
#9 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#10 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')
#12 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax('')
#13 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(false, Array)
#14 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#15 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/template-loader.php(13): do_action('template_redire...')
#16 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-blog-header.php(19): require_once('/home/clients/2...')
#17 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/index.php(17): require('/home/clients/2...')
#18 {main}
thrown in /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce-multilingual/classes/Tax/Strings/Hooks.php on line 26

2023-05-04T17:16:21+00:00 CRITICAL Uncaught Error: Call to undefined function WCML\Tax\Strings\icl_get_string_id() in /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce-multilingual/classes/Tax/Strings/Hooks.php:26
Stack trace:
#0 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WCML\Tax\Strings\Hooks->translateLabelString('INERNATIONAL', 4)
#1 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(205): WP_Hook->apply_filters('INERNATIONAL', Array)
#2 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-tax.php(682): apply_filters('woocommerce_rat...', 'INERNATIONAL', 4)
#3 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(659): WC_Tax::get_rate_label(4)
#4 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(499): WC_Checkout->create_order_tax_lines(Object(WC_Order), Object(WC_Cart))
#5 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(439): WC_Checkout->set_data_from_cart(Object(WC_Order))
#6 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1256): WC_Checkout->create_order(Array)
#7 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(485): WC_Checkout->process_checkout()
#8 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout('')
#9 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#10 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')
#12 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax('')
#13 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(false, Array)
#14 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#15 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/template-loader.php(13): do_action('template_redire...')
#16 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-blog-header.php(19): require_once('/home/clients/2...')
#17 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/index.php(17): require('/home/clients/2...')
#18 {main}
thrown in /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce-multilingual/classes/Tax/Strings/Hooks.php on line 26

2023-05-04T17:20:03+00:00 CRITICAL Uncaught Error: Call to undefined function WCML\Tax\Strings\icl_get_string_id() in /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce-multilingual/classes/Tax/Strings/Hooks.php:26
Stack trace:
#0 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WCML\Tax\Strings\Hooks->translateLabelString('INERNATIONAL', 4)
#1 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(205): WP_Hook->apply_filters('INERNATIONAL', Array)
#2 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-tax.php(682): apply_filters('woocommerce_rat...', 'INERNATIONAL', 4)
#3 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(659): WC_Tax::get_rate_label(4)
#4 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(499): WC_Checkout->create_order_tax_lines(Object(WC_Order), Object(WC_Cart))
#5 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(439): WC_Checkout->set_data_from_cart(Object(WC_Order))
#6 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1256): WC_Checkout->create_order(Array)
#7 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(485): WC_Checkout->process_checkout()
#8 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout('')
#9 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#10 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')
#12 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax('')
#13 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(false, Array)
#14 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#15 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-includes/template-loader.php(13): do_action('template_redire...')
#16 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-blog-header.php(19): require_once('/home/clients/2...')
#17 /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/index.php(17): require('/home/clients/2...')
#18 {main}
thrown in /home/clients/29087bc94de02e3121d9387e3f1bd01b/sites/dlangtraining.ch/wp-content/plugins/woocommerce-multilingual/classes/Tax/Strings/Hooks.php on line 26

May 5, 2023 at 7:20 am #13591155

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for providing the error logs.

The fatal error is happening and preventing the checkout process because the website does not have WPML String Translation plugin, which is required for WooCommerce Multilingual & Multicurrency plugin to work.

You can install the plugin by going to your WordPress dashboard → Plugins → Add New → Commercial.

Hope that helps 🙂

20230505 at 10.19.36.png