• Resolved Harris O.

    (@hfort)


    After updating the plugin to 2.13.7, the full calendar gets stuck on loading. I could pinpoint the issue to the file class-eventorganiser-shortcodes.php lines 419 to 432. If I replace those lines to the way it was on version 2.13.6, the calendar loads fine.
    Here is the currently code on 2.13.7 and causes the calendar get stuck:

    static function print_script() {
    if ( ! self::$add_script ) {
    return;
    }
    $terms = get_terms( 'event-category', array( 'hide_empty' => 0 ) );
    $fullcal = (empty(self::$calendars) ? array() : array(
    'firstDay'=>intval(get_option('start_of_week')),
    'venues' => get_terms( 'event-venue', array('hide_empty' => 0)),
    'categories' => $terms,
    'tags' => get_terms( 'event-tag', array('hide_empty' => 1)),
    ));

    The way it was on 2.13.6 and the calendar loads fine:

    static function print_script() {
    global $wp_locale;
    if ( ! self::$add_script ) return;
    $_terms = get_terms( 'event-category', array('hide_empty' => 0));
    $terms = array();
    while ( $term = array_shift( $_terms ) ){
    $terms[$term->term_id] = $term;
    }
    $fullcal = (empty(self::$calendars) ? array() : array(
    'firstDay'=>intval(get_option('start_of_week')),
    'venues' => get_terms( 'event-venue', array('hide_empty' => 0)),
    'categories' => $terms,
    'tags' => get_terms( 'event-tag', array('hide_empty' => 1)),
    ));

    my WP Debug show no errors. The memory limit is set to 256M.
    Right now I’m using the way it was on 2.13.6 but I’m afraid it will inherit the issue again with the next update.

    Any help is really appreciated!
    Thanks.

    https://wordpress.org/plugins/event-organiser/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Harrison,

    How are you using the shortcode? I’m not sure if this is what you mean by WP Debug, but did you see any errors in your browser console? If not, did you know what the ajax response was?

    Many thanks,
    Stephen

    Thread Starter Harris O.

    (@hfort)

    Hi Stephen,
    Thanks for mentioning about the shortcode. After playing with it I found out that removing the category filter list, the calendar loads fine.

    This is what I had and it stopped working with the latest version.

    [eo_fullcalendar headerLeft='prev,next today' headerCenter='title' headerRight='category' category='adults,closed-days,kids,teens,general,large-meeting-room,small-meeting-room' ]

    Here is what I have now and it works.

    [eo_fullcalendar headerLeft='prev,next today' headerCenter='title' headerRight='category']

    I’ve no idea why the filter is not working inside the shortcode but I’m fine removing it.

    Thanks for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calendar Stuck on Loading after update to 2.13.7’ is closed to new replies.