Function _load_textdomain_just_in_time was called incorrectly
-
Unfortunately since version 6.7.0 a lot of notices get thrown by the plugin when WP_DEBUG id enabled. In addition it floods the error log files.
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
ultimate-maps-by-supsysticdomain 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 theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /app/public/wp-includes/functions.php on line 6114The problem happens when calling
frameUms::_()->init();that initialises some internal tables ($this->_extractTables()) where the labels are set using translation functions__().
(for example see ultimate-maps-by-supsystic/classes/tables/marker.php)And after that a hook gets called (
dispatcherUms::doAction('afterModulesInit');) that callsoptionsUms->getAll()that again uses the translation functions__()that cause these notices.Translations should’t be used at that early time.
While this bug is not fixed, it is not possible for us to update to WP 6.7.0 and later because in our development and staging environment we need the debug mode enabled.
The topic ‘Function _load_textdomain_just_in_time was called incorrectly’ is closed to new replies.