[Resolved] Javascript error that jQuery is not defined

Home Forums Support [Resolved] Javascript error that jQuery is not defined

Home Forums Support Javascript error that jQuery is not defined

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

    Hello guys,

    I’m having a problem with jquery which I found out about because my Site Reviews plugin stopped working correctly. I wrote to the developer and he said that “there is a javascript error that jQuery is not defined. Site Reviews does not use jQuery, so this is coming from something else.” So I have been looking on Google and found this page:

    https://kinsta.com/blog/jquery-is-not-defined/

    I am on the last suggestion “Method 5: Insert the jQuery Library Manually”. Unfortunately I cannot make sense of this, but I gather a change must be made to header.php in the theme which in my case is generatepress. Please could you assist? Many thanks.

    Michael.

    #2312375
    David
    Staff
    Customer Support

    Hi there,

    this either means that jQuery is NOT being loaded on your site. Or theres a script that has jQuery dependencies that is being executer before jQuery has been loaded.

    Do you have a link to a page where this error occurs ?

    #2313119
    Michael

    Thank you very much for your time David. The issue happens with the site reviews plugin on our shop page here:

    https://reclaimdesign.org/home-decor-shop/

    If you scroll to the reviews section and click 1 2 3 Next the next reviews page never shows it just displays a spinning animation and doesn’t get past this.

    Screenshot

    https://www.dropbox.com/s/uoeph2ayfr400is/next-reviews.jpg?dl=0

    #2313192
    Michael

    This is what the console generated when I clicked the next button:

    his page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. home-decor-shop
    INS: content-ads.js loaded: https://reclaimdesign.org/home-decor-shop content-scripts.js:1:107966
    TSS: content-tss.js loaded: https://reclaimdesign.org/home-decor-shop content-scripts.js:1:117421
    INS: content-blocked-items.js loaded: https://reclaimdesign.org/home-decor-shop content-scripts.js:1:137459
    CONTENT_SHELL: Page allowed. Skipping shell injection blocks content-scripts.js:1:137121
    GET TAB ID RESPONSE:
    Object { tabId: 10 }
    content-scripts.js:1:118957
    TSS: excluded result:
    Object { excluded: true }
    content-scripts.js:1:128142
    TSS: Excluding content tss (trigger: send-mesage) content-scripts.js:1:119494
    unreachable code after return statement
    script.js:1368
    unreachable code after return statement
    script.js:1644:1
    Uncaught ReferenceError: jQuery is not defined
    <anonymous> https://reclaimdesign.org/home-decor-shop:26
    home-decor-shop:26:5
    INS: content-ads.js loaded: https://reclaimdesign.org/home-decor-shop content-scripts.js:1:107966
    TSS: content-tss.js loaded: https://reclaimdesign.org/home-decor-shop content-scripts.js:1:117421
    INS: content-blocked-items.js loaded: https://reclaimdesign.org/home-decor-shop content-scripts.js:1:137459
    CONTENT_SHELL: Page allowed. Skipping shell injection blocks content-scripts.js:1:137121
    GET TAB ID RESPONSE:
    Object { tabId: 10 }
    content-scripts.js:1:118957
    TSS: excluded result:
    Object { excluded: true }
    content-scripts.js:1:128142
    TSS: Excluding content tss (trigger: send-mesage) content-scripts.js:1:119494
    unreachable code after return statement
    script.js:1368
    unreachable code after return statement
    script.js:1644:1
    To enable development logs please call ‘window.localStorage.setItem(“show_ec_logs”,”true”)’ in development console ru.cdev.xnext.legacyfrontendstub.LegacyFrontendStub-0.js:5618:92
    This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html for further details and to join the discussion on related tools and features! home-decor-shop
    Some cookies are misusing the recommended “SameSite“ attribute 11
    Ignoring ‘preventDefault()’ call on event of type ‘DOMMouseScroll’ from a listener registered as ‘passive’. 715A118F306435A2EB5D97EE4BD8F716.cache.js:2828:75
    Use of Mutation Events is deprecated. Use MutationObserver instead. script.js:60:17
    The resource at “https://reclaimdesign.org/wp-content/themes/generatepress_child/fonts/open-sans-v17-latin-regular.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. home-decor-shop
    The resource at “https://reclaimdesign.org/wp-content/themes/generatepress_child/fonts/open-sans-v17-latin-italic.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. home-decor-shop
    The resource at “https://reclaimdesign.org/wp-content/themes/generatepress_child/fonts/open-sans-v17-latin-700.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. home-decor-shop
    The resource at “https://reclaimdesign.org/wp-content/themes/generatepress_child/fonts/open-sans-v17-latin-700italic.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. home-decor-shop
    The resource at “https://reclaimdesign.org/wp-content/themes/generatepress_child/fonts/carrois-gothic-v10-latin-regular.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. home-decor-shop
    The resource at “https://reclaimdesign.org/wp-content/themes/generatepress_child/fonts/icomoon.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. home-decor-shop

    #2313274
    David
    Staff
    Customer Support

    Ok, see here:

    2022-08-15_12-55-22

    Looks like ECWID is trying to use jQuery before the script has loaded.
    It may be because ECWID scripts are being preloaded.
    Check with ECWID support as fixing that issue will mean the browser can resume executing scripts that fire afterwards.

    #2313281
    Michael

    Thank you very much David. I will message Ecwid now

    #2313312
    David
    Staff
    Customer Support
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.