Keyword

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

  • Alessandro Battezzati
  • Alessandro Battezzati's Avatar Topic Author
  • Offline
  • New Member
More
5 months 4 days ago #166301 by Alessandro Battezzati
Alessandro Battezzati created the topic: ncaught TypeError: $K2(...).accordion is not a function
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.

More
5 months 4 days ago #166305 by Krikor
Krikor replied the 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.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Alessandro Battezzati
  • Alessandro Battezzati's Avatar Topic Author
  • Offline
  • New Member
More
5 months 4 days ago #166317 by Alessandro Battezzati
Alessandro Battezzati replied the 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.

More
5 months 3 days ago #166322 by Krikor
Krikor replied the topic: ncaught TypeError: $K2(...).accordion is not a function
Are you using any 3rd party K2 extensions?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

More
2 weeks 5 days ago - 2 weeks 5 days ago #168121 by Roland
Roland replied the topic: ncaught TypeError: $K2(...).accordion is not a function
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: 2 weeks 5 days ago by Roland.

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

More
2 weeks 3 days ago #168147 by Krikor
Krikor replied the 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.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

Moderators: william white