Download & Extend

Errors in collecting or parsing feed not clearly reported to user

Project:iCal feed parser
Version:6.x-1.0
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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

Comments

#1

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

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

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.

nobody click here