Forums

[Plugin: AmR iCal Events List] Fatal Error: Call to a ... (Guessing: Something with my Calendar) (13 posts)

  1. bas_der_gruene
    Member
    Posted 1 month ago #

    I have trouble using your Plugin. There is mostly an Fatal Error occuring:

    Fatal error: Call to a member function format() on a non-object in /is/htdocs/wp1071544_TSEEOGUYBM/www/fsasl/wp-content/plugins/amr-ical-events-list/amr-ical-events-list.php on line 334

    But only on some Calendars.

    Well, it´s kinda complicate what I am trying to do: I like to import an Calendar live created by the WordPress-Plugin "Event-Calendar" from another Wordpress installation.

    Im am using Wordpress 2.8.4, AmR iCal Events List 2.5.10 and Event Calendar 3.1.4. (The Server has php version 5.2.10 with DATETIME Class enabled)

    The Calender ist loaded from: http://intern.fsasl.de/?ec3_ical (when I put this line in iCal it is subscribed perfectly; I even can download it with Safari.)

    I tried another (fixed) Calender: http://frederick41.de/ical/hessen.ics and the same error occured.

    But: The calender: http://ical.me.com/betzebub/FCK.ics (for example) worked perfectly.

    So what differs these Calenders and what is wrong with using them with the Plugin amr-ical-events-list.

    Does anyone have a clue?

  2. h.lietz
    Member
    Posted 4 weeks ago #

    Same message here: Fatal error: Call to a member function format() on a non-object in /home/xxx/public_html/rc/wp-content/plugins/amr-ical-events-list/amr-ical-events-list.php on line 220
    Would be interested in a solution, too.

  3. anmari
    Member
    Posted 3 weeks ago #

    Hi guys,
    I did find out why and fix it on my working copy, but then got sidetracked with another obscurity that is hard to make happen, thinking i'd fix the two at once.

    I think yours maybe the bug that was only happening on events that had a duration specified instead of a start and end time, and that was maybe also recurring. Anyway I have to clear my deck of a couple of paid matters and then can come back to this.

  4. bas_der_gruene
    Member
    Posted 2 weeks ago #

    That would be very kindly. (today isn´t the day to write good english, too tired)

  5. anmari
    Member
    Posted 2 weeks ago #

    @h.lietz - please would you post a link to ics file that was causing a problem so I can test with it.

  6. h.lietz
    Member
    Posted 1 week ago #

    I don't think it's the ics file that causes the problem. It probably has to do something with the server the site is running on. The ics file works fine at another test-site running on another server ...
    But anyway, here's the file I'm testing with: http://www.google.com/calendar/ical/eqk7isqn1gr3qu3khvt89cvfh0%40group.calendar.google.com/public/basic.ics

  7. bas_der_gruene
    Member
    Posted 2 days ago #

    Hello anmari,

    you mentioned you have fixed this issue on your local copy. Is it possible to get a new (fixed) release of this plugin within the next weeks? I'm very curious about it.

    best wishes, bas

  8. anmari
    Member
    Posted 1 day ago #

    Hi - a "development version - 2.5.11beta" has been loaded for you to try
    http://wordpress.org/extend/plugins/amr-ical-events-list/download/

    It is labelled 2.5.11beta - I have been busy so have not had the opportunity to test as well as I usually do (Also want to finish a few other tweaks, but I think it works okay for your purposes.)
    Your ec cal is coming up as unavailable, but the hessen ical seems to work okay.

    I think the problem with it was this http://icalevents.anmari.com/1883-tzid-timezone-weirdness/. I adjusted the plugin to deal with what it was doing, although one could argue that that timezone usage is incorrect.

  9. anmari
    Member
    Posted 1 day ago #

    @h.lietz - your file is okay on my server, also google files do not do the funny timezone business on the date fields.

    Do you still have a problem on your other server? If so, What ics file is it using ?

  10. h.lietz
    Member
    Posted 1 day ago #

    Still the same:
    Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in /home/rhythmc/public_html/rc/wp-content/plugins/amr-ical-events-list/amr-ical-events-list.php on line 219

    Fatal error: Call to a member function format() on a non-object in /home/rhythmc/public_html/rc/wp-content/plugins/amr-ical-events-list/amr-ical-events-list.php on line 220

    Sometimes it's ok, but after a reload I get the error messages again. I use the above mentioned ics file.

  11. bas_der_gruene
    Member
    Posted 1 day ago #

    Works very well! Thank you. I just donated ;-)

  12. anmari
    Member
    Posted 7 hours ago #

    @h.lietz
    looks like this is the website 1 problem you flagged here http://wordpress.org/support/topic/314851?replies=5

    I suspect it is something to do with your server setup - Your ics file works fine here:
    http://icalevents.anmari.com/...&ics=http://www.google.com/calendar/ical/eqk7isqn1gr3qu3khvt89cvfh0%40group.calendar.google.com/public/basic.ics

    The lines 219 and 200 are simply trying to get the last modified time of the cache file to reflect this detail on the refresh icon.

    To try to figure out what is going on, run the calendar page with &debug - you will get a lot of info... Look carefully at the top bits where it talks about the cacheing or otherwise. This may give you some info about whether it is a problem with your servers cache folder or not.

    Is the cache directory writeable?
    Do other ics files work?

  13. h.lietz
    Member
    Posted 6 hours ago #

    We'll transfer the site to another server anyway soon. So I'll see if that was the problem. I'll let you know ...

Reply

You must log in to post.

About this Topic