• Warren

    (@rabbitwordpress)


    Hi there,

    I have noticed an error in the server logs while investigating a Google Console Coverage > Server error (5xx)

    Here is the server error log:

    [23-Feb-2021 09:00:35 UTC] PHP Fatal error:  Uncaught Exception: Error in formating DateTime object. Expected DateTime, but instead given boolean in .../wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php:31
    Stack trace:
    
    #0 .../wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php(164): eo_format_datetime(false, 'jS F Y g:i a')
    
    #1 .../wp-content/plugins/event-organiser/templates/event-meta-event-single.php(53): eo_format_event_occurrence()
    
    #2 .../wp-includes/template.php(732): require('/home/frodsham/...')
    
    #3 .../wp-content/plugins/event-organiser/includes/event-organiser-templates.php(96): load_template('/home/frodsham/...', false)
    
    #4 .../wp-content/plugins/event-organiser/includes/event-organiser-templates.php(41): eo_locate_template(Array, true, false)
    
    #5 .../wp-content/plugins/event-organiser/includes/event-organiser-templates.php(311 in .../wp-content/plugins/event-organiser/includes/event-organiser-utility-functions.php on line 31

    Here is the url: https://frodsham.gov.uk/events/event/extraordinary-meeting-of-frodsham-town-council-5-copy/

    Is there a way to fix this please?

    Many thanks!

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

    (@stephenharris)

    Hi,

    This can happen if the event doesn’t have any dates associated with it. (The plug-in generally prevents you from creating events without any dates, so I’m not sure how this has happened).

    To work around it you can try to update the event by changing its dates and back again. Or deleting and creating the event a new.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal error: Uncaught Exception: Error in formating DateTime object.’ is closed to new replies.