Automattic / woocommerce-payments

Accept payments via credit card. Manage transactions within WordPress.
https://wordpress.org/plugins/woocommerce-payments/
Other
176 stars 69 forks source link

Notice: Function _load_textdomain_just_in_time was called incorrectly #9727

Open Aljnk opened 1 day ago

Aljnk commented 1 day ago

Describe the bug

. Translation loading for the woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in .../wp-includes/functions.php on line 6114

To Reproduce

Actual behavior

Open any page

Desktop (please complete the following information):

Additional context

debug.log

vbelolapotkov commented 1 day ago

For the context, stack trace points to Jetpack-sync package, rather than WooPayments src code, and translation domain is from core rather than WooPayments. So probably the problem has to be solved outside WooPayments repo.