Fresh install issues

Created on 26 March 2024, 8 months ago
Updated 12 April 2024, 8 months ago

Problem/Motivation

I'm installing Bee Hotel on Drupal 10.2 fresh install.

Here's the error displaying on every pages

Error message : Deprecated function: Creation of dynamic property Drupal\bee_hotel\Util\BeeHotel::$config is deprecated in Drupal\bee_hotel\Util\BeeHotel->__construct() (line 75 of modules/contrib/bee_hotel/src/Util/BeeHotel.php).

Drupal\bee_hotel\Util\BeeHotel->__construct(Object, Object, Object, Object, Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'bee_hotel.util.beehotel') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('bee_hotel.util.beehotel') (Line: 197)
Drupal::service('bee_hotel.util.beehotel') (Line: 18)
bee_hotel_page_attachments(Array) (Line: 311)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}(Object, 'bee_hotel') (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('page_attachments', Object) (Line: 67)
Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAllWith('page_attachments', Object) (Line: 308)
Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array) (Line: 285)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 284)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 39)
Drupal\bat_api\StackMiddleware\BatApiMiddleware->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 45)
Drupal\services\StackMiddleware\FormatSetter->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 49)
Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Followed install steps :
/contributed-module-documentation/bee-hotel/bee-hotel-install

#2 I looked up litepicker.js online. couldn't find it. can you add a link please ?

#3 Skipped

#4 could not enable beehotel_pricealterators
error :

In UnmetDependenciesException.php line 100:
                                                                                        
  Configuration objects provided by <em class="placeholder">beehotel_pricealterators</  
  em> have unmet dependencies: <em class="placeholder">field.field.node.special_night.  
  field_unit_ct (node.type.unit_ct)</em>                                                
                                                            

/contributed-module-documentation/bee-hotel/bee-hotel-commerce-setup

Went to /admin/commerce. I notice the bee in the corner, Great landing page, great job !

/store/add/online, created a shop and the error above appeared on every pages since.

I also have a Warning message
Please check json your setting at Season input

I won't be using alternated prices, so no season. same price all year
I don't want to use this fonction, I won't be using alternated prices, so no season. same price all year

Looking at "Bee" available modules, I noticed:
bee_hotel
Requires : Bee Hotel
Required by : Bee Hotel
beehotel_pricealterator
Requires : Bee Hotel Price Alterator
Required by : Bee Hotel Price Alterator

why do you need the module to be auto required ?
how can it be disabled ?

I tried to enable beehotel_pricealterators from /admin/modules
does not work

Went through that part all working.

then /contributed-module-documentation/bee-hotel/bee-hotel-bat-module-configuration all good

started contributed-module-documentation/bee-hotel/bee-hotel-content-type-structure

until -- E). Create your first Unit node
I get a big white screen with this website has encountered an unexpected error.

I named my unit content type formules_bee.

Referrer /node/add/formules_bee

