Function _load_textdomain_just_in_time was called incorrectly
-
Since WordPress 6.7. the following issue occurs:
(non-english WordPress)Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the foogallery 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.) in /home/creiter/Code/Private/mandragorawebsite/wordpress/wp-includes/functions.php on line 6114
I noticed that many other plugins have the same problem. For me the notifications crashing the structure of the page. With many follow-up issues.
My workaround was to fix this like that:
// class-foogallery-thumb-manager.php
class FooGallery_Thumb_Manager {
function __construct() {
// add_action( 'plugins_loaded', array( $this, 'init_active_engine' ) );
// Workaround
add_action( 'init', array( $this, 'init_active_engine' ) );
}
- You must be logged in to reply to this topic.