Keyword

Issue with Gallery

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
6 months 3 weeks ago #172030 by Thomas Thrane
Thomas Thrane created the topic: Issue with Gallery
Hi

I'm using Gallery Pro here www.sawo.dk/da/brugtmateriel/til-salg-for-kunder/moffett-m4-25-4-salg-for-kunde and other subpages.
When a K2 item is copied I get an error when trying to change images in the item on the copied item.
The error says: "the most recent request was denied because it contained an invalid security token"

I use Firecoders Econa too and they say this:
--
The error is caused by K2 when the item has a gallery. K2 generates invalid javascript code (missing semicolon) which breaks Econa (and probably other plugins).
--

Any advice?

Kind regards
Thomas

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
6 months 3 weeks ago #172049 by Fotis
Fotis replied the topic: Issue with Gallery
"The error is caused by K2 when the item has a gallery".

If this issue occurred with just K2 and SIGPro, we'd know by now :)

The page doesn't open because of a bug in Econa. But unless you tell me exactly where the issue occurs and what causes issues in our code, I can't do much.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
6 months 3 weeks ago #172068 by Thomas Thrane
Thomas Thrane replied the topic: Issue with Gallery
Thanks Fotis, I'll get back after speaking to Econa :-)

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
6 months 3 weeks ago #172072 by Thomas Thrane
Thomas Thrane replied the topic: Issue with Gallery
FireCoders have replied with this:

Use the following link to view the source of the page:

view-source:http://www.sawo.dk/administrator/index.php?option=com_k2&view=item&cid=470

At line 370 there is code added by K2 and there is a missing semicolon which causes issues for all following scripts:

function onK2EditorSave(){ }
var K2ActiveMediaTab = 0
(function($) {
...

They need to add a semicolon after 0. That's all I can do on my part. They need to fix it.

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
6 months 3 weeks ago #172081 by Fotis
Fotis replied the topic: Issue with Gallery
First of all, JS lines don't need to be terminated with a semicolon unless some form of whitespace compression is enforced.

In any case, that file was either way changed back in Sept. 30th 2018: github.com/getk2/k2/commit/456937d6d8e1e92061aa52eb01eb79952d3bc0c4#diff-3defc11f12aa18218b7b96b2b32b7ff1

But it looks like that was a few days after 2.9.0 was marked, so just grab v2.10 (dev) from github.com/getk2/k2/archive/master.zip and install it on top of 2.9.0.

Let me know if it resolves your issue.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum