Upgrade JQuery/Jquery UI in OJS 3.3

Hi,

We have a site using OJS 3.3 and recently we had a security test of the site and one of the issue found was the outdated JQuery and JQuery UI which posed vulnerabilities to the site.

We had a look at JQuery and JQuery UI upgrade page but unfortunately there is no proper guide to upgrade it for OJS platform. We’re a bit concern that the upgrade will break our site as we did some customization on it.

Appreciate if anyone can provide guidance on how can we approach this matter.

Thanks

Dear @AnasZ

You can manually make some modifications to the theme code that you are using.
For example when using the default theme find the line like this :
image

and replace with :
For Jquery:
https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js
And Jquery UI :
https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js

Make sure you enable_cdn in config.inc.php to on :
enable_cdn = On

Regards
Hendra
OJT Team

2 Likes

Hi

Thanks for the response.

Just want to clarify, that all pages in that theme need to be changed or just the themesname.inc.php? Currently we’re using Bootstrap as based theme and we found that it’s using local copy of jquery UI and no cdn being configured.

Thank you

Hello @AnasZ

Just modify this file : themesname .inc.php, this will reflect all the journal that uses same theme.
Then don’t forget to clear the OJS cache

Regards
Hendra

1 Like

Alright… many thanks sir navotera.

Regard…

I would like to ask how to update if I don’t use CDN? Thank you