Issue with _load_textdomain_just_in_time Function in Rank Math Pro

#913984
  • Resolved Nelson Tarache
    Rank Math free

    Hi Rank Math Support Team,

    I hope you’re doing well. I want to report an issue I’m experiencing with the Rank Math Pro plugin on my website: suntuoqueretaro.com.

    After activating the plugin, I encountered the following error message:
    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math-pro 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 /home/u682361807/domains/suntuoqueretaro.com/public_html/wp-includes/functions.php on line 6114

    Environment details:
    • Domain: suntuoqueretaro.com

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

    The error you are encountering is due to a change in WordPress version 6.7 regarding how translations are loaded. You can learn more about these changes here. To resolve this issue, you can disable the error by adding the following filter to your website:

    add_filter('doing_it_wrong_trigger_error', '__return_false');
    

    This should address the problem. Additionally, you may want to set the WP_DEBUG_DISPLAY or WP_DEBUG_LOG constants to false in your wp-config.php file.

    You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Dear Support Team,

    I am currently experiencing multiple issues on my WordPress site:
    1. When attempting to create new pages or posts, the page opens but remains blank.
    2. The Analytics section also displays a blank page.
    3. The SEO assistant and scoring features are no longer visible in both the Gutenberg editor and WPBakery.

    Could you please let me know if this problem is related to a misconfiguration or if there is an update or fix available to address these issues?

    If you require additional details, such as site configuration or plugin versions, please do not hesitate to ask. I am happy to provide any information needed to resolve this.

    Thank you for your attention and support.

    I am currently experiencing multiple issues on my WordPress site, which is using the Salient theme:
    If you require additional details, such as my site configuration, plugin versions, or theme setup, please do not hesitate to ask. I am happy to provide any information needed to resolve this.

    Thank you for your attention and support.

    Hello,

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Here is a video you can follow as well:
    https://www.youtube.com/watch?v=FcIWRhcUP2c

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    If the issue persists, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
    https://wordpress.org/plugins/wp-security-audit-log/

    Please do take a complete backup of your website before sharing the information with us.

    We really look forward to helping you.

    100% Correct Solution by Ozairwebs.com

    2. Find the Problematic Code
    Open the rank-math.php file in your preferred text editor.
    Use the search function to locate this line 314 of rank-math.php file

    add_action( 'plugins_loaded', [ $this, 'localization_setup' ], 9 );

    3. Modify the Hook

    Replace the plugins_loaded hook with the init hook to delay translation loading until the proper stage:

    add_action( 'init', [ $this, 'localization_setup' ] );

    This change ensures that translations are loaded after WordPress is fully initialized, resolving the error.

    Hello @ozairwebs,

    Thank you so much for sharing the solution you shared.

    Our development team already have released a beta version to address this issue without the need to add any action or filter code.


    @nelsontarache
    ,

    If the issue persists on your end, you may try enabling the beta version to fix it: https://rankmath.com/kb/version-control/#beta-updates

    If you don’t prefer the beta version, you can wait for the final release to fix the said issue.

    Hope that helps.

    Thank You…

    The solution provided will completely eliminate the error in the debug.log file. This issue may occur because the load time priority might exceed that of the WordPress core files.

    Hello @ozairwebs,

    Thank you for your insight. We’re glad the solution worked for you!

    As mentioned, our team is actively working on a final fix, and the beta version should resolve the issue without needing any manual code changes. If you have any further concerns or need assistance, feel free to reach out.

    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 8 replies - 1 through 8 (of 8 total)

The ticket ‘Issue with _load_textdomain_just_in_time Function in Rank Math Pro’ is closed to new replies.