Support » Plugin: Boxzilla » JQuery error causing issues, appears when WooCommerce is activated

  • Resolved orangjul

    (@orangjul)


    I just upgraded Boxzilla to the latest version, and now am experiencing some issues due to a jquery error:

    Uncaught TypeError: jQuery is not a function
        at HTMLDocument.<anonymous> (woocommerce.min.js?ver=3.1.1:1)
        at i (jquery.js?ver=1.12.4:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
        at Function.ready (jquery.js?ver=1.12.4:2)
        at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    I’m not real familiar with jquery so I don’t really know what this means.

    I’m using the Divi theme with WooCommerce (both on the latest versions). When I deactivate all plugins except for WooCommerce and Boxzilla I get the error. The error goes away when I deactivate either Boxzilla, or WooCommerce, so it seems to be a conflict between the two.

    When both are activated, my homepage slider stops working, and all my photos that I added into the content disappear (they were all added with the Divi visual builder). When I deactivate one or the other, the slider and photos display as they should.

    I am not sure what to do as I cannot remove WooCommerce or change to another theme. Can you please advise?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    Seems to be either a compatibility issue between Boxzilla and Woocommerce, but that would be strange as we would have expected more reports by now if that was really the case.

    Otherwise it is most likely that Jquery is not properly loaded via WordPress “enqueue script” feature and then not loaded in the right order.

    Do you have a paid theme? Maybe you can ask your theme developer for support first?

    Also, the error seems to be coming from woocommerce.min.js so they might also be able to help you with this better than we can.

    Don’t hesitate to get back to us again with more information from either of those parties. In that case, don’t forget to post a link to your website where we can test the issue. Thank you!

    Plugin Author Danny van Kooten

    (@dvankooten)

    To add to what Lap said: do you have a link to your site? Boxzilla is not using (nor loading) jQuery so this error should not be coming from Boxzilla, but I’d love to take a quick look for you.

    Thread Starter orangjul

    (@orangjul)

    Thank you very much for your quick responses, and sorry for my slow response.

    Just a little more info, I did try temporarily switching from Divi to the twenty sixteen theme, and I still get the same jQuery error on certain pages. So I don’t think it’s a theme issue but I’m not sure.

    Divi did release an update since I originally posted about the issue, so I updated the theme version. The homepage slider (built via the Divi theme, not a plugin) works fine now. However, some of my images are not showing up on certain pages where they were added using the Divi visual builder.

    For example:
    https://www.consciousrootsayurveda.com/about/
    https://www.consciousrootsayurveda.com/ayurveda-101/
    https://www.consciousrootsayurveda.com/press/

    You can see that each of these pages has the jQuery error I mentioned above.

    Thanks for taking a look.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi,

    I just took a look but that error is coming from the WooCommerce plugin and not from Boxzilla. If you disable Boxzilla, the error will still be there. So sorry but we can’t help you with that.

    Thread Starter orangjul

    (@orangjul)

    Thanks for looking. Actually, I just deactivated Boxzilla and the photos on those pages now appear. Do you mind taking a quick peak again please?

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Orangjul,

    What version of Boxzilla are you on? Could you go to the page in your WP Admin where you edit your Boxzilla box and then switch to “HTML” mode and copy-paste the HTML content of your box here in this thread?

    Thanks in advance!

    Plugin Contributor Lap

    (@lapzor)

    We figured out it is not Boxzilla itself causing jquery errors, but a plugin/shortcode/javascript code you use inside the Boxzilla box as content.

    In that case the problem is solved when Boxzilla is turned off as from that moment the code that you used inside the box is not loaded anymore.

    You can test this by putting the Boxzilla content into a normal page, without the box, and then load that page to see if the errors are there. Often it is something in the Box trying to load jQuery in a non WordPress friendly way while jQuery was already loaded by your theme on another plugin.

    Or the other way around, you can make a Boxzilla box with just some text in it and see if that works as it should, without any errors.

    Hope that helps!

    Kind regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘JQuery error causing issues, appears when WooCommerce is activated’ is closed to new replies.