• Resolved ethanb40

    (@ethanb40)


    We’re getting a critical error in the event list. The debug log says:

    PHP Fatal error:  Uncaught Error: Call to a member function format() on null in /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/src/views/v2/list/event/date.php:23
    Stack trace:
    #0 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Template.php(1059): include()
    #1 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Template.php(910): Tribe__Template->template_safe_include()
    #2 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/src/views/v2/list/event.php(35): Tribe__Template->template()
    #3 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Template.php(1059): include('/mnt/data/home/...')
    #4 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Template.php(910) in /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/src/views/v2/list/event/date.php on line 23

    We updated to the latest version (5.16.4 – just released yesterday) which specifically mentioned a fix related to date formatting. On visiting the events page, all seemed right initially, but the error returned on refreshing the page. Tried changing the abbreviated date format to other things, but experience the same behavior. Loom recording available on request.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter ethanb40

    (@ethanb40)

    Correction: the problem occurs on an event category page, not the primary events page: https://www.snu.edu/snu-events-calendar/category/admissions-event/

    Plugin Support WilloftheD

    (@abzlevelup)

    Hi @ethanb40, thanks for providing more information, and sorry to hear about this. It seems you are using PHP 8, which is still incompatible with our plugins. See the article here: https://theeventscalendar.com/knowledgebase/k/php-8-support/.

    If so, we’d recommend you downgrade to PHP 7.4 — it would be best to use this version, which we fully support.

    Looking forward to hearing from you and helping you further with this one.

    Best,
    Abz

    Thread Starter ethanb40

    (@ethanb40)

    Hello Abz,

    I previously marked this as resolved after seeing your message, but I was just able to confirm the server is already running PHP 7.4. Please advise.

    • This reply was modified 3 years, 9 months ago by ethanb40.
    Plugin Support WilloftheD

    (@abzlevelup)

    Hi @ethanb40, sorry to hear about this, and thanks for confirming that you’re using PHP7.4. I’m curious, this could be intermittent since I can’t replicate the issue on your website. Have you tried clearing server-side caching with Cloudways? See if that makes a difference. Please do clear plugin and browser caching if you have any.

    Let me know how it goes on your end.

    Best,
    Abz

    Thread Starter ethanb40

    (@ethanb40)

    Hello Abz,

    If it doesn’t occur initially, usually reloading or revisiting the page will show the critical error. To clarify again, the issue doesn’t seem to be isolated to any single page/view. We get the same error on the event single view too:

    PHP Fatal error:  Uncaught Error: Call to a member function format() on null in /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/iCalendar/Links/Google_Calendar.php:145
    Stack trace:
    #0 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/src/functions/template-tags/ical.php(57): Tribe\Events\Views\V2\iCalendar\Links\Google_Calendar->generate_single_url()
    #1 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/src/Tribe/iCal.php(141): tribe_get_gcal_link()
    #2 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-includes/class-wp-hook.php(307): Tribe__Events__iCal->single_event_links()
    #3 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #4 /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
    #5 /mnt/data/home/728901. in /mnt/data/home/728901.cloudwaysapps.com/hqfbtcjsjq/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/iCalendar/Links/Google_Calendar.php on line 145

    It seems to be similar to this recent thread. This doesn’t seem to be an isolated issue or due to external factors, so please see that this is brought to your devs’ attention.

    Plugin Support WilloftheD

    (@abzlevelup)

    Hi @ethanb40, thanks for confirming. This is definitely weird. I reached out to the team and I’d get back to you whenever I hear from them. As a workaround, please try reverting to the last working version of the plugin.

    Appreciate your patience here.

    Best,
    Abz

    Plugin Support WilloftheD

    (@abzlevelup)

    Hi @ethanb40, thank you for your patience here. This looks like a bug in our plugin with REDIS. We already have an internal bug ticket for this, and I have added your case to it. Thanks for all the details, I will definitely pass it along to our devs.

    Moreover, this explains why the object is missing critical properties.

    I am unable to provide an exact date or time estimate for when this bug will be fixed, but you’ll be notified when there are any updates.

    Appreciate your patience, and we’re looking forward to helping you solve this. If you do have other concerns or issues you need help with, please create another ticket, as it helps us track different issues.

    Again, thank you for your patience.

    Cheers,
    Abz
    ________________________

    Internal Bug Ticket Reference:
    TEC-4379

    Hi there,

    We’re back with good news for you.

    Our developers fixed the issues between the Events Calendar and Object Cache!

    Please update your Events Calendar plugin to version 6.0.3.1 to apply those fixes to your site.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Critical Error related to Date Format’ is closed to new replies.