cancel
Showing results for 
Search instead for 
Did you mean: 

Core jQuery plugins stopped working after 2.3.x > 2.4.5 upgrade

SOLVED

Core jQuery plugins stopped working after 2.3.x > 2.4.5 upgrade

Hi!

 

We recently upgraded a client's shop to 2.4.5 from 2.3 and after resolving all the backend issues with core upgrade and modules, we are facing a frontend problem.

 

The Mage core jQuery plugins don't seem to be working anymore, or at least "collapsible", "accordion" and "tabs". The .phtml views have not changed and contain the appropriate "data-mage-init" attributes with their configuration untouched. We even tried with the stock Luma templates in replacement, but no luck so far.

 

The behavior is that the "data-mage-init" attributes seem to be parsed as they are no longer present in the parsed DOM, but they don't have any effect. What's more troubling is that we even tried to manually load the plugin according to the docs (https://developer.adobe.com/commerce/frontend-core/javascript/jquery-widgets/collapsible/#initialize) but we don't get the desired output either. No errors show up in the console, and event doing a "console.log" in the template's "<script>" tags does nothing...

 

We are a bit at a loss with this and don't really know where to look. Does someone have any ideas regarding this issue?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Core jQuery plugins stopped working after 2.3.x > 2.4.5 upgrade

Thank you for your answer! Just as you were posting it, I also got a hint through the Magento Slack about this bug: https://github.com/magento/magento2/issues/35913

 

Turns out, this was it! The jquery cookie dependency was preventing other modules to be fully loaded which caused a lot of frontend issue. By applying the patch, everything seems back to normal!

View solution in original post

2 REPLIES 2

Re: Core jQuery plugins stopped working after 2.3.x > 2.4.5 upgrade

Check all your overrides inside your app/design/frontend/<Vendor>/<theme>
My issue solved after isolating Amasty_Storelocator

Re: Core jQuery plugins stopped working after 2.3.x > 2.4.5 upgrade

Thank you for your answer! Just as you were posting it, I also got a hint through the Magento Slack about this bug: https://github.com/magento/magento2/issues/35913

 

Turns out, this was it! The jquery cookie dependency was preventing other modules to be fully loaded which caused a lot of frontend issue. By applying the patch, everything seems back to normal!