_load_textdomain_just_in_time from PgCache_Plugin.php
-
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.12and the latest version of WordPress6.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.phpfor 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]
The topic ‘_load_textdomain_just_in_time from PgCache_Plugin.php’ is closed to new replies.