Fatal error: Uncaught exception ‘Exception’ with message ‘Error in formating DateTime object. Expected DateTime, but instead given boolean’ in /srv/www/fsi.dev/current/web/app/plugins/event-organiser/includes/event-organiser-utility-functions.php:31 Stack trace: #0 /srv/www/fsi.dev/current/web/app/plugins/event-organiser/includes/event-organiser-utility-functions.php(164): eo_format_datetime(false, ‘F j, Y g:i a’) #1 /srv/www/fsi.dev/current/web/app/plugins/event-organiser/templates/event-meta-event-single.php(53): eo_format_event_occurrence() #2 /srv/www/fsi.dev/current/web/wp/wp-includes/template.php(574): require(‘/srv/www/fsi.de…’) #3 /srv/www/fsi.dev/current/web/app/plugins/event-organiser/includes/event-organiser-templates.php(96): load_template(‘/srv/www/fsi.de…’, false) #4 /srv/www/fsi.dev/current/web/app/plugins/event-organiser/includes/event-organiser-templates.php(41): eo_locate_template(Array, true, false) #5 /srv/www/fsi.dev/current/web/app/plugins/event-organiser/includes/event-organiser-templates.php(31 in /srv/www/fsi.dev/current/web/app/plugins/event-organiser/includes/event-organiser-utility-functions.php on line 31
Chris Plummer
Hi Chris,
This can happen if there are no dates associatd with the event. Can you confirm that it does and that these appear on the admin calendar?
If it does, then its possible another plugin is altering the MySQL query – one way of checking this is to use the Query Monitor plugin which will list all queries, if you can find the ‘main’ query (it should involve the eo_events table) that might indicate if the query is not correctly formed.
Stephen Harris
Hi Stephen,
Thanks for reply.
I’ve set things up to use custom templates and now don’t see this error any more.
Chris Plummer