Posted by cerup on August 2, 2010 at 5:28pm
2 followers
Jump to:
| Project: | FeedAPI |
| Version: | 6.x-1.x-dev |
| Component: | Code parser_common |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Wehn trying to run cron, I'm getting a fatal error:
WD php: Recoverable fatal error: Object of class stdClass could not be converted to string in[error]
_parser_common_syndication_download() (line 394 of
/var/www/site.com/drupal/sites/all/modules/feedapi/parser_common_syndication/pa rser_common_syndication.module).
Warning: Cannot modify header information - headers already sent by (output started at /var/www/site.com/drush/includes/drush.inc:812) in /var/www/site.com/drupal/includes/bootstrap.inc on line 883I'm using drush to debug cron since the fatal error doesn't give me the information through the browser. If I run cron twice in a row, it normally goes through, but it won't if it only runs once. Anyone else seen this issue before?
Comments
#1
Hi, yes, I saw this problem this morning. Checking the logic, it would appear that $downloaded_string can be either an object or a string at this point, so it must be allowed for.
As a trial solution I have inserted the following at line 393:
// patch to allow for object returned from code aboveif(is_object($downloaded_string)) {
return $downloaded_string;
}