Problem with plugin
-
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 kCalendarThe 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
You must be logged in to reply to this topic.