Forums

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

  1. bas_der_gruene
    Member
    Posted 2 years 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 2 years 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 2 years 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 years ago #

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

  5. anmari
    Member
    Posted 2 years 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 2 years 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 years 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 2 years 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 2 years 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 2 years 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 2 years ago #

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

  12. anmari
    Member
    Posted 2 years 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 2 years 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 ...

  14. davidsworlduk
    Member
    Posted 1 year ago #

    Hi Anmari,

    I'm trying to get the widget to combine my google calendar events with my facebook events. Unfortunately I can't get it to parse the facebook .ics url, nothing is displayed.

    Does AmR iCal support facebook?

    Thanks,

    David.

  15. anmari
    Member
    Posted 1 year ago #

    David,

    The plugin reads valid urls and ics files - occasionally there is an unusual interpretation by some applications of what is permitted in a url (I've had commas'! - turns out a comma is kinda valid and the plugin should cope with that) and in a file. That said, I am fairly sure that some one has used a facebook calendar - I do not use facebook as my calendar app, so cannot double check. If you had posted your url, I could check that.

    You say that it does not "parse the url" - what makes you say that: ie is there an error message? is your facebook url unusual in some way?

    Possibly this is not what you meant and are rather saying that you do not see any facebook events, so.....

    1) is the facebook url referring to a public ics url - ie can you access it when you are not logged in?
    2) does it have any events within the next 30 days?
    3) the default widget is set to display the first 5 events - if the first 5 events from today belong to the other calendar, then of course the facebook events will not be listed.

    Hope that helps and next time you post a support question, try to post more specific information - it helps others help you quicker.

Topic Closed

This topic has been closed to new replies.

About this Topic