Skip Navigation

This topic contains 0 replies, has 1 voice.

Last updated by ahmedk-22 2 days, 15 hours ago.

Assisted by: Dražen Duvnjak.

Author Posts
October 2, 2024 at 6:53 am #16243446

ahmedk-22

Background of the issue:
We are having an issue with the checkout. When we switch to the secondary language on the site and try to purchase the product, we get a critical error on checkout when hitting the purchase button. This does not happen in the primary language. In Woo logs, we are getting this error: Uncaught ValueError: Path cannot be empty in /home/1228463.cloudwaysapps.com/babffxpgsn/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:53. Link to a page where the issue can be seen: hidden link

Symptoms:
Critical error on checkout when switching to the secondary language and hitting the purchase button. Error message: Uncaught ValueError: Path cannot be empty in /home/1228463.cloudwaysapps.com/babffxpgsn/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:53.

Questions:
Why does the critical error occur only when switching to the secondary language?
How can we resolve the 'Path cannot be empty' error in WooCommerce?

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.