Title: fatal error : Error in formating DateTime object. Expected DateTime, but instead
Last modified: April 7, 2023

---

# fatal error : Error in formating DateTime object. Expected DateTime, but instead

 *  [jbonlinea](https://wordpress.org/support/users/jbonlinea/)
 * (@jbonlinea)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-error-in-formating-datetime-object-expected-datetime-but-instead/)
 * Hi there,
 * I got a fatal error on the page of single event for every new event created, 
   the older event are still ok.
 * it is as the date time field are seen as a bolean ?!
 * but how could it be so.
 * Any help would be greatly appreciated
 * Cheers
 * `**Fatal error**: Uncaught Exception: Error in formating DateTime object. Expected
   DateTime, but instead given boolean in /home/www/wp-content/plugins/event-organiser/
   includes/event-organiser-utility-functions.php:31 Stack trace: #0 /home/www/wp-
   content/plugins/event-organiser/includes/event-organiser-utility-functions.php(
   164): eo_format_datetime(false, 'F j, Y g:i a') #1 /home/www/wp-content/plugins/
   event-organiser/templates/event-meta-event-single.php(53): eo_format_event_occurrence()#
   2 /home/www/wp-includes/template.php(785): require('/home/www/w...') #3 /home/
   www/wp-content/plugins/event-organiser/includes/event-organiser-templates.php(
   96): load_template('/home/www/w...', false) #4 /home/www in **/home/www/wp-content/
   plugins/event-organiser/includes/event-organiser-utility-functions.php** on line**
   31**`

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

 *  [gabriellesiqueira10](https://wordpress.org/support/users/gabriellesiqueira10/)
 * (@gabriellesiqueira10)
 * [3 years ago](https://wordpress.org/support/topic/fatal-error-error-in-formating-datetime-object-expected-datetime-but-instead/#post-16777452)
 * estou com esse mesmo problema e ainda nÃo achei a solução
 *  [timdossantos](https://wordpress.org/support/users/timdossantos/)
 * (@timdossantos)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-error-in-formating-datetime-object-expected-datetime-but-instead/#post-16892271)
 * Hi, I get the same error. Can someone of the plugin authors look into this please?
 * Cheers, Tim
 *  [fooey](https://wordpress.org/support/users/fooey/)
 * (@fooey)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-error-in-formating-datetime-object-expected-datetime-but-instead/#post-17192345)
 * Same error in error log as well as “There has been a critical error on this website.”
   when trying to visit any category pages. It does not seem there is support for
   this plugin any longer. Haven’t seen a reply in months.
 *  [timdossantos](https://wordpress.org/support/users/timdossantos/)
 * (@timdossantos)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-error-in-formating-datetime-object-expected-datetime-but-instead/#post-17192366)
 * I was able to monkeypatch the error away, but since some days it returned 🙁

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

The topic ‘fatal error : Error in formating DateTime object. Expected DateTime, 
but instead’ is closed to new replies.

 * ![](https://ps.w.org/event-organiser/assets/icon-256x256.png?rev=978123)
 * [Event Organiser](https://wordpress.org/plugins/event-organiser/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-organiser/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-organiser/)
 * [Active Topics](https://wordpress.org/support/plugin/event-organiser/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-organiser/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-organiser/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [timdossantos](https://wordpress.org/support/users/timdossantos/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-error-in-formating-datetime-object-expected-datetime-but-instead/#post-17192366)
 * Status: not resolved