• 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

    (@yoancutillas)

    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

    (@maigret)

    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

    (@yoancutillas)

    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.