Keyword

Issue with Gallery

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
5 years 11 months ago #172030 by Thomas Thrane
Issue with Gallery was created by Thomas Thrane
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.

More
5 years 11 months ago #172049 by JoomlaWorks
Replied by JoomlaWorks on 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.

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
5 years 11 months ago #172068 by Thomas Thrane
Replied by Thomas Thrane on 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
5 years 11 months ago #172072 by Thomas Thrane
Replied by Thomas Thrane on 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.

More
5 years 11 months ago #172081 by JoomlaWorks
Replied by JoomlaWorks on 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.

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


Powered by Kunena Forum