• This error was triggered:

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the query-monitor 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.)

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks Jacob, where are you seeing this message please? On every screen? In your logs?

    Thread Starter Jacob N. Breetvelt

    (@opajaap)

    When disable gutenberg is activated on every screen, in the query monitor error list

    I’m seeing these error on every page view on my development machine where Query Monitor 3.16.4 is active. This appears to be related to this: https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/ . That post, somewhat ironically, mentions Query Monitor as a tool to troubleshoot this :).

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Hehe yes it’s a constant battle to get Query Monitor itself to behave because it has to hook into so many of the internals of WordPress.

    • Is there a stack trace of that Doing It Wrong message?
    • Does the message remain when all your plugins are deactivated and you’re using a default theme?

    Hmm, this appears to be a little more complicated than I originally thought. I set up a brand new site, just WP 6.7 and Query Monitor. I set it to a non-default language and enabled WP_DEBUG, but got no errors.

    The dev site I initially noticed this happening on had another plugin (Gravity Perks) active that caused the same error message. When I disabled that plugin, it also stopped the Query Monitor error being logged. So it could be that the error is somehow triggered by another plugin loading translations too early?

    When the error does occur, I’m not getting a stack trace.

    Thread Starter Jacob N. Breetvelt

    (@opajaap)

    I noticed this: When a plugin uses __() prior to the init hook, it triggers an error that is captured by query monitor. Then: query montor tries to display the error – likely also prior to init – and uses __() itsself, causing the same type of error. Fortunately this errror reporting seems to be not recursive(!)

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the feedback both of you, I’ve managed to reproduce the problem. It is indeed triggered when another plugin attempts to load a translation too early. I’ll work on a fix.

    Thread Starter Jacob N. Breetvelt

    (@opajaap)

    Sounds great. Once again thanx for this exellent plugin that no developer should not install. Helped me to fix very many issues quickly!

    I wonder if this fix is still in development? I’d like to track down the cause, as I too am seeing it in my debug logs, but for just about all plugins… Running all the latest plugins / wordpress

    [02-Dec-2024 07:16:01 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>query-monitor</code> 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 <code>init</code> action or later. Please see <a href=”https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/”>Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6114

    [02-Dec-2024 07:16:01 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>advanced-coupons-for-woocommerce</code> 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 <code>init</code> action or later. Please see <a href=”https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/”>Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6114

    [02-Dec-2024 07:16:01 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>woocommerce</code> 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 <code>init</code> action or later. Please see <a href=”https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/”>Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6114

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This is a side effect of other plugins on your site that are triggering this error. Query Monitor itself only triggers the error when another plugin does.

    I will of course get this fixed, but the underlying problem is that other plugins on your site are loading translations too early, which in turn causes Query Monitor to do the same when it attempts to log the error. The error message itself was newly introduced in WordPress 6.7. This is affecting a large number of plugins.

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

The topic ‘Not compatible with 6.7’ is closed to new replies.