Here is what I get when attempting a debug:
* Fetching feed from http://www.google.com/calendar/feeds/e0a0s7rge1f0q5jm46dmfbtheo%40group....
* Error: Failed to load XML

Any hint?

TIA

Patrick

Comments

aidanlis’s picture

Hrmm you should have got some other PHP errors at the top of the page, in a big red box. Can you check your "Recent Errors" page in the Administration area?

askandlearn’s picture

I was having the same problem. I disabled ical parser and GCal events. Agenda is now working for me. I also ran cron manually. I'm not sure which of these is responsible for it working.

aidanlis’s picture

Status: Active » Closed (fixed)

ical parser and gcal events have nothing to do with this module and can't affect it in any way. If the module can't fetch the XML, you're probably behind a firewall or proxy. Talk to your system administrator.

sclewley’s picture

I'm having a similar problem. Agenda says it read the xml, but then can not parse any events:
# Fetching feed from http://www.google.com/calendar/feeds/mko95lc391b93joqm0knvk0io8%40group....
# Loaded XML successfully
# Found 1 events
# Loading event 1 which is 1073 bytes
Array
(
[id] => http://www.google.com/calendar/feeds/mko95lc391b93joqm0knvk0io8%40group....
[published] => 2009-06-18T18:41:58.000Z
[updated] => 2009-06-18T18:41:58.000Z
[category] => SimpleXMLElement Object
(
[@attributes] => Array
(
[scheme] => http://schemas.google.com/g/2005#kind
[term] => http://schemas.google.com/g/2005#event
)

)

[title] => Lab Meeting
[summary] => When: Mon Jun 22, 2009 8:30am to 10:30am
EDT

Event Status: confirmed
[content] => When: Mon Jun 22, 2009 8:30am to 10:30am
EDT

Event Status: confirmed
[link] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[rel] => alternate
[type] => text/html
[href] => http://www.google.com/calendar/event?eid=NGU3Y2NoY2doMjdtNGMxZ3BubnJ0OGs...
[title] => alternate
)

)

[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[rel] => self
[type] => application/atom+xml
[href] => http://www.google.com/calendar/feeds/mko95lc391b93joqm0knvk0io8%40group....
)

)

)

[author] => SimpleXMLElement Object
(
[name] => HMS Genetics 258 Conference Room
)

)
# Warning: Failed to parse event!
# Parsed 0/1 events successfully
# Begin filtering based on date: string provided () which has timestamp (0) which has date (Wed, 12/31/1969 - 8:00pm).
# Finished. Started with 1 events, will display 0 events

rokar’s picture

Same problem for me.

The debug displays same messages as previous posted one.

When I run the cron, this is the error message :

warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 4 in /mnt/167/sda/1/4/asm.project/sites/all/modules/agenda/agenda.module on line 445.

ncoalson’s picture

I had the same problem (module couldn't load XML feed; debug tests failed and produced PHP errors in red etc.) until I enabled Sharing on the Google Calendar.

Works fine now.

John R’s picture

I also have this problem. My Google Calendar is shared publicly, I have ran cron manually, I have disabled my firewall but I still get this message when I Debug:-

* Fetching feed from http://www.google.com/calendar/render?hl=en&tab=wc
* Warning: Failed to load XML

John R’s picture

Version: 6.x-1.2 » 6.x-1.7
Status: Closed (fixed) » Active

I also have this problem. My Google Calendar is shared publicly, I have ran cron manually, I have disabled my firewall but I still get this message when I Debug:-

* Fetching feed from http://www.google.com/calendar/render?hl=en&tab=wc
* Warning: Failed to load XML

http://bedshumanists.eu5.org/drupal

calendar: bedshumanists@gmail.com

aidanlis’s picture

That's not a valid URL to fetch anything from, have you set your calendar ids in the settings page?

John R’s picture

Yes, I think so, (Calendar ID: bedshumanists@gmail.com). Please tell me if there is anything else I should be checking. The calendar is set to Public and I have events set up for every Wednesday. I get exactly the same error from the 'Example agenda'.

# Found following calendars:
# Array
(
[0] => drupalagenda@gmail.com
)

# Fetching feed from http://www.google.com/calendar/render?hl=en&tab=wc
# Warning: Failed to load XML

aidanlis’s picture

Hi,

I really can't imagine what is going on. This is what I see with your calendar ID:

# Found following calendars:
#

Array
(
[0] => bedshumanists@gmail.com
)

# Fetching feed from http://www.google.com/calendar/feeds/bedshumanists%40gmail.com/public/fu...
# Loaded XML successfully
# Found 0 events
# Warning: Nothing to do with empty calendar, stopping!

Are you using the latest stable version of Agenda? Can you delete and uninstall the module, remove the files, make sure Agenda is not in the module list, then install the latest stable version and try again?

John R’s picture

Status: Active » Fixed

Hi Aidanlis,

Yes I was using the correct stable version 6.x-1.7 and I did remove the files as you suggested. Once I re-installed them everything started working properly. Thanks. I had a little problem with the date being one day early when I was logged in, but correct when I logged out. After reading the other thread regarding this error I disabled the user-configurable time zones in Date and time settings and all is well. Thanks again for your help.

John

Status: Fixed » Closed (fixed)

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

ussy_moha’s picture

Version: 6.x-1.7 » 7.x-1.4
Priority: Normal » Critical
Issue summary: View changes
Status: Closed (fixed) » Needs review

Please i am a beginner learning Drupal with Lynda Drupal 7Essential Training course by Tom Giller and my exercise practice now wont start as it's saying "Failed to load XML Document" once i click on the AcquiaDevDesktop2 program to run.
Please i seriously need you guys help....!!!