I keep getting these error messages on debug.log (which grows to 1GB in a day!) I chatted with the developers from WordPress and WooCommerce (both latest versions), and they insist on getting the theme developers (You) to fix the issues.
[27-Mar-2025 11:40:42 UTC] PHP Notice: Function WP_Block_Patterns_Registry::register was called incorrectly. Pattern content must be a string. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home/u950082544/domains/x.com/public_html/wp-includes/functions.php on line 6114
and
PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce-gateway-stripe 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 /home/u950082544/domains/x.com/public_html/wp-includes/functions.php on line 6114
Please let me know were I can share our server credentials.
-
This topic was modified 1 year by
E K.
Hello!
Sensitive information can be sent to contact@tagdiv.com. Please include a link to this topic in your email so I can identify you. Include more information about your issues.
Thank you!
I am gonna make this coversation transparent here for others with similar problem to learn and hopefully receive a better customer support from you than me.
Betina’s reply to me:
I’ve checked and the issue seems to be from Woocommerce. As a temporary fix, you may disable the WP_DEBUG.
The error you’re seeing, “Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce-gateway-stripe domain was triggered too early.”, typically occurs when the WooCommerce Stripe payment gateway plugin is attempting to load its translations before WordPress is fully ready to handle them. This issue usually happens because the plugin is calling the translation loading function (_load_textdomain_just_in_time) at a point when WordPress hasn’t fully initialized or when the init hook has not yet fired.
Developers often release patches to address such issues.
The error message you’re encountering, “Function WP_Block_Patterns_Registry::register was called incorrectly. Pattern content must be a string. (This message was added in version 5.5.0.)”, typically occurs when there is an issue with the way a block pattern is being registered in WordPress. Specifically, this error suggests that the content passed to the register() function of WP_Block_Patterns_Registry is not a valid string, which is required.
Thanks,
Bettina
My reply to Betina
I know what the errors suggest, as we had WordPress developers looking at our installation. They asked us NOT TO HIDE the error, because that’s not a fix and the error will still shut down the server. And, TO GET IN TOUCH with the theme developers (THAT IS YOU) as these issues are theme related. Moreover, they insisted that both Woocommerce and WordPress are free of these bugs and that, again, they are theme-related.
Please advise,
