Hi, I've FeedAPI 5x-1.1 on Drupal 5.5. Since my server has PHP 5 I'm using the Common Syndication parser. I've kept all default settings applied when the module is activated, so the only processor is the FeedAPI node processor. I've left the two default content types at their defaults.
When I create a new feed node, I select "Node type of feed items" a blog entry or others, the feed node itself is created, but the items are downloaded into the feed without type content. When I try to edit the feeds I've the following error.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'story_node_form' was given in /home/content/o/p/i/opina2005/html/opina/includes/form.inc on line 218.
Thanks in advance
Comments
Comment #1
szy commentedCercamon,
Have you change the name of your 'story' content type before?
My imported items had the same as yours: no content type.
When I looked to the database table I saw, that they got
imported with 'story' type - which was the former name of
my present 'news' content type.
So, I went to database 'node_type' table and changed 'orig_type'
value for 'news' from 'story' to 'news' and then import was fine.
Understood? ;)
Comment #2
Rob_Feature commentedI think this is a bug. At the very beginning of my install, I deleted the Story content type (that's usually the first thing i do). This was long before I even installed FeedAPI. But now, when I create nodes using FeedAPI, they are showing a blank content type in admin/content/node.
However, when I looked in my database, those nodes are showing as a STORY content type. I don't see how that could possibly happen because of my settings, considering Story didn't even exist when I installed FeedAPI. Also, story doesn't exist anywhere in my database tables, except for this one place in the feed item's 'type' column.
In another comment, I'll change the status and post my setup. (since this comment was actually edited and I didn't change it the first time)
Comment #3
Rob_Feature commentedSee above comment on why I classified this as a bug. I'm choosing critical because at this point, I can't use this module to create nodes until we can deem this a bug or not.
I'm using: Feed API Package 5.x-1.1 on a MAMP installation running PHP 4.4.4
Comment #4
Rob_Feature commentedI just installed the dev version (5.x-1.x-dev) and this appears to be fixed. So I'm closing this issue.
Comment #5
greg.harveyDid anyone provide a patch? I don't really want to use HEAD. =(
Comment #6
greg.harveyActually, I think this bug still needs squishing. I am using 5.x-1.2, which, according to the .info file, was packaged after this thread closed out, but I'm getting exactly the same problem:
- Fresh Drupal install
- Delete Story content type
- Create content type Aggregated News
- Install FeedAPI (and associated modules)
- Create a feed, pointing the content to the new Aggregated News content type
- Process the feed (it will bring in items as expected)
- Edit an item and you will see this warning:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'story_node_form' was given in U:\projects\sandbox\includes\form.inc on line 218.Comment #7
greg.harveyNote, this does seem to be fixed in the development snapshot. Seems it didn't make the cut for 5.x-1.2. Is there going to be a 5.x-1.3 soon, or is all attention now on the 6.x version? =)
Comment #8
alex_b commented@greg: I think the problem is that feedapi_node stubbornly assumes 'story' node type to be present. Try this patch: http://drupal.org/node/288114
Comment #9
greg.harveyThanks Alex - good to have a link to the patch in this issue. Hopefully someone will apply it (and others) soon and roll a new 5.x release. Unless, of course, it's considered to be "by design", but since the issue is fixed in 5.x-1.x-dev, I guess not. =)
Comment #10
mustafau commentedComment #11
fletch11 commentedI can confirm this is still happening in the most recent version (5.x-1.3).
I am also getting the following message when I try to edit a feed:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'feedapi_node_node_form' was given in /homepages/9/d205962140/htdocs/includes/form.inc on line 218.