I'm getting emails from cPanel on many cron runs like the following:

<br />
<b>Fatal error</b>:  Cannot use object of type stdClass as array in <b>/path/to/site/profiles/managingnews/modules/contrib/feeds/libraries/common_syndication_parser.inc</b> on line <b>276</b><br />

This only started happening after I upgraded to beta 6.

CommentFileSizeAuthor
#1 mn_rdf10_beta8.patch2.03 KBfrega

Comments

frega’s picture

StatusFileSize
new2.03 KB

I can reproduce this with beta8 and RSS-1.0 feeds. I've attached a patch (against beta8); it feels a little hacky (all that casting from object to array and vice versa), but fixes the issue for me; i've kept the structure of the "$parsed_source"-array identical to that _parser_common_syndication_RSS20_parse() - hth, but i know far too little about feeds and MN to know whether this has any side-effects, though.

alex_b’s picture

Project: Managing News » Feeds
Version: 6.x-1.0-beta6 » 6.x-1.x-dev

geerlingguy: does #1 fix the issue you reported?

alex_b’s picture

frega’s picture

oops, sorry, did not see that this was part of Feeds rather than MN - i'll switch over to the other bug to resolve the issue.

alex_b’s picture

Status: Needs work » Closed (duplicate)

#4: Thank you for quick response. This is a duplicate then.