Hello,

Be it on simplytest.me or local installation, as soon as I try a content type Article or new content type with BEE enabled (default options), I get the following error in the report:

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "bee.node.availability" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 201 of C:\wamp64\www\drupaldemo\core\lib\Drupal\Core\Routing\RouteProvider.php).

The content is created but can't be displayed.

Kind regards,

Comments

Kaory created an issue. See original summary.

lyjab’s picture

Assigned: lyjab » Unassigned
geek-merlin’s picture

Priority: Major » Critical

Same thing here.

Also a white screen on Cache clear


Error: Call to a member function getDefinitions() on null in Drupal\services\Plugin\Deriver\EntityDelete->getDerivativeDefinitions() (line 17 of /home/d03u7/www/modules/contrib/services/src/Plugin/Deriver/EntityDelete.php) #0 /home/d03u7/www/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(101): Drupal\services\Plugin\Deriver\EntityDelete->getDerivativeDefinitions(Array) #1 /home/d03u7/www/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(87): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) #2 /home/d03u7/www/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(284): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() #3 /home/d03u7/www/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(175): Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() #4 /home/d03u7/www/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(22): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() #5 /home/d03u7/www/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php(59): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('calendar_events...', false) #6 /home/d03u7/www/modules/contrib/services/src/Entity/ServiceResource.php(169): Drupal\Core\Plugin\DefaultPluginManager->hasDefinition('calendar_events...') #7 /home/d03u7/www/modules/contrib/services/src/Entity/ServiceResource.php(151): Drupal\services\Entity\ServiceResource->hasServicePlugin() #8 /home/d03u7/www/modules/contrib/services/src/Routing/ServiceEndpoint.php(23): Drupal\services\Entity\ServiceResource->createServicePluginInstance() #9 [internal function]: Drupal\services\Routing\ServiceEndpoint->routes() #10 /home/d03u7/www/core/lib/Drupal/Core/Routing/RouteBuilder.php(146): call_user_func(Array) #11 /home/d03u7/www/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild() #12 /home/d03u7/www/core/includes/common.inc(1160): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() #13 /home/d03u7/www/core/modules/system/src/Form/PerformanceForm.php(192): drupal_flush_all_caches() #14 [internal function]: Drupal\system\Form\PerformanceForm->submitCacheClear(Array, Object(Drupal\Core\Form\FormState)) #15 /home/d03u7/www/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) #16 /home/d03u7/www/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #17 /home/d03u7/www/core/lib/Drupal/Core/Form/FormBuilder.php(589): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #18 /home/d03u7/www/core/lib/Drupal/Core/Form/FormBuilder.php(318): Drupal\Core\Form\FormBuilder->processForm('system_performa...', Array, Object(Drupal\Core\Form\FormState)) #19 /home/d03u7/www/core/lib/Drupal/Core/Controller/FormController.php(93): Drupal\Core\Form\FormBuilder->buildForm('system_performa...', Object(Drupal\Core\Form\FormState)) #20 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #21 /home/d03u7/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #22 /home/d03u7/www/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #23 /home/d03u7/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #24 /home/d03u7/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #25 /home/d03u7/www/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #26 /home/d03u7/www/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #27 /home/d03u7/www/modules/contrib/bat_api/src/StackMiddleware/BatApiMiddleware.php(44): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /home/d03u7/www/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Drupal\bat_api\StackMiddleware\BatApiMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /home/d03u7/www/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /home/d03u7/www/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #31 /home/d03u7/www/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 /home/d03u7/www/modules/contrib/services/src/StackMiddleware/FormatSetter.php(44): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #33 /home/d03u7/www/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\services\StackMiddleware\FormatSetter->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #34 /home/d03u7/www/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #35 /home/d03u7/www/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #36 /home/d03u7/www/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #37 /home/d03u7/www/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #38 {main}.

geek-merlin’s picture

It looks like the routing table can not be built s-off some problem with the services module.


Drupal\Core\Plugin\DefaultPluginManager->hasDefinition('calendar_events_index:calendar-events') (Line: 169)
Drupal\services\Entity\ServiceResource->hasServicePlugin() (Line: 151)
Drupal\services\Entity\ServiceResource->createServicePluginInstance() (Line: 23)
Drupal\services\Routing\ServiceEndpoint->routes()
call_user_func(Array) (Line: 146)
Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 83)

Anonymous’s picture

I managed to find the problem in services which fixes the problem when you already have a running system however it unearthed a new problem that you can't install or uninstall the module.

I posted a patch here:

https://www.drupal.org/project/services/issues/3031777

...and there's ongoing discussion about where the problem lies, it seems the latter problems are back with bee/bat/bat_api somewhere...

acrollet’s picture

Status: Active » Closed (works as designed)

looks like this is fixed with the latest versions of services and ctools, c.f. https://www.drupal.org/project/services/issues/3031777#comment-13070372

belba’s picture

I am getting the follow error when I try to make the content type bookable :

The website encountered an unexpected error. Please try again later.
Error: Call to a member function id() on boolean in bee_node_type_edit_form_submit() (line 342 of modules\contrib\bee\bee.module).

I copy here line 342 from the bee.module and the following two lines aswell :

$bat_type->set('field_availability_' . $bee_settings['bookable_type'], $state->id() );

      bat_type_save($bat_type);

      $bee_settings['type_id'] = $bat_type->id();
acrollet’s picture

@Belba please open a new issue with steps to reproduce with the latest dev releases of BEE and BAT, thanks!