• Resolved rockschtar

    (@rockschtar)


    Ultimate Blocks Version: 3.2.9

    WordPress Version 6.8

    After upgrading to WordPress 6.8, I receive this error when running the site with WP_ENVIRONMENT_TYPE set to development:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ultimate-blocks 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 /app/web/wp/wp-includes/functions.php on line 6121

    Call Stack:
    0.0003 593528 1. {main}() /app/web/index.php:0
    0.0007 593896 2. require(‘/app/web/wp/wp-blog-header.php’) /app/web/index.php:5
    0.0007 594536 3. require_once(‘/app/web/wp/wp-load.php’) /app/web/wp/wp-blog-header.php:13
    0.0010 594952 4. require_once(‘/app/web/wp-config.php’) /app/web/wp/wp-load.php:55
    0.0202 862328 5. require_once(‘/app/web/wp/wp-settings.php’) /app/web/wp-config.php:10
    0.1166 3945440 6. do_action($hook_name = ‘plugins_loaded’) /app/web/wp/wp-settings.php:578
    0.1166 3945656 7. WP_Hook->do_action($args = [0 => ”]) /app/web/wp/wp-includes/plugin.php:517
    0.1166 3945656 8. WP_Hook->apply_filters($value = ”, $args = [0 => ”]) /app/web/wp/wp-includes/class-wp-hook.php:348
    0.1175 4027960 9. run_ultimate_blocks(”) /app/web/wp/wp-includes/class-wp-hook.php:324
    0.1175 4028016 10. Ultimate_Blocks->construct() /app/web/app/plugins/ultimate-blocks/ultimate-blocks.php:99 0.1175 4030584 11. Ultimate_Blocks->define_admin_hooks() /app/web/app/plugins/ultimate-blocks/includes/class-ultimate-blocks.php:63 0.1188 4046336 12. Ultimate_Blocks\includes\pro_manager\Pro_Manager::init($const_args = ???, $class_name = ???) /app/web/app/plugins/ultimate-blocks/includes/class-ultimate-blocks.php:180 0.1188 4046448 13. Ultimate_Blocks\includes\pro_manager\Pro_Manager->init_process() /app/web/app/plugins/ultimate-blocks/includes/common/traits/Manager_Base_Trait.php:53 0.1188 4046448 14. Ultimate_Blocks\includes\pro_manager\Pro_Manager->prepare_priority_upsell_data() /app/web/app/plugins/ultimate-blocks/includes/pro_manager/Pro_Manager.php:68 0.1189 4046528 15. Ultimate_Blocks\includes\pro_manager\base\Pro_Extension_Upsell->get_upsell_data() /app/web/app/plugins/ultimate-blocks/includes/pro_manager/Pro_Manager.php:246 0.1190 4046744 16. Ultimate_Blocks\includes\managers\Ub_Fs_Handler::with_filesystem($callable = [0 => class Ultimate_Blocks\includes\pro_manager\extensions\Tabbed_Content_Extension { protected $block_id = ‘ub/tabbed-content-block’; protected $upsell_data = NULL }, 1 => ‘get_upsell_data_logic’]) /app/web/app/plugins/ultimate-blocks/includes/pro_manager/base/Pro_Extension_Upsell.php:70 0.1212 4047080 17. call_user_func:{/app/web/app/plugins/ultimate-blocks/includes/managers/Ub_Fs_Handler.php:72}($callback = [0 => class Ultimate_Blocks\includes\pro_manager\extensions\Tabbed_Content_Extension { protected $block_id = ‘ub/tabbed-content-block’; protected $upsell_data = NULL }, 1 => ‘get_upsell_data_logic’], $args = class WP_Filesystem_Direct { public $verbose = FALSE; public $cache = []; public $method = ‘direct’; public $errors = class WP_Error { public $errors = […]; public $error_data = […]; protected $additional_data = […] }; public $options = [] }) /app/web/app/plugins/ultimate-blocks/includes/managers/Ub_Fs_Handler.php:72 0.1213 4047280 18. Ultimate_Blocks\includes\pro_manager\base\Pro_Extension_Upsell->get_upsell_data_logic($ub_filesystem = class WP_Filesystem_Direct { public $verbose = FALSE; public $cache = []; public $method = ‘direct’; public $errors = class WP_Error { public $errors = […]; public $error_data = […]; protected $additional_data = […] }; public $options = [] }) /app/web/app/plugins/ultimate-blocks/includes/managers/Ub_Fs_Handler.php:72 0.1213 4047280 19. Ultimate_Blocks\includes\pro_manager\extensions\Tabbed_Content_Extension->add_upsell_data() /app/web/app/plugins/ultimate-blocks/includes/pro_manager/base/Pro_Extension_Upsell.php:81 0.1213 4047280 20. ($text = ‘Call to Action’, $domain = ‘ultimate-blocks’) /app/web/app/plugins/ultimate-blocks/includes/pro_manager/extensions/Tabbed_Content_Extension.php:33
    0.1213 4047280 21. translate($text = ‘Call to Action’, $domain = ‘ultimate-blocks’) /app/web/wp/wp-includes/l10n.php:307
    0.1213 4047280 22. get_translations_for_domain($domain = ‘ultimate-blocks’) /app/web/wp/wp-includes/l10n.php:195
    0.1213 4047280 23. _load_textdomain_just_in_time($domain = ‘ultimate-blocks’) /app/web/wp/wp-includes/l10n.php:1409
    0.1228 4048448 24. _doing_it_wrong($function_name = ‘_load_textdomain_just_in_time’, $message = ‘Translation loading for the ultimate-blocks 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.’, $version = ‘6.7.0’) /app/web/wp/wp-includes/l10n.php:1371
    0.1228 4049792 25. wp_trigger_error($function_name = ”, $message = ‘Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ultimate-blocks 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.’…, $error_level = ???) /app/web/wp/wp-includes/functions.php:6061
    0.1234 4050960 26. trigger_error($message = ‘Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ultimate-blocks 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.’…, $error_level = 1024) /app/web/wp/wp-includes/functions.php:6121

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter rockschtar

    (@rockschtar)

    Are there any updates on this issue? The error persists in Version 3.3.0 with WordPress 6.8.

    Plugin Contributor Farhan Shafi

    (@farhanshafi)

    We apologize for the delayed response. We do not see the issue you’ve described. We’ve tested multiple browsers, and it should be fixed in version 3.3.0.

    Hi,

    I have the same problem on my site (musicaflorea.cz), i.e. the error “The _load_textdomain_just_in_time function was called incorrectly. Loading the translation for the ultimate-blocks domain was started too early.” Please is there any solution?

    Hi,

    I have the same problem on my site (musicaflorea.cz), i.e. the error “The _load_textdomain_just_in_time function was called incorrectly. Loading the translation for the ultimate-blocks domain was started too early.” Please is there any solution?

    Plugin Contributor Farhan Shafi

    (@farhanshafi)

    We are not able to recreate this issue. Can you share full error stack like you shared at first?

    Thread Starter rockschtar

    (@rockschtar)

    Hello Farhan,

    I tested it with a fresh WordPress 6.8 installation, using Ultimate Block 3.3.0 as the only installed plugin. When setting WP_DEBUG to “true” in wp-config.php, the following error appears on all pages:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ultimate-blocks 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 /app/wp-includes/functions.php on line 6121

    I reviewed your plugin code, and it’s quite obvious what happens. The entire plugin loads via the “plugins_loaded” hook, which also loads the text domain. This is incorrect since WordPress 6.7. Translations should be loaded no earlier than the “init” hook action.

    I have the exact same problem with WP 6.8 and Ultimate Blocks Version 3.3.0. With WP_DEBUG set to true in my development setup i’m getting this error on every frontend page and every page in wp-admin:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ultimate-blocks 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 /wp-includes/functions.php on line 6121

    Same problem here

    Plugin Contributor Farhan Shafi

    (@farhanshafi)

    Hey guys, we apologize for the delay, we have found that issue and fixed it, this will be available in the upcoming release.

    kind regards.

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

The topic ‘Error: _load_textdomain_just_in_time was called incorrectly’ is closed to new replies.