This patch fixes loads of "Undefined property: stdClass::$feed" (and consequent "Trying to get property of non-object") warnings from line 84 in feedapi_node/feedapi_node.module.

The problem was occurring on the feed-item/%nid screen, and was due to feedapi_node_link() getting invoked for each and every 'story' node in the list, said nodes of course not actually having a $node->feed property, which resulted in two warnings per node shown on that page (in other words, a lot of warnings).

You can find a screenshot of the warnings at http://skitch.com/bendiken/38eh/feedapi-feedapi-node-bug

CommentFileSizeAuthor
#1 324001_feedapi_node.patch915 bytesArto

Comments

Arto’s picture

StatusFileSize
new915 bytes

This patch applies cleanly against both 6.x-1.x-dev and 6.x-1.4.

karens’s picture

I needed this patch to get the iCal parser to create nodes working without errors.

aron novak’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for providing fully baked patch. This is committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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