Title: Fatale error
Last modified: May 27, 2020

---

# Fatale error

 *  Resolved [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatale-error-3/)
 * Hi there,
 * since last update of Booking Activities, I get this fatal error:
 * [27-May-2020 12:29:56 UTC] PHP Fatal error: Uncaught Exception: DateTime::__construct():
   Failed to parse time string (16213-09-18 14:29:56) at position 12 (1): Double
   time specification in /wp-content/plugins/booking-activities/functions/functions-
   booking-system.php:1413
    Stack trace: #0 /wp-content/plugins/booking-activities/
   functions/functions-booking-system.php(1413): DateTime->__construct(‘16213-09-
   18 14:…’, Object(DateTimeZone)) #1 /wp-content/plugins/booking-activities/functions/
   functions-booking-system.php(1009): bookacti_is_event_available_on_form(1, 575,‘
   2020-06-17 11:0…’, ‘2020-06-17 12:3…’) #2 /wp-content/plugins/booking-activities/
   controller/controller-woocommerce-frontend.php(532): bookacti_validate_booking_form(‘
   single’, 575, ‘2020-06-17 11:0…’, ‘2020-06-17 12:3…’, 1, 1) #3 /wp-includes/class-
   wp-hook.php(287): bookacti_validate_add_to_cart_and_boo in /var/www/clients/client111/
   web180/web/wp-content/plugins/booking-activities/functions/functions-booking-
   system.php on line 1413

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

 *  Plugin Author [yoancutillas](https://wordpress.org/support/users/yoancutillas/)
 * (@yoancutillas)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatale-error-3/#post-12899180)
 * Hello Aurélien,
 * The error shows that the ending of the availability period is set to year 16213,
   which doesn’t seem to be possible for PHP handle.
 * The values of the availability period were converted from days to seconds when
   you updated from 1.7.x to 1.8.x, so if you have made it several times, it is 
   possible that those values were multiplied several time per 86400, resulting 
   in a very high number.
 * 1.
    Go to Booking Activities > Booking forms > _your form_ > Calendar settings
   > Availability tab and empty the “Events will be bookable in”, “Events are bookable
   for up to”, “Opening” and “Closing” fields
 * 2.
    Similarly, go to Booking Activities > Settings > Cancellation tab and double
   check the “Changes are allowed for bookings starting in at least” option.
 * 3.
    Same in Booking Activities > Calendar editor > _your activity / group category
   settings_ > Availability tab > “Changes are allowed for bookings starting in 
   at least” option
 * Regards,
    Yoan Cutillas
 *  Thread Starter [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatale-error-3/#post-12899258)
 * Hi Yoan,
 * thanks for your quick support, I solves the problem!
 * I’ve made the update using MainWP just one time… can’t explain why this happens
   but anyway it’s seems be solved now. Maybe you could add some additional checks
   to prevent this? 😀
 *  Plugin Author [yoancutillas](https://wordpress.org/support/users/yoancutillas/)
 * (@yoancutillas)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatale-error-3/#post-12899812)
 * Sure, will do in the next release! Thank you for your report

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

The topic ‘Fatale error’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [yoancutillas](https://wordpress.org/support/users/yoancutillas/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/fatale-error-3/#post-12899812)
 * Status: resolved