Just installed the module, went to create content and clicked on 'Feed'. Just below the 'Submit Feed' title I get the message "warning: Invalid argument supplied for foreach() in /xxxx/html/includes/form.inc on line 949."

Comments

matt b’s picture

I hadn't created any categories. Ideally this should be detected and a helpful message displayed by the module, rather than this warning message.

alex_b’s picture

Did you use feedapi_inherit? If not, what was your exact configuration of FeedAPI when the error happened?

rconstantine’s picture

Also what are your settings for the Feed content type itself?

aron novak’s picture

Assigned: Unassigned » aron novak
Priority: Normal » Critical
Status: Active » Postponed (maintainer needs more info)

Please answer the above question and then: what is the feed url that you try to use? Or is it the same for all feed?

matt b’s picture

Sorry, I have now removed the module and am using simplefeed instead. It works fine.

I think I was using feedapi_inherit and the feed was http://www.highways.gov.uk/rssfeed/rss.xml

aron novak’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Fixed

I spent some time to figure out what could be the problem. I tested under PHP4 / PHP5 and under some strange circumstances (not enable all modules which are needed), but I cannot reproduce the error at all.
I dug into form.inc and it's evident that the error message means: somewhere " '#options' => $foo " at forms api usage, the $foo is not an array. I explored the whole FeedAPI package and secured all '#options' so it's now fairly impossible to have this error message.
Another gain: at feedapi_node, you can choose which content type should be used for creating feed items. For that choice list, the content types type was used instead of the human-readable names. Now it's fixed.
If you spot this message again when using latest dev package, please reopen the ticket immediately.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.