Is there a particular reason for old jQuery version? Safe to replace?

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
digitaltoast
Registered User
Posts: 105
Joined: Thu Oct 18, 2007 9:33 am

Is there a particular reason for old jQuery version? Safe to replace?

Post by digitaltoast »

While poking around, I notice that even the latest 3.2.2 download contains jQuery 1.11.9 from January 24, 2014.
The current version of jQuery is 3.3.

I'm happy to just go ahead and drop in the latest version, but is it likely to break anything?

Yes, I know the obvious answer is "why don't you just try it", but jQuery is used in so many places... I was just wondering if there was a good reason for the 4 year old version, or whether updating it had just slipped by (and if so, should I file a ticket as a reminder for next version?).

Thanks.
User avatar
Sajaki
Registered User
Posts: 1390
Joined: Mon Mar 02, 2009 1:41 pm
Location: Amsterdam
Contact:

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by Sajaki »

Interesting question, i just noticed it now too.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by david63 »

I might be wrong here but I think I read somewhere that some of the JQuery code that is in use with phpBB is incompatible with later versions and needs to be re worked. Also if phpBB does not need any of the new features in JQuery then there is little need to upgrade it - although that may not necessarily be true with some extensions.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by primehalo »

In the assests/javascript/core.js file they use $(window).load(phpbb.lazyLoadAvatars) and that .load() was removed from Jquery 3, but it was always just a shortcut for .on('load', fn) anyways so that one is easy to fix.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
Lon2
Registered User
Posts: 66
Joined: Fri Sep 25, 2015 5:37 pm

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by Lon2 »

Any new developments on updating the included [email protected] on 3.2.4 to something newer/safe?

From my Google Audit:
Includes front-end JavaScript libraries with known security vulnerabilities
1 vulnerability detected
Some third-party scripts may contain known security vulnerabilities that are easily identified and exploited by attackers. Learn more.
Library Version
Vulnerability Count
Highest Severity
[email protected]
Any help would be appreciated!
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by david63 »

I doubt that jQuery will be updated before phpBB 3.3 and it may even be replaced with another framework.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by 3Di »

Well, if for security reasons it should. The Devs will see that I guess.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by david63 »

If there is a known security issue then it should be posted in the bug tracker
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Is there a particular reason for old jQuery version? Safe to replace?

Post by 3Di »

Agreed.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Post Reply

Return to “[3.2.x] Support Forum”