• Resolved siyaz1

    (@siyaz1)


    Hello everyone, I’ve encountered this problem—has anyone managed to solve it? If so, please let me know how.

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seodomain was triggered too early. This is usually an indicator of some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Additional information can be found on the Debugging inWordPress page. (This message was added in version 6.7.0.) in /var/www/vhosts/terraroof.kz/metrotile.kz/wp-includes/functions.php on line 6114

    And this error appears for plugins such as:

    • cf7-telegram
    • cyr2lat
    • WooCommerce
    • yml-for-yandex-market
    • translatepress-multilingual
    • wordpress-seo

    So, I’m receiving notices indicating that the _load_textdomain_just_in_time function is being called incorrectly, and the loading of translations for some domains (plugins) is occurring too early. The error messages suggest loading translations on the init action or later.

    Steps I’ve taken:

    1. Discovered that the?load_theme_textdomain?function is called inside?metrotile_setup(), which is hooked to the?after_setup_theme?action. Realized that?after_setup_theme?is called before?init, which could be causing the problem.
    2. Moved the call to?load_theme_textdomain?into a new function?metrotile_load_textdomain(), hooked to the?init
      metrotile_load_textdomain() { load_theme_textdomain('metrotile', get_template_directory() . '/languages'); } add_action('init', 'metrotile_load_textdomain');
    3. Updated all plugins.

    Despite these changes, the notices continue to appear.

    Please help.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.