• Resolved Be Clicked Agency

    (@beclickedagency)


    Hi,

    I’m experiencing a critical error with the LittleBig Universal CalDAV for FluentBooking plugin that appeared after a recent FluentBooking update.

    Here is the exact error from the PHP logs:

    FluentBookingCalDav\Http\GlobalSettingsController::getBookedSlots(): Argument #5 ($host_id) must be of type ?int, string given, called in wp-includes/class-wp-hook.php on line 341 in littlebig-universal-caldav-for-fluentbooking/app/Http/GlobalSettingsController.php:209

    The issue occurs when trying to add a new booking manually from the FluentBooking admin panel. The REST API endpoint returns a 500 error and the booking modal fails to load available time slots.

    Environment:
    WordPress 7.0.2
    PHP 8.3
    FluentBooking 2.2.0
    LittleBig Universal CalDAV for FluentBooking 1.0.1
    Hosting: Infomaniak (shared hosting)
    CalDAV server: Infomaniak kCalendar

    The plugin is passing an empty string ” as $host_id instead of an integer or null, which causes a fatal type error in PHP 8.x strict mode.

    The fix would be to cast $host_id to int or null before passing it to the FluentBooking filter in GlobalSettingsController.php line 209.

    This is blocking our clients from managing their bookings. Could you please look into this and release a fix?

    Thank you!

    Eric

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author André Daus

    (@adcgn)

    Thanks for the detailed report, the exact PHP log line made this easy to track down.

    You called it correctly: it’s a PHP 8 type-strictness issue. FluentBooking 2.2.0 changed how the “add booking manually” admin panel resolves the host before the time slots are fetched, and in that flow it’s now passing an empty string instead of an integer or null into one of the hooks this plugin implements. Since the plugin runs under strict_types, PHP won’t coerce that empty string into the expected type and the request fails with a 500 instead of falling back gracefully.

    Fixed in 1.0.2, just released. I also hardened four other hook callbacks with the same pattern so the same class of error can’t resurface somewhere else if FluentBooking’s admin panel changes again.

    Please update to 1.0.2 and try adding a booking manually again. Let me know if you still see the error or anything else comes up.

    Thread Starter Be Clicked Agency

    (@beclickedagency)

    Hi André !

    It’s working perfectly now !!
    Many thanks for this quick fix and your efficiency !

    Kind regards
    Eric

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

You must be logged in to reply to this topic.