Title: Error message &#8220;The _load_textdomain_just_in_time function&#8230;.&#8221;
Last modified: February 23, 2026

---

# Error message “The _load_textdomain_just_in_time function….”

 *  [fabx77](https://wordpress.org/support/users/fabx77/)
 * (@fabx77)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/error-message-the-_load_textdomain_just_in_time-function/)
 * Hello,
 * I added a code snippet containing functions using the “**WP-cod**e” plugin, but
   as soon as I run it, the following message appears in the Debug.log file:
 * “_**The \_load\_textdomain\_just\_in\_time function was called incorrectly. Loading
   the translation for the graphene domain was triggered too early. This usually
   indicates that code in the plugin or theme is executing too early. Translations
   should be loaded at the time of the init action or later. (This message was added
   in version 6.7.0.)**“_
 * . My WordPress version is 6.9.1.
 * . My other plugins are up to date, and I’ve deactivated most of them to keep 
   only the essential ones.
 * P.S.: _For debugging, I added `error\_log("Hello")` at the very beginning of 
   my code. I can see them in the `debug.log` file, but I don’t see the `error\_log`
   statements within my functions. Does this mean it’s not interpreting my functions
   correctly_?
 * **Otherwise, your theme is great**!
 * Could you help me because I’m completely stuck… Thank you so much! :-))

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/graphene/2.9.4/screenshot.jpg)
 * Graphene
 * [Support Threads](https://wordpress.org/support/theme/graphene/)
 * [Active Topics](https://wordpress.org/support/theme/graphene/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/graphene/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/graphene/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [fabx77](https://wordpress.org/support/users/fabx77/)
 * Last activity: [2 months, 1 week ago](https://wordpress.org/support/topic/error-message-the-_load_textdomain_just_in_time-function/)
 * Status: not resolved