InvalidArgumentException: Field field_occupancy is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 616 of /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).
#0 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php(597): Drupal\Core\Entity\ContentEntityBase->getTranslatedField('field_occupancy', 'x-default')
#1 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/modules/contrib/bee_hotel/src/Util/BeeHotelUnit.php(405): Drupal\Core\Entity\ContentEntityBase->get('field_occupancy')
#2 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/modules/contrib/bee_hotel/src/Form/BookThisUnitForm.php(203): Drupal\bee_hotel\Util\BeeHotelUnit->maxOccupancy(Object(Drupal\node\Entity\Node))
#3 [internal function]: Drupal\bee_hotel\Form\BookThisUnitForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
#4 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array(Array, Array)
#5 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Form/FormBuilder.php(283): Drupal\Core\Form\FormBuilder->retrieveForm('bee_hotel_book_...', Object(Drupal\Core\Form\FormState))
#6 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Form/FormBuilder.php(224): Drupal\Core\Form\FormBuilder->buildForm('Drupal\\bee_hote...', Object(Drupal\Core\Form\FormState))
#7 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/modules/contrib/bee_hotel/bee_hotel.module(159): Drupal\Core\Form\FormBuilder->getForm('Drupal\\bee_hote...')
#8 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(52): bee_hotel_node_view(Array, Object(Drupal\node\Entity\Node), Object(Drupal\Core\Entity\Entity\EntityViewDisplay), 'full')
#9 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler::Drupal\hook_event_dispatcher\{closure}(Object(Closure), 'bee_hotel')
#10 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(67): Drupal\Core\Extension\ModuleHandler->invokeAllWith('node_view', Object(Closure))
#11 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(51): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAllWith('node_view', Object(Closure))
#12 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(287): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAll('node_view', Array)
#13 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(238): Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array)
#14 [internal function]: Drupal\Core\Entity\EntityViewBuilder->build(Array)
#15 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(111): call_user_func_array(Array, Array)
#16 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Render/Renderer.php(859): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#17 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Render/Renderer.php(421): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
#18 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#19 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(238): Drupal\Core\Render\Renderer->render(Array, false)
#20 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#21 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(231): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#22 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#23 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#24 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#25 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#26 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#27 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#28 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/modules/contrib/bat_api/src/StackMiddleware/BatApiMiddleware.php(39): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Drupal\bat_api\StackMiddleware\BatApiMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/modules/contrib/services/src/StackMiddleware/FormatSetter.php(45): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#36 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\services\StackMiddleware\FormatSetter->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#37 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#38 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#39 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#40 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#41 /home/clients/badfc41c5e748368249574ffbf485a5d/sites/bee/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#42 {main}

and the same time another error
Referrer admin/structure/types/manage/formules_bee
Message A non-existent config entity name returned by FieldStorageConfigInterface::getBundles(): entity type: bat_event_series, bundle: availability_daily, field name: event_dates

---------

Great initiative ! Thanks

🐛 Bug report
Status

Closed: won't fix

Version

2.21

Component

Code

Created by

🇫🇷France mchamps Finistère

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

Comments & Activities

  • Issue created by @mchamps
  • 🇫🇷France mchamps Finistère
  • 🇮🇹Italy afagioli Rome

    Hi @mchamps,
    your interesting feedback can't fit in this single issue really.

    Noted, though, for forthcoming releases

  • Status changed to Closed: won't fix 8 months ago
  • 🇮🇹Italy afagioli Rome

    #2 I looked up litepicker.js online. couldn't find it. can you add a link please ?

    Sure. Done!

  • 🇮🇹Italy afagioli Rome

    Went to /admin/commerce. I notice the bee in the corner, Great landing page, great job !

    Sort of pitch invasion really. Fixed with next release.

  • 🇮🇹Italy afagioli Rome

    /store/add/online, created a shop and the error above appeared on every pages since.

    I'd suggest installing your beehotel instance via the "samplehotel" module. It will do the whole work for you!

  • 🇫🇷France mchamps Finistère

    I read about installing the beehotel instance via the "samplehotel" module.
    I like to do it manually and it avoids having another module running constantly.
    Thanks !

  • 🇮🇹Italy afagioli Rome

    I see...
    The sample hotel module will help you anyway: open the code and follow the setup process by hand.

    Note also that once setup is done (manually or not), you may try and remove beehotel_samplehotel_uninstall() and then get rid of the module with drush pm:uninstall beehotel_samplehotel. The set up will stay there.

    Please share your progress.
    Thanks!

  • 🇮🇹Italy afagioli Rome

    module running constantly.

    Well, the samplehotel module is just a bunch of setup script run on install.
    Once install is done, there's nothing really to be run from it. Weightless.

  • 🇫🇷France mchamps Finistère

    Thanks for all your feedbacks! I'll let you know how it goes.

    #9 Awesome if you can uninstall it after setup.

Production build 0.71.5 2024