Title: Textdomain errors in log
Last modified: May 4, 2026

---

# Textdomain errors in log

 *  [Eileen Mack](https://wordpress.org/support/users/mowsteadily/)
 * (@mowsteadily)
 * [2 days, 23 hours ago](https://wordpress.org/support/topic/textdomain-errors-in-log/)
 * We are seeing this error on sites running this plugin (version 1.5.18) and PHP
   8.2:
   `Function _load_textdomain_just_in_time was called **incorrectly**. Translation
   loading for the wc-shippo-shipping 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](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   for more information. (This message was added in version 6.7.0.)`The error occurs
   multiple times on front end and admin pages.The stack trace is as follows:`1:…/
   wp-includes/functions.php -- line 61312: …/wp-includes/functions.php -- line 
   60713: …/wp-includes/l10n.php -- line 13814: …/wp-includes/l10n.php -- line 14195:…/
   wp-includes/l10n.php -- line 1956: …/wp-includes/l10n.php -- line 3077: …/wp-
   content/plugins/wc-shippo-shipping/wc-shippo-shipping.php -- line 318: …/wp-settings.
   php -- line 5609: …/wp-config.php -- line 16810: …/wp-load.php -- line 5011: …/
   wp-admin/admin.php -- line 3512: …/wp-admin/plugins.php -- line 10

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [1teamsoftwaresupport1](https://wordpress.org/support/users/1teamsoftwaresupport1/)
 * (@1teamsoftwaresupport1)
 * [2 days, 2 hours ago](https://wordpress.org/support/topic/textdomain-errors-in-log/#post-18899868)
 * We are sorry for the troubles, it is something new that WordPress forces when
   translation function is used a bit early. The easiest way to quickly resolve 
   is to disable WP_DEBUG and notices will disappear.
 *  Thread Starter [Eileen Mack](https://wordpress.org/support/users/mowsteadily/)
 * (@mowsteadily)
 * [2 days, 1 hour ago](https://wordpress.org/support/topic/textdomain-errors-in-log/#post-18899918)
 * Hi,
   I understand the cause of the issue, however this change was introduced with
   WP 6.7 in November 2024, so it’s not really new any more. We rely on WP_DEBUG
   on staging sites to be able to track actual emergent errors / deprecations and
   to have one plugin flooding the logs with this error is a pain.The real solution
   is generally to make sure that any calls to translation related functions are
   attached to hooks that fire after translation is ready.In the case of your plugin
   the source of the error isn’t buried very deep – on line 31 of `plugins/wc-shippo-
   shipping/wc-shippo-shipping.php` in your `Plugin->register()` call, (basically
   the first thing your plugin does) you’re calling `__()` which needs translation
   to be available. Because you’re not attaching this to a hook, it’s basically 
   running around the `plugins_loaded` hook, before textdomain is loaded. You should
   hook that whole `Plugin->register()` call to `init`, or alternatively don’t try
   to use `__()` there.
 *  [1teamsoftwaresupport1](https://wordpress.org/support/users/1teamsoftwaresupport1/)
 * (@1teamsoftwaresupport1)
 * [1 day, 6 hours ago](https://wordpress.org/support/topic/textdomain-errors-in-log/#post-18900712)
 * Thanks for your feedback. We added a task to backlog to resolve it in the free
   version of the plugin. PRO version does not have this issue.
   Best Regards!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftextdomain-errors-in-log%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wc-shippo-shipping/assets/icon-256x256.png?rev=2420471)
 * [Multi-Carrier Shippo Shipping Rates & Address Validation for WooCommerce](https://wordpress.org/plugins/wc-shippo-shipping/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-shippo-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-shippo-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-shippo-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-shippo-shipping/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [1teamsoftwaresupport1](https://wordpress.org/support/users/1teamsoftwaresupport1/)
 * Last activity: [1 day, 6 hours ago](https://wordpress.org/support/topic/textdomain-errors-in-log/#post-18900712)
 * Status: not resolved