Forums

[Plugin: AmR iCal Events List] Warnings and fatal errors (5 posts)

  1. hlietz
    Member
    Posted 2 years ago #

    Since the last update (latest version: 2.5.7) I've had some error warnings on both of my websites I'm using the plugin. Strange: Sometimes it works (no error), sometimes it doesn't ...

    Website 1:
    Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in /home/xxx/public_html/xx/wp-content/plugins/amr-ical-events-list/amr-ical-events-list.php on line 209

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

    Website 2:
    Warning: get_headers() [function.get-headers.php]: URL file-access is disabled in the server configuration in /home/xxx/www/xxx/wordpress/wp-content/plugins/amr-ical-events-list/amr-import-ical.php on line 92

    Warning: get_headers() [function.get-headers.php]: This function may only be used against URLs. in /home/xxx/www/xxx/wordpress/wp-content/plugins/amr-ical-events-list/amr-import-ical.php on line 92

  2. anmari
    Member
    Posted 2 years ago #

    It is to do with when it decides it needs to refresh the cache iere-fetch the ical file, which is why you only see it sometimes.

    The plugin is attempting to check whether the ical file has been updated. It seems your server disables url access, so the get header is failing.

    Similar problem here, with a quick fix if you have access to your php.ini: http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html

    When I have a few moments, I'll see what we can do for those who have url access blocked, or perhaps remove the check.

    Another workaround :
    1) set a really long cache period (see plugin settings)
    2) when you add or update an event, manually refresh the ical file
    http://icalevents.anmari.com/1814-refresh-calendar-if-new-dates-not-showing/

  3. hlietz
    Member
    Posted 2 years ago #

    Thanks for your reply. The strange thing is that (if I'm right) I have not had these problems before (the last update?). And sometimes it's working ... I'll check your solutions.

  4. h.lietz
    Member
    Posted 2 years ago #

    Website 2 (see above) seems to work since you last updates, thanks!
    But I still get the following error-message using my other website (hosted on a different server):
    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
    Is there a solution (something I can try or future update) to solve this problem?

  5. anmari
    Member
    Posted 2 years ago #

    Hmm - again that is something to with the time of last cache. It tries to show the last cache time under the refresh icon. - somehow it has a boolean value for the last cache time ?

    If you send me a link by email anmari@anmari.com to your second server where this is happening, I may have time to look at why your is different.

Topic Closed

This topic has been closed to new replies.

About this Topic