Query Monitor “Doing It Wrong” Warning After WordPress 6.7 Update

#920337
  • Resolved Valerie Burns
    Rank Math free

    After updating WordPress to version 6.7, I’ve noticed a warning in Query Monitor under the “Doing It Wrong” section related to Rank Math SEO. We also had about a 20 pt drop in our performance scores around the same time. Below are the details:

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math 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.)
    _load_textdomain_just_in_time()
    get_translations_for_domain()
    translate()
    esc_html__()
    RankMath\Module\Manager->setup_core()
    apply_filters_ref_array(‘rank_math/modules’)
    RankMath\Module\Manager->do_filter()
    RankMath\Module\Manager->setup_modules()
    do_action(‘plugins_loaded’)
    Plugin: seo-by-rank-math

    This issue seems to have coincided with the recent WordPress core update, and I’ve confirmed that it persists across multiple environments.

    Questions:

    Is this warning known to your team, and is there a fix or an update planned to address it?
    Can you confirm whether this warning impacts performance, functionality, or compatibility with WordPress 6.7+?
    Is there a temporary workaround we can apply while waiting for a permanent fix?
    Thank you for your assistance! Please let me know if additional information is needed.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Our development team is already aware of the issue and already released a fix in our beta version:
    https://rankmath.com/changelog/beta/

    We don’t have the estimated time for when it will be added to our latest update, but it will be rolled out soon to fix the error you shared.

    Meanwhile, you can disable the notice by setting the WP_DEBUG_DISPLAY and WP_DEBUG_LOG constants to false in your wp-config.php file.

    Alternatively, you can add the following filter to rank-math.php file to fix these warnings/notices:

    add_filter( 'doing_it_wrong_trigger_error', '__return_false' );
    

    Here is how to create the rank-math.php file: https://rankmath.com/kb/wordpress-hooks-actions-filters/#rank-math-php-file

    We really appreciate your kind patience regarding this matter.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Query Monitor “Doing It Wrong” Warning After WordPress 6.7 Update’ is closed to new replies.