Title: Doing it Wrong
Last modified: January 14, 2026

---

# Doing it Wrong

 *  Resolved [Malae](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/doing-it-wrong-5/)
 * 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](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/doing-it-wrong-5/#post-18785951)
 * 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](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/doing-it-wrong-5/#post-18786963)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdoing-it-wrong-5%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

## Tags

 * [wordpress core](https://wordpress.org/support/topic-tag/wordpress-core/)

 * 2 replies
 * 2 participants
 * Last reply from: [Malae](https://wordpress.org/support/users/malae/)
 * Last activity: [4 months, 3 weeks ago](https://wordpress.org/support/topic/doing-it-wrong-5/#post-18786963)
 * Status: resolved