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

alex_b’s picture

Looks 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?

xamox’s picture

I enabled the simple pie parser and now the problem seems to be fixed.

aron novak’s picture

Title: Cannot Create Feeds » Handle the situation nicely if there is no enabled parser at all
Category: bug » task

Well, it's great to hear :) I transform this into a task. FeedAPI should handle the "feed without any parser" in a more polite way.

alex_b’s picture

Priority: Normal » Critical

this seems to be a recurring problem. bumping up the priority.

aron novak’s picture

Assigned: Unassigned » aron novak

In progress.
It should be done in hook_form_alter() around if ($form['#post']['op']) {

aron novak’s picture

Status: Active » Postponed (maintainer needs more info)

I 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?

alex_b’s picture

Component: Code » Code feedapi (core module)
Status: Postponed (maintainer needs more info) » Closed (duplicate)