• Resolved andy_moyle

    (@andy_moyle)


    Getting a warning

    [13-Nov-2024 09:29:28 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the bbp-core 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 6114

    Just to warn you it’s not just enqueuing translation text-domain to early, it’s using translation strings too early.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter andy_moyle

    (@andy_moyle)

    Using Query Monitor…

    Point 11 shows a __() called to early.

    1. wp-includes/functions.php:6114
    2. wp_trigger_error()
      wp-includes/functions.php:6054
    3. _load_textdomain_just_in_time()
      wp-includes/l10n.php:1385
    4. get_translations_for_domain()
      wp-includes/l10n.php:194
    5. translate()
      wp-includes/l10n.php:306
    6. __()
      wp-content/plugins/query-monitor/collectors/doing_it_wrong.php:134
    7. do_action('doing_it_wrong_run')
      wp-includes/functions.php:6003
    8. _load_textdomain_just_in_time()
      wp-includes/l10n.php:1385
    9. get_translations_for_domain()
      wp-includes/l10n.php:194
    10. translate()
      wp-includes/l10n.php:306
    11. __()
      wp-content/plugins/bbp-core/includes/admin/settings/options/settings.php:11
    12. BBP_Core->core_includes()
      wp-content/plugins/bbp-core/bbp-core.php:75
    13. BBP_Core->__construct()
      wp-content/plugins/bbp-core/bbp-core.php:146
    14. BBP_Core::init()
      wp-content/plugins/bbp-core/bbp-core.php:247
    15. bbp_core()
      wp-content/plugins/bbp-core/bbp-core.php:250
    Thread Starter andy_moyle

    (@andy_moyle)

    To add…

    Browsing to #/wp-admin/admin.php?page=bbp-core shows 3930 database queries in Query monitor. That’s seems a bit bonkers!

    Plugin Support SpiderThemes Support

    (@spiderthemes247)

    Thank you for reaching out and for the detailed report. We have noted the issue, and we’re prioritizing a fix to address this warning as soon as possible.

    We appreciate your patience and understanding. If you notice anything else or need further assistance, feel free to let us know.

    Plugin Support SpiderThemes Support

    (@spiderthemes247)

    @andy_moyle ,
    The issue regarding the early loading of the text domain has been fixed. You will receive this fix in the upcoming version. We appreciate your patience.

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