Jump to content

Upgrade Jquery on 1.6 due to vulnerabilities


cedib

Recommended Posts

Hi,

Has anyone upgraded their Jquery in Prestashop 1.6.1.24? It's on v.1.11.0 and according to Google Lighthouse audit, it has some vulnerabilities.

Is it safe to upgrade to Jquery v.1.12.4, if not going to v.2 or 3?

Thanks

Link to comment
Share on other sites

  • 5 years later...
Posted (edited)

How to Upgrade Safely

  • Backup Everything before changes.
  • Replace jQuery in header.tpl or the theme’s equivalent file

https://app.screencast.com/Ekl3tUziesjTM 

Ensure that no modules are explicitly loading their own older version.

Test:

  • All front office pages (cart, product, search, checkout)
  • Back office (module install/config, product edit, etc.)
  • Use your browser's console to monitor deprecated jQuery method warnings.

If you want to future-proof or plan to upgrade to PrestaShop 1.7/8 eventually, consider testing with jQuery 3.x and using the jQuery Migrate plugin to help debug issues. But for 1.6.1.24, v1.12.4 is the safest max version to go without large-scale rewrites.

 

Edited by El Patron (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...