Home Forums WoodMart support forum Critical JavaScript Error: ‘jQuery is not defined’ causing conflicts

Critical JavaScript Error: ‘jQuery is not defined’ causing conflicts

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #683437

    mediok.com.ua
    Participant

    Hello Woodmart Support Team,

    We are experiencing a ReferenceError: jQuery is not defined on our site. The browser console indicates that the error occurs when our custom JavaScript block is executed.

    However, our custom script is written according to WordPress standards, using the recommended jQuery(document).ready(function($) { ... }); no-conflict wrapper to prevent such issues.

    The strange thing is, this conflict only happens when the Woodmart theme is active. When we switch to a default WordPress theme like “Twenty Twenty-Four”, the error completely disappears, and our script works perfectly.

    This leads us to believe there might be a specific script loading order in Woodmart that is causing this conflict. Could you please provide some guidance or insight on why this might be happening and how to resolve it? We have already tried disabling plugins and clearing all caches.

    Thank you for your time and assistance.

    #683670

    Hung Pham
    Keymaster

    Hi mediok.com.ua,

    Thanks for reaching to us and appreciate your patience.

    To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.

    Regards,
    Hung PD

    #683763

    mediok.com.ua
    Participant

    Hello Hung PD,

    Thank you for your reply.
    I have just generated a temporary login link for you. You can find it in the private content area below.

    Thank you for your help.

    #684072

    Hung Pham
    Keymaster

    Hi mediok.com.ua,

    Thanks for details and appreciate your patience.

    Please confirm me back if you resolved the issue https://ibb.co/zV3Xw69m

    Regards,
    Hung PD

    #684268

    mediok.com.ua
    Participant

    Hello Hung PD,

    Unfortunately, the issue is not resolved. After placing the final tracking scripts, the original error has returned: Uncaught ReferenceError: jQuery is not defined.

    The console shows the error occurs in an inline script right after your theme’s helpers.min.js file is loaded. This confirms that the jQuery library is still not being loaded correctly by the theme before other scripts require it.

    Could you please investigate this again? The site is still breaking and preventing critical tracking from functioning.

    Thank you.

    #684280

    Hung Pham
    Keymaster

    Hi mediok.com.ua,

    Could you please record a short video of the problem so we can better understand what is wrong?

    Thanks for your patience.

    Regards,
    Hung PD

    #684517

    mediok.com.ua
    Participant

    Hi Hung PD,

    Thank you for looking into it. I have discovered new, critical information.

    The jQuery is not defined error only appears for logged-out visitors. When I am logged in as an admin, the error is gone, but for any regular user, the site is still broken.

    I have recorded a new video to prove this. You can see me logged in with a clean console, and then I log out, and the error immediately returns.

    This means the fix is not working correctly for the public-facing site, and my tracking scripts are still failing for all my customers. Please investigate this logged-out vs. logged-in issue.

    Regards,

    Attachments:
    You must be logged in to view attached files.
Viewing 7 posts - 1 through 7 (of 7 total)