Translation loading for the woocommerce-gateway-stripe domain
-
Getting huge amounts of these in my log:
PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
woocommerce-gateway-stripedomain 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 theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.)Could you please fix this?
-
Hi there,
As we haven’t had any updates, I’ll assume this is resolved and close the thread. Feel free to reconnect anytime.
Sorry, but this is still not fixed.
Hey Nauriskolats,
I am sorry you are still experiencing this issue. We are having trouble trying to reproduce this in the latest versions. Can you confirm if the error you get is the exactly the same you sent in the initial post? Do you have custom code/snippets/hooks in place? Which language is your store configured to? Can you send your system status report (or at least a list of all the extensions and versions you currently have)? To grab that:
- Head to WooCommerce > Status in your dashboard.
- Click Get system report and then Copy for support.
-
This reply was modified 5 months ago by
Wesley Rosa.
Hi @wesleyjrosa, my log file now is more than 50MB in size with more than 80 000 records with just these:
[06-Aug-2025 15:02:20 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoocommerce-gateway-stripedomain 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 theinitaction 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 6121And here is my system report:
WP Version: 6.8.2
PHP Version: 8.3.17
Active Plugins (12)Akismet Anti-spam: Spam Protection: by Automattic – Anti-spam Team – 5.5
CLP Varnish Cache: by cloudpanel.io – 1.0.2
Contact Form 7: by Takayuki Miyoshi – 6.1.1
XML Sitemap Generator for Google: by Auctollo – 4.1.21
InvoiceBoo – Invoices for WooCommerce: by Streamline.lv – 1.3
Native Emoji: by Daniel Brandenburg – 3.0.1
Plugin Reviews: by Starfish Plugins – 0.6.1
Software License Manager: by Tips and Tricks HQ – 4.5.8
CartBounty Pro – Save and recover abandoned carts for WooCommerce: by Streamline.lv – 10.7
WooCommerce Stripe Gateway: by Stripe – 9.7.1
WooCommerce Price Based on Country: by Oscar Gare – 4.0.9
WooCommerce: by Automattic – 10.0.4 Inactive Plugins (0) Settings-
This reply was modified 4 months ago by
Nauriskolats.
Hi @nauriskolats,
Thanks for getting back to us. The system status report shouldn’t be that large. The proper way to share it is by going to WooCommerce > Status > Get System Report, then clicking Copy for support. This generates a lighter version of the report. You can paste it on a site like pastebin.com or gist.github.com and share the link with us. The file size should typically be well under 1MB.
Hey @mosesmedh
I do not feel comfortable sharing my store’s details in a public environment (hope you understand). As your collegue @wesleyjrosa mentioned, you mainly need to know my extensions (plugins) used and that’s what I provided even with some additional PHP and DB details.
If you would like to know which languages the store is configured with – just English:
Language: en_US-
This reply was modified 3 months, 4 weeks ago by
Nauriskolats.
Hi there!
I understand your concern. Since you’ve already shared the necessary information related to the plugins and WooCommerce, and we’re unable to replicate the issue on our end — plus nothing suspicious stands out — I would suggest the following:
Please create a staging site, deactivate all plugins except WooCommerce, then reinstall the Stripe plugin on the staging site and check if the error still occurs. This will help isolate the issue and determine whether a plugin conflict might be involved.
Let me know how it goes!
The above would be very helpful for us. As a last resort, if you want to just disable the warning for the extension domain (as we cannot reproduce it), you can directly edit your WordPress files. Change:
if ( ! doing_action( 'after_setup_theme' ) && ! did_action( 'after_setup_theme' ) ) {To:
if ( ! doing_action( 'after_setup_theme' ) && ! did_action( 'after_setup_theme' ) && $domain !== 'woocommerce-gateway-stripe' ) {In
/wp-includes/l10n.php. Line 1370.Hi @shahzeenfarooq, thank you for your suggestion!
Tried making a staging site and copying everything and got the same results. Then tried disabling all plugins one by one until I was able to localize the issue to a specific plugin Price based on Country for WooCommerce. Once this plugin is working alongside yours I get this error. After I disable one or the other the error is no longer there.
Can you please take a look and resolve this incompatibility issue?Hi there!
I’m glad you were able to find the root cause of the issue. Please note that in this forum, we only provide support for the core plugin features and issues not caused by plugin conflicts. Since the issue you’re facing is due to a plugin conflict, I would suggest contacting the Price Based on Country for WooCommerce support team here:
https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/
and ask if they can help you fix the issue.Otherwise, I would recommend following the suggestion given by my colleague @wesleyjrosa to remove that warning here
Please let us know what the plugin support team suggests. Thank you!
I have been in contact with the Price Based on Country for WooCommerce plugin and they have made a fix that has resolved this issue.
Thank you for your support and help figuring this out! 🙂Hi there!
I’m glad the Price Based on Country for WooCommerce team was able to fix the issue. Thank you for updating us, and I’m happy we could help you along the way.If you’re happy with the support you received, would you consider leaving us a quick review? It really helps us out: https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/#new-post
Thank you
You must be logged in to reply to this topic.