Event Calendar
Bug in Eventlist shortcode (6 posts)

  1. chrisHe
    Posted 2 years ago #

    I believe there is a bug in the Eventlist shortcode.
    Running WordPress 3.5.1 and Calendar version 1.0.4.
    Example to reproduce the bug: create 5 or 6 events, starting in a previous week to "now", each repeating at weekly intervals. Then add a new TEST event starting "tomorrow". With a shortcode of [[eventlist end="+5 Weeks" limit=5] the TEST event will not show, although it IS present in the calendar.
    Increase the LIMIT to 10 and the TEST event will now show in the correct date order.

    Please, authors, fix this bug, which is due to a problem in function db_query_events()

    I have found a temporary fix is to increase the LIMIT for the SQL query (only) by hacking the code, but of course this is not good practice, and this is offered with NO guarantee, as I am not the author!
    hack: to ajax-event-calendar.php at line 793
    So the hacked code should look like this

    $limit = $limit *4; // temp bugfix add this to increase limit here
    $events	= $this->db_query_events($start, $end, $categories, $excluded, $limit);
    $limit = intval($limit/4); // temp bugfix add this to restore limit


  2. chrisHe
    Posted 2 years ago #

    Update, just to be clear on my 3 line patch:
    The 3 lines above should REPLACE the one original line. (so don't leave the original below the patch or it will not have any effect!)

  3. chrisHe
    Posted 2 years ago #

    P.S. If you want to see it working, my site can have up to many events in a week, most repeating with occasional "one only" (I display a max of 8 in the sidebar) see http://budworthsc.org.uk and compare the Upcoming Events with the full page calendar (link just above in the sidebar!)

    Posted 1 year ago #

    thanks a lot for this post!
    I'm wondering why the author of the aec plugin is not able to fix this issue/bug. The "[eventlist]" functionality in a widget is currently not usable 'cause of this bug.

    kind regards!

  5. chrisHe
    Posted 1 year ago #

    Don't know, but I switched to a different calendar plugin, which I find extremely good! (http://wp-event-organiser.com/ by Stephen Harris)
    Good luck!

  6. chrisHe
    Posted 1 year ago #

    Your welcome, altho don't follow this plugin, as I use another (http://wp-event-organiser.com/ by Stephen Harris) which I find extremely good!
    Best Wishes

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic