JS Error: JQuery is not defined

#1002388
  • Resolved Steve
    Rank Math free

    Hi

    Getting an error reported to browser console about “JQuery is not defined” relating to RankMath schema code.

    Thanks,

    SW

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

    We apologize for the issue you are facing with the "JQuery is not defined" error in relation to Rank Math schema code. This error typically indicates that the jQuery library is not being loaded properly on your site, which can prevent Rank Math from functioning correctly.

    To troubleshoot this issue, we recommend the following steps:

    1. Check if jQuery is Loaded: Open your browser’s Developer Tools (you can do this by pressing Ctrl + Shift + J on Windows or Cmd + Option + J on Mac) and check the Console tab for any errors related to jQuery. If jQuery is not loaded, you may need to enqueue it in your theme or plugin.

    2. Conflict with Other Plugins or Themes: Sometimes, other plugins or themes can cause conflicts that prevent jQuery from loading. Try deactivating other plugins one by one to see if the issue resolves itself. If you find a conflicting plugin, you may want to reach out to their support for assistance.

    3. Check Your Theme: Ensure that your theme is properly enqueuing jQuery. You can do this by checking your theme’s functions.php file for the following line:

      wp_enqueue_script('jquery');

      If it’s missing, you can add it to ensure jQuery is loaded.

    4. Firewall or Security Plugins: If you are using a firewall or security plugin, it might be blocking jQuery from loading. Check the settings of these plugins to ensure they are not interfering with script loading.

    If you continue to experience issues, please reply to this ticket with your site URL so that we can assist you further. Thank you for raising this concern!

    Sources:
    Why Your SEO Title, Description & Focus Keyword Aren’t Being Saved » Rank Math
    Why Your SEO Title, Description & Focus Keyword Aren’t Being Saved » Rank Math

    Hello,

    This error usually occurs when your site can’t call a function from the jQuery JavaScript library. You can follow this guide to fix the issue on your website: https://www.hostinger.co.uk/tutorials/wordpress-jquery-is-not-defined

    However, we can see the error is coming from the Sitelinks Searchbox schema, which Google has officially removed due to its declining usage. So, if you want, you can also use the following filter code to remove this schema:

    add_filter( 'rank_math/json_ld/disable_search', '__return_true' );
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Also, it looks like you’re currently using the Rank Math PRO plugin on your websites, but the account you used to open this ticket is the Rank Math free version.

    Please search and forward a receipt from FastSpring.com so we can locate your account and verify it.

    Let us know how it goes. Looking forward to helping you.

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

The ticket ‘JS Error: JQuery is not defined’ is closed to new replies.