Needs review
Project:
Node import
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2009 at 11:06 UTC
Updated:
4 Mar 2010 at 22:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
StuartDH commentedHi Robrecht,
Thanks for putting together such a great module. Really looking forward to being able to use it on D6 and I'll be sure to put in at least $100 donation when I've imported my site.
Not knowing too much about the more technical aspects, I'm basically looking to move a vbdrupal5 site to a fresh install of D6
Using Views Bonus module I can create CSV exports of the D5 views that include an imagefield field with the option set to 'path to image'. This results in CSVs with fields that look something like:
files/images/food/fruit/apple1.jpg
files/images/food/fruit/orange213.gif
files/images/food/fruit/pear008.gif
files/images/cars/vwgolf911.jpg
files/images/cars/volvo229.jpg
Would be great if we could use any software to ftp all images into folders for files/images/food/fruit/ and files/images/cars etc, then map them during import using csv fields like those above.
Obviously, it's a similar sort of situation with PDFs/docs or any other files. Using filefield I can create CSV views with files/brochure/pdf/ipod33GB.pdf etc
No idea if that's even remotely possible, but I hope it gives some idea of the sort of workflow that I was thinking about
Thanks again
Stu
Comment #2
cjdavis commentedDo you mean the http://drupal.org/project/views_bonus export? We are working on imagefield import support now, I hope to have something to post for it in the next week.
If somebody else is already working on this let me know so we don't duplicate the effort...
Comment #3
StuartDH commentedYep, that's the one. If we can import images like above within the week, then I'd put in another $100 as it would save me a good few hours uploading them manually one at a time
Thanks
Stu
Comment #4
doughold commentedcjdavis, I am completing a website this weekend that needs this support, I would be willing to pitch in if you'd like me to do anything, or at the very least I can find bugs for you! I might not be the greatest programmer, but I got the uc_product to import successfully in D6.
Comment #5
beatnikdude commentedSubscribing, I am am doing uc_product imports and want ImageField support.
Comment #6
drdmmr commentedI've just set up a D6 site and need to import my product data + images...
Subscribing
Comment #7
Robrecht Jacques commentedCCK ImageField support has been added to CVS. It will be included in the -rc4 release (later today).
Comment #9
cjdavis commentedIt appears that imagefield (and I assume filefield as well) imports are completely broken in the current dev versions. The filepath is being dropped when the information is being inserted into the files table - causing a bad row of data in the table, necessitating some hand editing to remove it.
The correct path is being displayed in the form on step 5, so I'm tracking down where this fails.
Comment #10
cjdavis commentedOk, tracked it down. Attached is a fixed node_import.inc file that fixes import of any field that uses filepath in node_import - that includes CCK types filefield and imagefield at minimum.
Also includes the fix for the mb_strlen() error from #383926: mb_strlen() errors on taxonomy imports
Comment #11
hepabolu commentedI used this file (#10) instead of the original one of the dev-version. It did solve my problem with importing IMCEImage fields, but the mb_strlen() remains and no taxonomy settings are imported.
Comment #12
tahiticlic commentedComment #13
terry22 commentedresolved.
Now I got no errors but no files are referenced in my nodes...
Does someone has a clue?
Comment #14
terry22 commentedHi again,
does someone succeed in importing imagefield ?
In my case, the fields are correctly imported but no fid are inserted in the content type nodes.
Does someone find a fix?
Comment #15
chrowe commentedHello,
Thanks to everyone who has put time into this module. It has been a great help. I too am trying to import files without success. I tried a test import of 2 nodes with file attachments.
1. has the file in the File_Field path
http://qa.library.ole.org/sites/qa.library.ole.org/files/files/1/Afr_1st...
2. the other is nested several directories down.
http://qa.library.ole.org/sites/qa.library.ole.org/files/files/1/siyavul...
We would like to preserve the directory structure like in number 2 but would be happy if we could get number 1 working.
I have also tried this with 6.x-1.0-rc4 and have the same problem.
I have some developers who can take a look at this next week. If you can point them in the right direction that would be wonderful. Or I can pay for your time if you can give me an estimate of what it will take.
Thanks again,
Chris
Comment #16
chrowe commentedI just realized that my main issues is #433738: Support tokenized file paths (FileField_Paths module)
When I replace the [uid] in File path with the admin uid '1' the file import works.
For a temporary fix I can just change this while I upload since the site is not under heavy use and then change it back to [uid] when I am done.
As for point number 2. I am still interested in knowing what it would take to maintain the file structure we have.
Chris
Comment #17
terry22 commented@chrowe :
Hi , in which file do you change the [uid] for fixing the import?
thank you for your help
Comment #18
chrowe commented@terry22
This is only if you are using the cck filefield module.
It is in the "Path settings" for the field you are importing into admin/content/node-type//fields/
Comment #19
terry22 commented@chrowe :
thank you I will try this.
for now images are imported in database but not linked to the node.
Comment #20
ak commentedsubscribing