Keyword

Edit item problems with JS

  • Geison Peres
  • Geison Peres's Avatar Topic Author
  • Offline
  • New Member
More
3 years 5 months ago - 3 years 5 months ago #177431 by Geison Peres
Edit item problems with JS was created by Geison Peres
After the last update of the joomla 3.9.22 the edition of the items of the extension k2 is broken.
I already disabled third-party extensions and it didn't work.

On my pc it works normal, but on others it doesn't!

Can you help me please?

Tipo de banco de dados mysql
Versão do Banco de Dados 5.7.32
Colação do Banco de Dados utf8_general_ci
'Collation' da conexão com o banco de dados utf8mb4_general_ci
Versão PHP 7.3.23
Servidor Web Apache
Interface PHP com servidor Web cgi-fcgi
Versão do Joomla Joomla! 3.9.22 Stable [ Amani ] 6-October-2020 15:00 GMT
Attachments:
Last edit: 3 years 5 months ago by Geison Peres.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #177436 by luken
Replied by luken on topic Edit item problems with JS
Hi.
Same happen to mi at least in two sites.
Tested in Chrome and Firefox (under Linux).

The first error message when edit an Item is:
Uncaught TypeError: $K2(...).tabs is not a function
myurl/media/k2/assets/js/k2.backend.js?v=2.10.3&b=20200429
k2.backend.js:397:28

When edit a Category is de same message but other line of k2.backend.js

Please Log in or Create an account to join the conversation.

  • Geison Peres
  • Geison Peres's Avatar Topic Author
  • Offline
  • New Member
More
3 years 5 months ago #177437 by Geison Peres
Replied by Geison Peres on topic Edit item problems with JS
I discovered the problem

This in the script version
code.jquery.com/ui/1.8.24/jquery-ui.min.js');

Edit line 308 of the administrator/components/com_k2/helpers/html.php file

From $ document-> addScript ('code.jquery.com/ui/1.8.24/jquery-ui.min.js');
For $ document-> addScript ('code.jquery.com/ui/1.12.1/jquery-ui.min.js');

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #177446 by JoomlaWorks
Replied by JoomlaWorks on topic Edit item problems with JS
Check if you have antivirus apps that may be blocking code.jquery.com from loading JS files.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #177450 by luken
Replied by luken on topic Edit item problems with JS

Fotis wrote: Check if you have antivirus apps that may be blocking code.jquery.com from loading JS files.

Hello.
This code seems to be unavailable.
code.jquery.com/ui/1.8.24/jquery-ui.min.js

Please check the url.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #177457 by JoomlaWorks
Replied by JoomlaWorks on topic Edit item problems with JS
Works fine from multiple locations. Please verify if it's some antivirus app cutting it off. Check with another PC or even your smartphone (I hope you have one) if you can load that file.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #177494 by RomyS
Replied by RomyS on topic Edit item problems with JS
HI! We had this problem. Only some PCs or tablets blocked all files from code.jquery.com with the error "too many redirects".
In case it helps anyone, the only solution was to download the file and put it on our server following the advice of Geison:

Edit line 308 of the administrator/components/com_k2/helpers/html.php file
From $ document-> addScript (' url from our site /jquery-ui.min.js ');

Regards!

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #177507 by JoomlaWorks
Replied by JoomlaWorks on topic Edit item problems with JS
Do you remember what type of OS these PCs use? Are they older machines with Windows XP, Vista etc.?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #177513 by RomyS
Replied by RomyS on topic Edit item problems with JS
Now I can tell you one of the pcs (windows 10 Home Single Language - version 2004 - compilation 19041.630 - Windows Feature Experience pack 120.2212.31.0 - With official windows antivirus).
The problem appears in all browsers for the url code.jquery.com!
In a while I will have information on one of the tablets with the problem.
Regards

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago - 3 years 4 months ago #177532 by JoomlaWorks
Replied by JoomlaWorks on topic Edit item problems with JS
My guess is the jQuery's CDN powered by Stackpath has issues currently in Latin America and perhaps other parts of the world. North America & Europe seem unaffected.

In any case, you can upgrade to K2 v2.10.4 (dev) - from getk2.org/downloads/?f=K2_Development_Release.zip - in which I have swapped all CDN references to CloudFlare's cdn.js which has historically proved far more reliable, but until some years ago it was blocked in China. That's not the case anymore so K2 will use cdn.js from now on.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 3 years 4 months ago by JoomlaWorks.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum