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.
WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Background of the issue:
is_cart() and is_checkout() cannot be used on "init" hook, the earliest is "wp" - if it's called before that they will always return false
See hidden link
However you call them on "init" hook
Here's a partial stack trace highlighting the issue:
Do you have any e2e tests internally? Bc whatever you try to do, never works, since is_cart/is_checkout will always return false on init hook
Btw same issue also "is_front_page()" WP (not WC) conditional, which, if called on "init" has not been initiated usually, since "parse_query" hasn't run on the main query yet