Closed (duplicate)
Project:
FeedAPI
Version:
5.x-1.x-dev
Component:
Code feedapi (core module)
Priority:
Critical
Category:
Task
Assigned:
Reporter:
Created:
8 Feb 2008 at 23:56 UTC
Updated:
9 May 2009 at 05:30 UTC
I am trying to create a feed.
I am getting the error:
warning: Invalid argument supplied for foreach() in /home/xamoxnet/public_html/anthonyoliver/modules/feedapi/feedapi.module on line 1248.
The feed URL I'm trying to import is:
http://www.google.com/reader/public/atom/user/13784583548359855818/state...
I am not sure why this is happening.
I have tried the 1.0 version, the moved to dev version but the same thing is happening. It is happenign when I try to create lightweight items too.
Comments
Comment #1
alex_b commentedLooks like a problem with the configuration of your feed content type. Can you double check, whether you selected at least one valid parser and processor for the content type?
Comment #2
xamox commentedI enabled the simple pie parser and now the problem seems to be fixed.
Comment #3
aron novakWell, it's great to hear :) I transform this into a task. FeedAPI should handle the "feed without any parser" in a more polite way.
Comment #4
alex_b commentedthis seems to be a recurring problem. bumping up the priority.
Comment #5
aron novakIn progress.
It should be done in hook_form_alter() around
if ($form['#post']['op']) {Comment #6
aron novakI tested in a lots of different ways, I always got "Feed could not be refresh" error message if i had no valid parser enabled for the content-type or no parsers enabled at all at drupal level.I think this is polite enough :)
I assume there were another bugs / configuration problems where this occurs.
xamox, do you use php4?
Can you tell me an exact CVS revision where it has happened?
Comment #7
alex_b commented#348780: Invalid argument supplied for foreach() on line 1308.