Errors in collecting or parsing feed not clearly reported to user

shunshifu - February 20, 2009 - 18:15
Project:iCal feed parser
Version:6.x-1.0
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I am getting this error on map or refresh

Invalid argument supplied for foreach() in /home/scooters/public_html/sites/all/modules/parser_ical/parser_ical.module on line 94.

Any ideas?

Thanks

Phil

#1

ekes - February 21, 2009 - 18:21

Did you enter the title for the feed or did it get detected automatically?

My guess here is that there is an HTTP error on collecting the feed and the parser is incorrectly ploughing on ahead anyway (I have some imperfect solutions for this). If the feed title was detected, what's the URL of the feed?

#2

ekes - February 22, 2009 - 16:48
Title:Invalid argument» Errors in collecting or parsing feed not clearly reported to user
Component:Code» User interface
Status:active» needs review

And this is the idea to make it a bit clearer when things are failing as feeds aren't collected, or don't have events. Testing welcome.

AttachmentSize
parser_ical.200902222.patch 1.9 KB

#3

ekes - September 25, 2009 - 11:50

marked #473734: Check feed array before trying to parse to prevent PHP errors as a dupe of this, just need to say when it's not there.

 
 

Drupal is a registered trademark of Dries Buytaert.