I've encountered an issue where Mailman3 is looking for an older jquery package after updating HyperKitty to 1.3.5.
I found the error below via Firefox developer tools.
"Loading failed for the <script> with source “https://mailman3.caltech.edu/static/hyperkitty/libs/jquery/jquery-1.10.1.min.js”
Sure enough, I do not have that script.
ls -l static/hyperkitty/libs/jquery/ total 692 -rw-r--r-- 1 gunicorn root 288580 Oct 19 14:55 jquery-3.6.0.js -rw-r--r-- 1 gunicorn root 89501 Oct 19 14:55 jquery-3.6.0.min.js -rw-r--r-- 1 gunicorn root 137972 Oct 19 14:55 jquery-3.6.0.min.map -rw-r--r-- 1 gunicorn root 117370 Oct 19 14:55 jquery-ui-1.10.3.custom.js -rw-r--r-- 1 gunicorn root 58173 Oct 19 14:55 jquery-ui-1.10.3.custom.min.js -rw-r--r-- 1 gunicorn root 68 Oct 19 14:55 jquery-ui-selection.txt drwxr-xr-x 1 gunicorn root 4096 Oct 19 14:55 smoothness
Any ideas?
Thanks again for all your help.
-- Dan Caltech
dancab@caltech.edu writes:
"Loading failed for the <script> with source “https://mailman3.caltech.edu/static/hyperkitty/libs/jquery/jquery-1.10.1.min.js”
Sure enough, I do not have that script.
In fairly freshly updated sources, I have references to one or the other of
-rw-r--r-- 1 gunicorn root 117370 Oct 19 14:55 jquery-ui-1.10.3.custom.js -rw-r--r-- 1 gunicorn root 58173 Oct 19 14:55 jquery-ui-1.10.3.custom.min.js
in
hyperkitty/hyperkitty/static/hyperkitty/libs/popper/popper.min.js.map hyperkitty/hyperkitty/static/hyperkitty/libs/bootstrap/javascripts/bootstrap.bunudle.min.js.map hyperkitty/hyperkitty/static/hyperkitty/libs/jquery/jquery-ui-1.10.3.custom.min.js hyperkitty/hyperkitty/templates/hyperkitty/base.html
The last file also refers to
hyperkitty/libs/jquery/smoothness/jquery-ui-1.10.3.custom.min.css
My guess is all the files you listed are from a recent installation or upgrade, but somehow base.html didn't get upgraded. Based on the principle "always blame the user" ;-), I'd start by checking if our version is shadowed by your local version? Anyway, I bet the version number is wrong in base.html and if you fix that everything else will fall in line. If not, check if popper and boostrap are either older versions or perhaps shadowed by older versions somewhere.
A word to the wise: grep(1)ing the .min.js.map files is not advised. They're huge and all one line it seems. Better to use an editor's search function.
Thank you! Yes, it was my fault. I have some customization in base.html.
I'll need to track those changes across updates.
Thank you!
Dan Caballero Systems Administrator Academic Computing Solutions IMSS - Caltech https://imss.caltech.edu
From: Stephen J. Turnbull <stephenjturnbull@gmail.com> Sent: Tuesday, October 19, 2021 8:02 PM To: Caballero, Danny (Dan) <dancab@caltech.edu>; mailman-users@mailman3.org <mailman-users@mailman3.org> Subject: [MM3-users] Mailman3 upgrades
dancab@caltech.edu writes:
"Loading failed for the <script> with source “https://mailman3.caltech.edu/static/hyperkitty/libs/jquery/jquery-1.10.1.min.js”
Sure enough, I do not have that script.
In fairly freshly updated sources, I have references to one or the other of
-rw-r--r-- 1 gunicorn root 117370 Oct 19 14:55 jquery-ui-1.10.3.custom.js -rw-r--r-- 1 gunicorn root 58173 Oct 19 14:55 jquery-ui-1.10.3.custom.min.js
in
hyperkitty/hyperkitty/static/hyperkitty/libs/popper/popper.min.js.map hyperkitty/hyperkitty/static/hyperkitty/libs/bootstrap/javascripts/bootstrap.bunudle.min.js.map hyperkitty/hyperkitty/static/hyperkitty/libs/jquery/jquery-ui-1.10.3.custom.min.js hyperkitty/hyperkitty/templates/hyperkitty/base.html
The last file also refers to
hyperkitty/libs/jquery/smoothness/jquery-ui-1.10.3.custom.min.css
My guess is all the files you listed are from a recent installation or upgrade, but somehow base.html didn't get upgraded. Based on the principle "always blame the user" ;-), I'd start by checking if our version is shadowed by your local version? Anyway, I bet the version number is wrong in base.html and if you fix that everything else will fall in line. If not, check if popper and boostrap are either older versions or perhaps shadowed by older versions somewhere.
A word to the wise: grep(1)ing the .min.js.map files is not advised. They're huge and all one line it seems. Better to use an editor's search function.
Caballero, Danny (Dan) writes:
Thank you! Yes, it was my fault. I have some customization in base.html.
Mailman devs don't consider that "fault", that's just life with software. There must be an XKCD for this, right?
I'll need to track those changes across updates.
Yes.
There ought to be a way around this. Maybe if we put those "load" instructions in little snippets that you can "include" in base.html and other templates that people might customize, and then we update the snippets?
Steve
Thanks. I agree some kind of 'include' directive would be helpful so that customizations can be done without either getting clobbered by an update or inadvertently breaking the template as a result.
Dan Caballero Systems Administrator Academic Computing Solutions IMSS - Caltech https://imss.caltech.edu
From: Stephen J. Turnbull <stephenjturnbull@gmail.com> Sent: Thursday, October 21, 2021 6:46 AM To: Caballero, Danny (Dan) <dancab@caltech.edu> Cc: mailman-users@mailman3.org <mailman-users@mailman3.org> Subject: Re: [MM3-users] Mailman3 upgrades
Caballero, Danny (Dan) writes:
Thank you! Yes, it was my fault. I have some customization in base.html.
Mailman devs don't consider that "fault", that's just life with software. There must be an XKCD for this, right?
I'll need to track those changes across updates.
Yes.
There ought to be a way around this. Maybe if we put those "load" instructions in little snippets that you can "include" in base.html and other templates that people might customize, and then we update the snippets?
Steve
participants (3)
-
Caballero, Danny (Dan)
-
dancab@caltech.edu
-
Stephen J. Turnbull