Keyword

Problem saving new K2 Content Module

  • Paul Adamson
  • Paul Adamson's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 8 months ago #150812 by Paul Adamson
Problem saving new K2 Content Module was created by Paul Adamson
Hi, this is the second issue I'm having with a commit made to the dev version of K2.

When I try to save a new K2 Content Module, the save is not completed and no errors are shown. It fails in the javascript field verification process with a blank id. Here is a screenshot:

imgur.com/8HRu06E

I rolled back this file to the previous version:

administrator/components/com_k2/elements/item.php

and now the module saves, as shown in this screenshot:

imgur.com/pcM1hwr

The problem seems to be in this line of code, line 56:

New version:

*** I can't submit the code because its blocked by a spam filter ***

Old version:

*** same here ***

You can see the ( int ) is missing at the end of the line right before the $value variable.

I don't understand the original issue for making the change so I can't comment on the proper way to resolve it, but I know it does solve my problem.

Thanks for your help,
Paul

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #150820 by Krikor Boghossian
Replied by Krikor Boghossian on topic Problem saving new K2 Content Module
Thank you for reporting this Paul.
May I ask you a big favour?
Is it possible to report this in Github? Code posting is allowed there.

FYI: In order to post PHP/JS code on the public forum, you should use Github's gist or a service like pastebin.

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

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

  • Paul Adamson
  • Paul Adamson's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 8 months ago #150829 by Paul Adamson
Replied by Paul Adamson on topic Problem saving new K2 Content Module
Posted on github github.com/joomlaworks/k2/issues/265

and no worries, I'm glad to help!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #150845 by Krikor Boghossian
Replied by Krikor Boghossian on topic Problem saving new K2 Content Module
Thank you Paul :)

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