Error message on bookable node types

Created on 29 December 2020, over 4 years ago
Updated 23 October 2023, over 1 year ago

Problem/Motivation

I have installed BEE 8.x 1.x-dev on a Drupal 9.1.0 site.
Service module is patched, as proposed.
BAT and BAT API are in stalled in their latest versions.

Steps to reproduce

Install BEE and it dependencies.
Make any node type bookable
Try to book it at url node/*/add-reservation

Than this error message shows up:
Error: Call to undefined function Roomify\Bat\Store\db_query() in Roomify\Bat\Store\DrupalDBStore->getEventData() (line 36 of modules/bat/lib/roomify-bat/1.2.0/src/Store/DrupalDBStore.php).
Roomify\Bat\Store\DrupalDBStore->getEventData(Object, Object, Array) (Line: 188)
Roomify\Bat\Calendar\AbstractCalendar->getEventsItemized(Object, Object) (Line: 89)
Roomify\Bat\Calendar\AbstractCalendar->getEvents(Object, Object, 1) (Line: 107)
Roomify\Bat\Calendar\AbstractCalendar->getStates(Object, Object, 1) (Line: 141)
Roomify\Bat\Calendar\AbstractCalendar->getMatchingUnits(Object, Object, Array, Array, , 1) (Line: 948)
bat_event_get_matching_units_from_calendar(Object, Object, Object, Array, ) (Line: 889)
bat_event_get_matching_units(Object, Object, Array, '2', 'availability_daily') (Line: 579)
Drupal\bee\Form\AddReservationForm->getAvailableUnits('77', Object, Object) (Line: 273)
Drupal\bee\Form\AddReservationForm->validateForm(Array, Object)
call_user_func_array(Array, Array) (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object) (Line: 273)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'bee_add_reservation_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('bee_add_reservation_form', Array, Object) (Line: 589)
Drupal\Core\Form\FormBuilder->processForm('bee_add_reservation_form', Array, Object) (Line: 321)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 42)
Drupal\bat_api\StackMiddleware\BatApiMiddleware->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 44)
Drupal\services\StackMiddleware\FormatSetter->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 706)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Proposed resolution

Is there any solution for this? I allready uninstalled all modules and installed it again.
The roomify library ist installed at modules/bat/lib/roomify-bat/1.2.0

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇩🇪Germany designwork

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024