Keyword

ncaught TypeError: $K2(...).accordion is not a function

  • Alessandro Battezzati
  • Alessandro Battezzati's Avatar Topic Author
  • Offline
  • New Member
More
6 years 3 months ago #166301 by Alessandro Battezzati
ncaught TypeError: $K2(...).accordion is not a function was created by Alessandro Battezzati
Joomla 3.8.2
K2 2.8.0

When i try to save a k2 content in administration, the javascript error is:

Uncaught TypeError: $K2(...).accordion is not a function
at HTMLDocument.<anonymous> (k2.backend.js:403)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.K (jquery.min.js:2)


Any idea ? Conflict with jQuery ? Compatibility version problem ?

Thanks in advance,
regards

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 3 months ago #166305 by Krikor Boghossian
Replied by Krikor Boghossian on topic ncaught TypeError: $K2(...).accordion is not a function
Hello there,

Is jQuery UI being loaded?
You can force load it in K2's settings.

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

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

  • Alessandro Battezzati
  • Alessandro Battezzati's Avatar Topic Author
  • Offline
  • New Member
More
6 years 3 months ago #166317 by Alessandro Battezzati
Replied by Alessandro Battezzati on topic ncaught TypeError: $K2(...).accordion is not a function
In k2 settings actually we are loading jQuery 1.12.4.

Screenshot
imgur.com/a/GsDuh

Are there other places/panel where we can set the jQueryUI library ?


thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 3 months ago #166322 by Krikor Boghossian
Replied by Krikor Boghossian on topic ncaught TypeError: $K2(...).accordion is not a function
Are you using any 3rd party K2 extensions?

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

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

More
5 years 10 months ago - 5 years 10 months ago #168121 by Roland
Hello,

i got this error also. I changed before all lines in the admin/helper/html.php and commented all cloudflare lines out!

According GDPR i only want to get no external loads on frontend, so i only have to comment out following lines: 99, 237, 244 & 287

No it works again...

Based on current available K2
Last edit: 5 years 10 months ago by Roland.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 10 months ago #168147 by Krikor Boghossian
Replied by Krikor Boghossian on topic ncaught TypeError: $K2(...).accordion is not a function
Hello,
These are JS files loaded through a CDN. Most JS libs distribute their code through that CDN cdnjs.com/libraries/jquery/

This will not break your GDPR compliance. These are by no means tracking scripts.

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

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


Powered by Kunena Forum