Closed (fixed)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2011 at 00:44 UTC
Updated:
1 Jul 2011 at 18:21 UTC
I get this error when attempting to create nodes from an imported CSV file. I triple checked the CSV formatting, tried truncating the CSV file to 1 row, etc. It creates one node of the custom content type, but doesn't add any information to it.
Warning: Invalid argument supplied for foreach() in form_set_error() (line 1510 of /var/www/drupal/includes/form.inc).
I'm somewhat new to Drupal, so I may be in over my head here.
Comments
Comment #1
ideafarm commentedI am getting exactly the same error, did you ever fix it?
Comment #2
SolomonGifford commentedI'm also getting this error.
Comment #3
fishclic commentedSame here.
Comment #4
donwinchell commentedI get the same thing. I stripped the csv down to only 3 records (plus a header) only nid, uid, title, body. stripped out all html.
I have tried this with the 7.x-2.x-dev as well as 7.x.20-alpha3 same results.
Comment #5
donwinchell commentedForm.inc line 1510- invalid argument for form_set_error
I am not too good at php but data migration fascinates me. I would help track this down if someone would point me in the right direction. It seems there has been no activity on this in close to a month.
Do others have "feeds" happily doing imports?
Comment #6
prb75 commentedI get this same error. Guess I will use ODBC...
Comment #7
jay-dee-ess commentedWhen I changed the "Basic Settings" > "Attach to content type" setting to "Use Standalone Form", this error went away. Hope it helps someone...
Comment #8
firestonej commentedYep, same fix as john-ess worked for me. Just can't use the node submission for some reason.
I'll set this to needs review until an admin can let us know whether this will be fixed.
Comment #9
jdaniluk commentedI was getting the same error, but "use standalone form" worked for me too. First time I've tried importing a CSV, and I was sure it was something wrong with my data or the mappings definition. Happy that there is such an easy workaround.
Comment #10
pianory commentedIf it helps anyone, I was using Microsoft Excel 2011 (Mac version), and the import didn't work until I did the "use standalone form" method AND saved as "Windows Comma Separated (.csv)" version. The import did not work when saved as a "typical" CSV through MS Excel 2011, or as an MS-DOS CSV.
Comment #11
dave reidThis error should be fixed in the latest 7.x-2.x-dev now. I found the cause of this and it was included in a separate fix.