1. stefiart
  2. RO CSVI
  3. Wednesday, 12 April 2017
  4.  Subscribe via email
Hello, i have followed your guide for importing K2 items with some extra fields from a CSV file but the extra fields despite being shown properly in the preview are not being stored in the database.

I checked the debug log and i noticed these two lines which caught my attention.
The first debug message is self explanatory.
The second debug message caught my eye because i know that the extra fields are being stored within the K2 item as JSON so could that be the cause for the issue? And if so is there a solution to it?

I am also attaching the entire debug log for further inspection.

2017-04-12 11:12:21 0 [DEBUG] Add extra fields: No

2017-04-12 11:12:21 1 [DEBUG] K2 JSON Library not found

com_csvi.log.15.zip
Accepted Answer Pending Moderation
Hello,
The second debug log message is when CSVI looks for a file 'administrator/components/com_k2/lib/JSON.php' and if not found then throws the error 'K2 JSON Library not found'. Check if you have this file on your site in the given location.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
I am running K2 v2.7.1 (latest stable) and there is no such file as 'administrator/components/com_k2/lib/JSON.php'.
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
I found JSON.php from an earlier K2 version & placed it administrator/components/com_k2/lib/' everything is working properly now. Thanks for your quick response.
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello,
The fix you did is a temporary one as CSVI uses K2 JSON class to process the extra fields. The latest version of K2 may not be using this class. We will look into the changes in K2 with latest V2.7.1 version and do the fixes in CSVI accordingly. Thank you for letting us know.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!