Closed (fixed)
Project:
FeedAPI
Version:
5.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Jan 2008 at 05:55 UTC
Updated:
7 Feb 2008 at 15:01 UTC
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
Comment #1
matt bI hadn't created any categories. Ideally this should be detected and a helpful message displayed by the module, rather than this warning message.
Comment #2
alex_b commentedDid you use feedapi_inherit? If not, what was your exact configuration of FeedAPI when the error happened?
Comment #3
rconstantine commentedAlso what are your settings for the Feed content type itself?
Comment #4
aron novakPlease answer the above question and then: what is the feed url that you try to use? Or is it the same for all feed?
Comment #5
matt bSorry, 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
Comment #6
aron novakI 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.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.