#421 Posted in ‘Econa’

Latest post by Lefteris Kavadas on Monday, 20 May 2019 15:17 EEST

Danny Dheuninck
Dear helpdesk,

Since I have installed Econa on our Joomla intranet site, I can no longer add an image to a K2 article? I am getting the message 'The most recent request was denied because it had an invalid security token'. Please help. Kind regards, Danny Dheuninck

 

Lefteris Kavadas
Hi,

Does this occurs in all items or just those who have a gallery? There is an issue in K2 preventing Econa and possibly other extensions from working. There is a missing semicolon in K2 javascript which breaks several scripts. Actually this is an issue of Simple Image Gallery PRO.

Somewhere in the source of the page there is the following code:
function onK2EditorSave(){  }
var K2ActiveMediaTab = 0
        (function($) {
...


They need to add a semicolon after 0. There is nothing I can do on my part. They need to fix it.

Regards

Danny Dheuninck
Thanks for the quick answer Lefteris. This only happens when adding a new K2 Item when uploading the picture via the Tab 'Image' and then Choose file. It can't load the image editor and comes up with this message. Then the image is not displayed, but I get the button below it 'Delete'...When opening an existing K2 with an image it opens in the editor and I can change it. When creating a new K2 item without image all goes well. Any change to get this going, perhaps I can change the source page, as I can't post anymore in Joomla. Thanks in advance. Kind regards, Danny Dheuninck

Lefteris Kavadas
That's a K2 issue. It has to be fixed on their side. You can still apply a fix on your own. Edit the file /administrator/components/com_k2/views/item/view.html and change line 293 from:
$document->addScriptDeclaration("var K2ActiveMediaTab = ".$options['startOffset']);

to:
$document->addScriptDeclaration("var K2ActiveMediaTab = ".$options['startOffset'].";");


Regards

Danny Dheuninck
Lefteris,

That works!!! Thanks a lot. Super service!

Lefteris Kavadas
I am glad that your issue has been resolved. If you like our extension and our support please post a review at the Joomla extensions directory.

Regards

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review