Support » Plugin: amr ical events lists » Upcoming events (listtype 4) won't display in text/html widget

  • Resolved Aslan1975



    I have been using the amr-ical-events-list plugin for more than one year on a church website. I am currently running version 4.2 on a Norwegian WP v3.6.1 site (recently upgraded from v3.6).

    I use this plugin for two things:
    1. To display upcoming events for the next 7 days in a text/html widget on the main page
    2. To display a largecalendar on a dedicated calendar page.

    Both usages are based on the same ics-file. The calendar page works fine, so I suppose the ics file is ok.

    During the last couple of weeks or so the widget has stopped working. The shortcode is displayed in the widget window:

    [iCal listtype=4 days=7]

    The WP error log displays the following errors from the last week:

    PHP Warning: date_modify() expects parameter 1 to be DateTime, boolean given in /public_html/wp/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php on line 1980

    PHP Warning: date_time_set() expects parameter 1 to be DateTime, boolean given in /public_html/wp/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php on line 2010

    PHP Fatal error: __clone method called on non-object in /public_html/wp/wp-content/plugins/amr-ical-events-list/includes/amr-ical-events-list-main.php on line 2026

    I am no php expert, but it seems to me that there is an issue with the $amr_limits['start'] value in the amr-ical-events-list-main.php file?

    Link to the website:
    PHP version running on webserver: 5.3.22

    Any help with this is highly appreciated. Thanks in advance!


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author anmari


    Hi aslan

    you appear to be using a shortcode in a text widget rather than the plugins upcoming events widget. (See under widgets)
    Using the shortcode in a text widget does not usually work ever unless the theme (or maybe another plugin?) applies the shortcode filter to the text widgets. (That;s why you are just seeing the shortcode. Perhaps you changed themes at some point?

    Try using the ‘real’ upcoming events widget instead.

    2) Re the limits – I develop with all warnings and notices on, and I am not seeing that message – even with a bit of fiddling to try force it. The ‘start’ is setup with lots of checking and backup. also uses global timezone, but that timezone setup also has lots of fallbacks.

    Your calendar page looks fine so I imagine if you use the correct widget and your theme or other pugin is not interfering then that should work too.

    If in doubt, switch debug on and/or when logged in as admin add ?debug to the calendar or widget page and it will list some debug statements. One of which is a dump of the ‘limits’. ‘Start’ is one of the limits – it should show up as an object.

    In your note above the problems starts at line 1980. That only gets executed if there is a ‘startoffset’. Perhaps you were playing around with something? maybe had no timezone set ?
    If you do see any other info please let me know. Right now I cannot create that problem.

    Thanks so much for your help, Anmari! 🙂

    1) I was actually using a text/html widget with shortcode, and it worked – for about one year, that is. 🙂 I guess the reason was that I used the Dandelion theme from Pexeto. And it might have been a theme upgrade that caused this to stop working. Anyways, I will try the Upcoming Events List widget instead. But I can’t get the widget to accept an url to the ics-file? And when I try to use the url to the calendar page on the site, it still doesn’t show anything. What am I doing wrong?

    2) You’re probably right – the error messages might have been caused by me playing around with shortcode settings. No worries. 🙂


    By the way, the url for the calendar page is Is this supposed to work as an url for the upcoming events widget?

    Sorry, I didn’t notice that the url to the external ics file should be entered with the other parameters. Everything all right now. Thanks for your help, Anmari!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upcoming events (listtype 4) won't display in text/html widget’ is closed to new replies.