• Resolved Fetch Designs

    (@fetchdesigns)


    The W3 Total Cache plugin has been throwing the following in my logs every single page load for a long while now. It’s still occurring in the latest version of W3TC 2.8.12 and the latest version of WordPress 6.8.2.

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the w3-total-cache 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. (This message was added in version 6.7.0.)

    I tracked this to two translations added too early in wp-content/plugins/w3-total-cache/PgCache_Plugin.php for the text '[W3TC] Page Cache file GC (every %d seconds)' and '[W3TC] Page Cache prime (every %d seconds)'. the errors when away when I removed the __() wrapping these. Can you please advise when this can be corrected?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @fetchdesigns

    Thank you for reachin out and I am happy to help!

    Let me double-check this and try to replicate, and I’ll get back to you with more information on this.
    Just to clarify, this happens when you are using a language other than English in your dashboard?


    Thanks!

    Hello @vmarko!

    I confirm, I encountered this problem with calling the _load_textdomain_just_in_time function myself. Yes, it occurs when the language selected is not English (in my case, it is Russian). Please fix this problem in the next update, otherwise this message is very crowded debug.log.

    There is also another problem with the is_feed function, it also says that the function is called incorrectly: Conditional tags do not work until the request is parsed. Until that moment, they always return false. Additional information can be found on the page «Debugging in WordPress». (This message was added in version 3.1.0.) in /var/www/mysite/data/www/mysite.ru/wp-includes/functions.php on line 6121

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

The topic ‘_load_textdomain_just_in_time from PgCache_Plugin.php’ is closed to new replies.