• I was updating my events and noticed all events after July 6th are not showing up in the events?calendar.?I have double checked that all the events after July 6th are published and for public.

    • This topic was modified 5 months, 1 week ago by marcyong.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 19 total)
  • joneiseman

    (@joneiseman)

    Looks like scope parameter is being specified for the calendar. For example the following shortcode would result in this calendar display:

    [events_calendar scope="2024-05-26,2024-07-06"]

    Or perhaps a filter is being used to add the scope:

    add_filter('em_get_calendar_get_args', function($args) {
    $args['scope'] = "2024-05-26,2024-07-06";
    return $args;
    });
    reneegoodog

    (@reneegoodog)

    Hello, I am also experiencing this on the calendar i.e. no events show on calendar from July 2024 (previously all were shown) even though 17 events are published. This started approx. 3 weeks ago and I thought it may resolve itself with new updates but it has not.

    Thank you!

    thewebtailors

    (@thewebtailors)

    I had the same issue after upgrading to 6.4.8. Also today’s 6.4.9 update did not help. After reverting back to 6.4.7.3 it loads again the events that are not on the first page of the calendar. It almost looks like the AJAX load stopped working.

    reneegoodog

    (@reneegoodog)

    Also, rolling back to 6.4.7.3 resolves the issue for me. But I have reinstalled the latest (6.4.9) to show this issue to admins.

    Hi @reneegoodog,

    How did you generate the table?

    I was not able to reproduce this problem on my website but I think the problem is related to the following change in classes/em-calendar.php in 6.4.8:

    232c256
    < $scope = $args['scope'] === 'future' ? 'future' : null;
    ---
    > $scope = $args['scope'] ? $args['scope'] : null;

    This code (prior to the change) was probably to hide a bug in how it was setting the scope in certain cases. Undoing the change causes the bug to show up again. Until the plugin owner fixes this problem, I think you can workaround the problem using the following code snippet:

    add_filter('em_calendar_get_args', function( $args ) {
    $args['scope'] = 'future';
    return $args;
    });

    You can add this code snippet using the Codes Snippets plugin.

    I can confirm that this code fixed it for me. Thanks @joneiseman !

    Hi @joneiseman

    I believe you mean the booking tables above the calendar? I made this with blocks. This is not auto-generated and I update when new events are added and remove older dates. Initial set-up takes a little bit of time but thereafter events are added/removed quickly. Sections of the page are divided by a column (x2 columns – 55/45 split). 4 column table added to left bock column. You can work out the dates, location link and booking links but the image on each entry is 75×75. The table shows well on laptops/large phones but smaller phones need to be rotated. It’s not a huge issue but will be tackled in our next design update. Let me know if you have any more questions or suggestions.

    Thanks for your interest ??

    I added the snippet to my functions.php – changed “future” to “all” and everything is now showing.

    • This reply was modified 4 months, 3 weeks ago by GratefulDeb.

    Hello, after a few days of the issue resolving, some future events are now not showing on the calendar. Weirdly some are i.e. only 1 month in the future but beyond that none. Can this be looked at again?

    Thank you!

    • This reply was modified 4 months, 2 weeks ago by reneegoodog.

    Hopefully, @msykes will fix this in the next release. Meanwhile, you can use my workaround.

    Plugin Author Marcus

    (@msykes)

    @joneiseman thanks for the input. I’m testing this out myself as well, and I’m not able to reproduce this either. For example, the demo site works fine on latest update – https://eventsmanager.site/calendar/

    Clearly, there is some odd behaviour of some kind, given more than one person is reporting this issue, but I’m not able to reproduce this yet. I’m not able to implement a fix without reproducing things, the suggested patch won’t work because it’ll undo the ability to have custom scopes in a calendar, previously it was only ‘all’ or ‘future’.

    This is likely either a specific setting combination of some sort, or otherwise a specific way you’re all generating the calendar.

    Trying a few things, but meantime if anyone could provide the exact shortcode they’re using, or specifically how they’re outputting a calendar (widget, code some other way)?

    Hi @msykes, I was still not able to reproduce the problem. But I think it’s related to having multiple shortcodes on the same page. Create a page with the following two shortcodes and you’ll see templates/calendar/calendar.php is picking up $args from the events_list shortcode.

    [events_list scope="2024-07-07,2024-08-06"]
    [events_calendar]

    Here’s a partial dump of $args:

        [scope] => Array
    (
    [0] => 2024-07-01
    [1] => 2024-08-04
    [name] => 2024-07-01,2024-08-04
    )

    [search_scope] => 1
    [scope_label] => Dates
    [scope_seperator] => and
    [scope_format] => M j
    [search_scope_advanced] => 1
    [scope_label_advanced] => Dates
    [scope_seperator_advanced] => and
    [scope_format_advanced] => M j
    Plugin Author Marcus

    (@msykes)

    @joneiseman thanks for persisting! I’ve tried that and for me in EM_Calendar::get() the $args is as expected. Where do you get that $args dump from ?

    I added the following in the file events-manager/templates/calendar/calendar.php:

    error_log("args:" . print_r($args, true));

    If you look at the html generated for the calendar on the page with these two shortcodes you will see the following:

    <div class="em pixelbones em-calendar preview-modal responsive-dateclick-modal this-month size-large" data-scope="2024-07-01,2024-08-04" data-preview-tooltips-trigger="" id="em-calendar-2155" data-view-id="958951136" data-view-type="calendar">

    Seems like $args should be re-initialized before executing the events_calendar shortcode.

Viewing 15 replies - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.