Experiencing a 401 Unauthorized Error During Update?
If you're seeing a 401 Unauthorized error when trying to update your Joomla extension, it's likely due to our new two-factor authentication (2FA) security measure for your Download ID.
To resolve this, check your email (Spam folder?) for a message to approve your server or device, or read our detailed blog post here(
onlinecommunityhub.nl/best-practice/new-...-extension-downloads) to understand the steps involved. This will guide you through approving your server for future updates.
No bug Error: Uncaught TypeError: jQuery(...).jsSocials is not a function
- Amar Guillen
- Topic Author
- Offline
Less
More
- Posts: 12
- Thank you received: 0
1 year 1 week ago - 1 year 1 week ago #2695
by Amar Guillen
Error: Uncaught TypeError: jQuery(...).jsSocials is not a function was created by Amar Guillen
Hi,
My website is running under Joomla 4.
On some pages of my website, I have this error: Uncaught TypeError: jQuery(...).jsSocials is not a function.
On this page: www.guillenphoto.com/en/choose-the-timel...he-isle-of-skye.html
Another example of page : www.guillenphoto.com/en/fine-art-prints-...ts-guillenphoto.html,
But it works fine on this page: www.guillenphoto.com/en/symbolic-fine-ar...k-to-the-future.html
I have attached a screenshot of the problem.
Please would you help to solve the issue?
Thanks for your help.
A. Guillen
My website is running under Joomla 4.
On some pages of my website, I have this error: Uncaught TypeError: jQuery(...).jsSocials is not a function.
On this page: www.guillenphoto.com/en/choose-the-timel...he-isle-of-skye.html
Another example of page : www.guillenphoto.com/en/fine-art-prints-...ts-guillenphoto.html,
But it works fine on this page: www.guillenphoto.com/en/symbolic-fine-ar...k-to-the-future.html
I have attached a screenshot of the problem.
Please would you help to solve the issue?
Thanks for your help.
A. Guillen
Last edit: 1 year 1 week ago by Amar Guillen.
Please Log in to join the conversation.
- Ruud van Lent
- Offline
Less
More
- Posts: 1640
- Thank you received: 107
1 year 1 week ago #2696
by Ruud van Lent
Replied by Ruud van Lent on topic Error: Uncaught TypeError: jQuery(...).jsSocials is not a function
Good morning Amar,
I did a quick check.
on the page provided (with the error), all scripts load via a JCH Optimized script. That is where the issue is: the scripts have a dependency on each other: so ochJSsocials depends on jQuery being loaded when it starts. The error you get is because on these pages jQuery starts after ochJSsocials.
Can you disable JCH Optimize (the JS optimizing part) and check if the error is then gone?
If so, then you need to start tweaking JCH Optimize and see if doing things less 'aggressive', or excluding certain scripts from being handled by JCH Optimize solves it.
I did a quick check.
on the page provided (with the error), all scripts load via a JCH Optimized script. That is where the issue is: the scripts have a dependency on each other: so ochJSsocials depends on jQuery being loaded when it starts. The error you get is because on these pages jQuery starts after ochJSsocials.
Can you disable JCH Optimize (the JS optimizing part) and check if the error is then gone?
If so, then you need to start tweaking JCH Optimize and see if doing things less 'aggressive', or excluding certain scripts from being handled by JCH Optimize solves it.
Please Log in to join the conversation.
- Amar Guillen
- Topic Author
- Offline
Less
More
- Posts: 12
- Thank you received: 0
1 year 1 week ago #2697
by Amar Guillen
Replied by Amar Guillen on topic Error: Uncaught TypeError: jQuery(...).jsSocials is not a function
Hi Ruud,
I hope you are doing well.
thank you very much for your reply.
In Jch I excluded jquery.min.js from being processed by JCH. It works well. The issue is gone.
Not easy to use an extension like JCH.
Thanks for all
Sincerely,
A. Guillen
I hope you are doing well.
thank you very much for your reply.
In Jch I excluded jquery.min.js from being processed by JCH. It works well. The issue is gone.
Not easy to use an extension like JCH.
Thanks for all
Sincerely,
A. Guillen
Please Log in to join the conversation.
- Ruud van Lent
- Offline
Less
More
- Posts: 1640
- Thank you received: 107
1 year 1 week ago #2698
by Ruud van Lent
Replied by Ruud van Lent on topic Error: Uncaught TypeError: jQuery(...).jsSocials is not a function
Thanks for reporting back,
good to know you were able to solve it.
<rambling>
In my 'philosophy' a website (Hosting, CMS and extensions) should always perform good. Extensions like JCH Optimize are only a 'patch' for something that is not functioning good enough. That should be solved in the basis and not via extensions like JCH Optimize.
Optimizing extensions should be a (very) last resort in my opinion as they add load and complexity and as such make maintenance and security more difficult. If Joomla is not fast enough with what it offers out-of-the-box then you are better off switching hosting. If you have an extension that does exactly what you want but on production with multiple visitors breaks the site performance then you are better off searching for another extension (or take it up with the extension developer to give him the opportunity to improve).
</rambling>
If you have any other issues or questions feel free to open a new topic.
closing this one now.
regards,
Ruud.
good to know you were able to solve it.
<rambling>
In my 'philosophy' a website (Hosting, CMS and extensions) should always perform good. Extensions like JCH Optimize are only a 'patch' for something that is not functioning good enough. That should be solved in the basis and not via extensions like JCH Optimize.
Optimizing extensions should be a (very) last resort in my opinion as they add load and complexity and as such make maintenance and security more difficult. If Joomla is not fast enough with what it offers out-of-the-box then you are better off switching hosting. If you have an extension that does exactly what you want but on production with multiple visitors breaks the site performance then you are better off searching for another extension (or take it up with the extension developer to give him the opportunity to improve).
</rambling>
If you have any other issues or questions feel free to open a new topic.
closing this one now.
regards,
Ruud.
Please Log in to join the conversation.
- Amar Guillen
- Topic Author
- Offline
Less
More
- Posts: 12
- Thank you received: 0
1 year 1 week ago #2699
by Amar Guillen
Replied by Amar Guillen on topic Error: Uncaught TypeError: jQuery(...).jsSocials is not a function
Hi Ruud,
thank you for your reply.
I agree with you. I am not a developer (just a photographer). Joomla is very poor to present nicely a website to a final customer. I need extensions to present my work to convince them to buy my fine art prints.
Just few seconds to make a very good impressions. Extensions are made for this kind of purpose.
I am not using a lot of extensions but there are enough to slowdown my website if I am not using JCH.
I thought to use LiteSpeed to improve performances but I do not really figure if it will help.
Sincerely,
A. Guillen
thank you for your reply.
I agree with you. I am not a developer (just a photographer). Joomla is very poor to present nicely a website to a final customer. I need extensions to present my work to convince them to buy my fine art prints.
Just few seconds to make a very good impressions. Extensions are made for this kind of purpose.
I am not using a lot of extensions but there are enough to slowdown my website if I am not using JCH.
I thought to use LiteSpeed to improve performances but I do not really figure if it will help.
Sincerely,
A. Guillen
Please Log in to join the conversation.