-
Hi,
Since updating to WordPress 6.7.0, my debug.log file keeps filling up with PHP Notices related to Rank Math and the Instant Indexing plugin.
Message:
Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ‘rank-math’ or ‘fast-indexing-api’ domain was triggered too early.It seems the plugin is calling load_textdomain() before the init hook, which now triggers this warning in WordPress 6.7+.
To resolve this, please defer translation loading like this:
add_action( ‘init’, function() {
load_plugin_textdomain( ‘rank-math’, false, dirname( plugin_basename( __FILE__ ) ) . ‘/languages’ );
});This would comply with WP core standards and stop the debug log from growing unnecessarily.
I’m using Rank Math Pro + Instant Indexing with a valid JSON key, so I’d prefer not to disable it.
Thanks!
The ticket ‘PHP Notice: load_textdomain called too early (WP 6.7 compatibility issue)’ is closed to new replies.