• Resolved Malae

    (@malae)


    Hello John,


    Recent versions of WordPress have cause many plugins to generate warnings in the Doing it Wrong category. This plugin has been very useful in identifying the culprits and passing information to plugin authors to correct the issues. I was able to get most fixed and correct a few myself. I am left with a warning occurring on several sites that do not identify a plugin or theme, but WordPress core. I would like to know why they occuring and if possible how to fix them or prevent their display. Following are the details:

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the scf 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. (This message was added in version 6.7.0.)

    1. _load_textdomain_just_in_time()
      wp-includes/l10n.php:1389
    2. get_translations_for_domain()
      wp-includes/l10n.php:1419
    3. translate()
      wp-includes/l10n.php:195
    4. esc_html__()
      wp-includes/l10n.php:340

    or

    1. load_textdomain_just_in_time()
      wp-includes/l10n.php:1381
    2. get_translations_for_domain()
      wp-includes/l10n.php:1419
    3. translate()
      wp-includes/l10n.php:195
    4. __()
      wp-includes/l10n.php:307

    WordPress core Total: 1

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I’m glad QM has been helping you convert doing it wrongs to doing it rights 😊.

    From the error message the culprit appears to be a plugin or theme using the scf textdomain. If you can find out which one it is and let me know then I’ll take a look at why QM is mis-identifying this as WordPress core. The logic for deciding which component to place the blame on is tricky, especially when the stack trace includes functions called directly in a file (instead of through a function) or there are multiple plugins/themes present in the trace.

    Thread Starter Malae

    (@malae)

    Many thanks for your prompt reply. Relating the issues to somebody often triggers more thought on a subject and your reply encouraged me to dig deeper. In my desire to minimise the messages yesterday, I had not included a second message, which was different. it did not refer to scm, but to html-validation. Long ago when so many messages had appeared I had not paid enough attention to all of them. Now they stand out: scm is from the Simple Contact Form plugin and html-validation is from the HTML Validation plug-in. As we say, hiding in plain site! The appending of domain probably threw me at the time.

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

You must be logged in to reply to this topic.