COMMUNITY FORUM
Tool for importing / exporting items to / from K2
- Scott
-
- Offline
- New Member
1. Attachements are not working even when I added the direct path to the CVS file
2. Creation dates are not imported and default to current date this is a problem
what can I do to fix the attachment issue
Design Starts with a Blank Sheet
Please Log in or Create an account to join the conversation.
- Individual IT
-
Topic Author
- Offline
- Elite Member
- Developer of the K2 Import / Export Tool
thank you for buying the extension (its not a donation)
you are true the attachment path is not exported as they are all in "media/k2/attachments" anyway. So you can easily copy them wherever you need . But I will think about to show the full path there in future.
My guess that your second problem in a date issue. Please check the "Publish Up" and the "Publish Down" dates, specially the format in your CSV file. It has to be yyyy-mm-dd hh:mm:ss e.g. 2014-05-06 00:00:00
Please check the format with a text editor as Excel might show a different format to what it does save.
Feel free just to post a part of your import file.
P.S. the documentation is not a translation from German to English, but simply written by a German ;-)
Please Log in or Create an account to join the conversation.
- Scott
-
- Offline
- New Member
you post a comment
My guess that your second problem in a date issue. Please check the "Publish Up" and the "Publish Down" dates, specially the format in your CSV file. It has to be yyyy-mm-dd hh:mm:ss e.g. 2014-05-06 00:00:00
Please check the format with a text editor as Excel might show a different format to what it does save.
The format is correct in excel and libre. The creation date for the article is in the cvs file but was not recognized when importing so all the k2 files order by Publishup DTG is correct . . Pushdown is 0000-00-00 00:00:00 Creatuion DTG looks good as well
The attachment path was no visible in the CVS file and the pdf files are in the correct location in the new site on local server. K2 import could not locate the files so I manual edit the cvs file with th ecorrect direct path for each pdf location and still K2 Import could not find the pdfs
how do I find the if the paths are intact?
I was hoping this would work as I'd pref not to redo each K2 item
Design Starts with a Blank Sheet
Please Log in or Create an account to join the conversation.
- Scott
-
- Offline
- New Member
Design Starts with a Blank Sheet
Please Log in or Create an account to join the conversation.
- Scott
-
- Offline
- New Member
okay so the cats not import I create the 5 categories with the same id 1 through 5
ran K2 import
same problem only 8 articles and no attachments the only positive new is the log file is shorter . I'd like a refund please...I have gone out of my way to resolve this on my own and yes I even tried a downgrade version of K2 Import same problem errors and non imported content
Log file
Messages
importing items, please stand by
items were imported, but with some problems:
Unespected ERROR. We cancel the import. If there are just Warnings and Notices try to set your Error Reporting in System->Global Configuration->Server to 'None' or 'Simple'.
Warning: getimagesize(\): failed to open stream: No such file or directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 3011
Warning: copy(): The first argument to copy() function cannot be a directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 5151
Warning: getimagesize(\): failed to open stream: No such file or directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 3011
Warning: copy(): The first argument to copy() function cannot be a directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 5151
Warning: getimagesize(\): failed to open stream: No such file or directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 3011
Warning: copy(): The first argument to copy() function cannot be a directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 5151
Warning: getimagesize(\): failed to open stream: No such file or directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 3011
Warning: copy(): The first argument to copy() function cannot be a directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 5151
Warning: getimagesize(\): failed to open stream: No such file or directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 3011
Warning: copy(): The first argument to copy() function cannot be a directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 5151
Warning: getimagesize(\): failed to open stream: No such file or directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 3011
Warning: copy(): The first argument to copy() function cannot be a directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 5151
Warning: getimagesize(\): failed to open stream: No such file or directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 3011
Warning: copy(): The first argument to copy() function cannot be a directory in C:\xampp\htdocs\Dona\administrator\components\com_k2\lib\class.upload.php on line 5151
{"finish":false,"absolute_row_num":10,"error_message":["row: 1 there is no user with the ID: 657 I'm using the ID:665","row: 2 there is no user with the ID: 657 I'm using the ID:665","row: 3 there is no user with the ID: 657 I'm using the ID:665","row: 4 there is no user with the ID: 657 I'm using the ID:665","row: 5 there is no user with the ID: 657 I'm using the ID:665","row: 6 there is no user with the ID: 657 I'm using the ID:665","row: 7 there is no user with the ID: 657 I'm using the ID:665","row: 8 there is no user with the ID: 657 I'm using the ID:665","row: 8 - save attachments -
Local file doesn't exist. \\CPAJanuraryV712015.pdf<\/li><\/ul>","row: 9 there is no user with the ID: 657 I'm using the ID:665","row: 9 - save attachments -
Local file doesn't exist. \\CPAFebruary2014.pdf<\/li><\/ul>","row: 10 there is no user with the ID: 657 I'm using the ID:665","row: 10 - save attachments -
Local file doesn't exist. \\CPAFebruary2011.pdf<\/li><\/ul>"],"memory":"7.75 MB"}
Row: undefined / memory peak: undefined
Import finished
Design Starts with a Blank Sheet
Please Log in or Create an account to join the conversation.
- Scott
-
- Offline
- New Member
with a wee bit more experimenting
1. export each category as stand alone cvs file 1 has 7 itmes file 2 has 8 items and file 3 has 27
it was the loop setting that was causing the problem the default is 10 / loop and the 2 smaller files installed no problem (creation dates in tact!!!!! woohooooo better documentation would be great one more ready easy to understand from a newbie point of view
the 3rd file only import 10 file sand erred out .....deleted those files and increased Loop to 30 and presto all 27 files imported
so no money back reequired!!! :) :) :) though the time more time figuring this out I could have written each out over agian hahaha
the remaining problem is attachments they are NOT added to the k2 item
can this be fixed please :)
Design Starts with a Blank Sheet
Please Log in or Create an account to join the conversation.
- Individual IT
-
Topic Author
- Offline
- Elite Member
- Developer of the K2 Import / Export Tool
If I understand correctly you manage to import the most of the data, glad to hear that.
- I strongly encourage you to switch off the Error Messaging. The Warnings should not be displayed on a production environment anyway. So please go to System->Global Configuration->Server and set Error Reporting to 'None' or 'Simple'
- setting the amount of items imported per loop is a very important step if your server runs out of time or memory during import
- On the screen " K2 Import Tool - configure the import" (the screen just after the upload) you have a setting saying "Root of files (images/attachments)" The default is "/", please try to enter the root directory of your attachments/images here.
E.g. If your attachments are in C:\htdocs\attachments\ and your images are in C:\htdocs\images . The root of files should be "C:\htdocs\" and in the CSV file the image path should be given as "images\img.jpg" and the attachments path like "attachments\file.pdf" - You are totally true, I'm not a great documentation writer. Nor I'm an English native speaker. Any chance you could help with fixing the documentation?
- if you are disappointed with the extension, no question I will send back the money. Also you should write a honest review at JED
Please tell me if you still have troubles.
Please Log in or Create an account to join the conversation.
- Scott
-
- Offline
- New Member
images/PDFs/
Articles
Publications
Newsletters
I've tried different paths and none are adding the pdf in each of the sub folders the log wants to find all pdf files in
PDFs folder
local file doesn't exist \images\PDFs\CPAJanuaray2010.pdf
tried dirct path C;\xampp\htdocs\Dona\images
this did not work either.
logfile: local file doesn't exist C:\xampp\htdocs\Dona\imagesCPAJanuaray2015.pdf
Tried again with direct path C:\xampp\htdocs\Dona\images\PDFsCPAJanuaray2015.pdf
the import is not recognizing the 3 subfolders only the main PDFs folder as you can see th eabove log it's not drilling down to the next folder plus there is not separator in the logfile between the PDFs and the PDF name?
where in the cvs file do I find the path for each file?
Design Starts with a Blank Sheet
Please Log in or Create an account to join the conversation.
- Scott
-
- Offline
- New Member
using the /images/PDFs/Publications/
K2import could not locate the files in that folder but the files are there
ran the same import for single PDF folder (Publications) the other day I had exported each folder individually
this time used direct path to the publication folder and the attachment's position were recognized and the attachments are link in the K2 item
wow painstakingly painful exercise
now that cleared up I have no suggestions on how to make the process less complicated but clearly truing to import multiple folder is not working be case K2import is not recognizing sub folder...the only solution is one folder a time in my case if I had known this in the beginning I would have not wasted a good 8 hours trying to figure this out.
anyways hopefully the nextg update will address something the things I've posted because imo this is a must have Joomla plugin.
Design Starts with a Blank Sheet
Please Log in or Create an account to join the conversation.
- Individual IT
-
Topic Author
- Offline
- Elite Member
- Developer of the K2 Import / Export Tool
could you please post what you have put in the "Root of files (images/attachments)" field and what in the CSV file when it finally worked
Please Log in or Create an account to join the conversation.
- Ben Abbasian
-
- Offline
- New Member
- Posts: 1
/administrator/index.php?option=com_k2import&format=raw
Would you advise how it can be resolved.
Thank you
Please Log in or Create an account to join the conversation.
- Individual IT
-
Topic Author
- Offline
- Elite Member
- Developer of the K2 Import / Export Tool
please try to export only a single category.
Alternatively you will have to adjust some PHP settings if you have permissions to edit the php.ini file
Please Log in or Create an account to join the conversation.
- yen nhikorea
-
- Offline
- New Member
i have joomla 2.4 and k2 import tool 0.9
during the import i get the following error: MySQL server has gone away
in some of the entries i try to import
Thank you!
Công ty thiet ke website giá rẻ thiet ke web ban hang chuyên nghiệp/ thiet ke web thuong mai dien tu uy tín
Please Log in or Create an account to join the conversation.
- Individual IT
-
Topic Author
- Offline
- Elite Member
- Developer of the K2 Import / Export Tool
0.9a was published in Oct 2012 and was written for Joomla 1.5
please get yourself a more recent version of the K2 Import/Export tool: www.individual-it.net/en/Joomla/#27
Please Log in or Create an account to join the conversation.
- Alexey Pankov
-
- Offline
- New Member
- Posts: 2
Export to csv from 2.5 works fine, but than i importing csv file to joomla 3.0 i got following error in last step:
i.imgur.com/94jEMLn.png
i was trying different versions of "k2 import" (from 2.2 to 2.5) with same error.
k2 version : 2.7.1
System information:
PHP Built On Linux heather.timeweb.ru 4.1.27-timeweb #1 SMP Mon Jul 25 10:56:32 MSK 2016 x86_64
Database Version 5.5.43-37.2
Database Collation utf8_general_ci
Database Connection Collation utf8_general_ci
PHP Version 5.3.29
Web Server Apache/2.2.22
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.6.2 Stable [ Noether ] 4-August-2016 23:41 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
Please Log in or Create an account to join the conversation.
- Individual IT
-
Topic Author
- Offline
- Elite Member
- Developer of the K2 Import / Export Tool
it looks like the extension is not compatible to K2 2.7.1 due to this change github.com/getk2/k2/commit/6d6e98ba70ca6888673fa34aeef332e3b9301215
I will fix the extension and publish a new version very soon.
In the meantime try to downgrade to K2 2.7.0
Please Log in or Create an account to join the conversation.
- Alexey Pankov
-
- Offline
- New Member
- Posts: 2
Please Log in or Create an account to join the conversation.
- Individual IT
-
Topic Author
- Offline
- Elite Member
- Developer of the K2 Import / Export Tool
it is now compatible with K2 2.7.1
the other big change is the fact that now the export of huge databases should not be a problem, even if the export takes longer than the max_execution_time setting in PHP or needs more memory than the memory_limit in PHP. So no need to make any changes to the php.ini file any more.
extensions.joomla.org/extensions/extension/extension-specific/k2-extensions/import-for-k2
If you have recently bought the extension please check if your download link is still valid.
Remember that for every EUR you pay you can download updates for the next 10 days. So 36.5EUR will give you updates for a whole year ;-)
Please Log in or Create an account to join the conversation.
- Individual IT
-
Topic Author
- Offline
- Elite Member
- Developer of the K2 Import / Export Tool
It will fix some problems of the previous version!
Please Log in or Create an account to join the conversation.
- Marietto Rossi
-
- Offline
- New Member
- Posts: 3
i just bought the import/export extension, but, when i try to export data in csv, i see all the extra fields data in wrong columns. Moreover, there are some category description which should not be there, because they are not the categories of the exported items.
I really need this plugin to import some records, but i can't even export them!
Could you please help me?
Thank you and regards,
Marietto
Please Log in or Create an account to join the conversation.