Error on page: single-event.php

This topic contains 2 replies, has 2 voices, and was last updated by  Chris Plummer 7 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24052

    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
    #24073

    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
    #24079

    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
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.