Cannote delete host

Created on 9 December 2021, over 2 years ago
Updated 1 February 2023, over 1 year ago

Problem/Motivation

TypeError: Argument 2 passed to Drupal\Core\Entity\ContentEntityForm::__construct() must implement interface Drupal\Core\Entity\EntityTypeBundleInfoInterface, null given, called in /www/modules/contrib/httpbl/src/Form/HostDeleteForm.php on line 55 in Drupal\Core\Entity\ContentEntityForm->__construct() (line 56 of /www/core/lib/Drupal/Core/Entity/ContentEntityForm.php)

#0 /www/modules/contrib/httpbl/src/Form/HostDeleteForm.php(55): Drupal\Core\Entity\ContentEntityForm->__construct()
#1 /www/modules/contrib/httpbl/src/Form/HostDeleteForm.php(68): Drupal\httpbl\Form\HostDeleteForm->__construct()
#2 /www/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(28): Drupal\httpbl\Form\HostDeleteForm::create()
#3 /www/core/lib/Drupal/Core/Entity/EntityTypeManager.php(214): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition()
#4 /www/core/lib/Drupal/Core/Entity/HtmlEntityFormController.php(69): Drupal\Core\Entity\EntityTypeManager->getFormObject()
#5 /www/core/lib/Drupal/Core/Controller/FormController.php(58): Drupal\Core\Entity\HtmlEntityFormController->getFormObject()
#6 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#7 /www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#8 /www/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#10 /www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#11 /www/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /www/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#13 /www/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#14 /www/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#15 /www/core/modules/ban/src/BanMiddleware.php(50): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#16 /www/modules/contrib/httpbl/src/HttpblMiddleware.php(59): Drupal\ban\BanMiddleware->handle()
#17 /www/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\httpbl\HttpblMiddleware->handle()
#18 /www/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#19 /www/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#20 /www/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle()
#21 /www/index.php(19): Drupal\Core\DrupalKernel->handle()
#22 {main}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria maxilein

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.

  • πŸ‡ΊπŸ‡ΈUnited States stsharp

    We are seeing a similar issue when trying to add or edit host - have their been any updates on this problem? We are running Drupal 9.5.2

    TypeError: Drupal\Core\Entity\ContentEntityForm::__construct(): Argument #2 ($entity_type_bundle_info) must be of type Drupal\Core\Entity\EntityTypeBundleInfoInterface, null given, called in /code/web/modules/composer/httpbl/src/Form/HostForm.php on line 49 in Drupal\Core\Entity\ContentEntityForm->__construct() (line 56 of /code/web/core/lib/Drupal/Core/Entity/ContentEntityForm.php)
    #0 /code/web/modules/composer/httpbl/src/Form/HostForm.php(49): Drupal\Core\Entity\ContentEntityForm->__construct(Object(Drupal\Core\Entity\EntityRepository), NULL, Object(Drupal\Component\Datetime\Time))
    #1 /code/web/modules/composer/httpbl/src/Form/HostForm.php(62): Drupal\httpbl\Form\HostForm->__construct(Object(Drupal\Core\Entity\EntityRepository), Object(Drupal\ban\BanIpManager), Object(Drupal\httpbl\ProxyClass\Logger\HttpblLogTrapper), Object(Drupal\Component\Datetime\Time))
    #2 /code/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(28): Drupal\httpbl\Form\HostForm::create(Object(Drupal\Core\DependencyInjection\Container))
    #3 /code/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(210): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('Drupal\\httpbl\\F...')
    #4 /code/web/core/lib/Drupal/Core/Entity/HtmlEntityFormController.php(69): Drupal\Core\Entity\EntityTypeManager->getFormObject('host', 'add')
    #5 /code/web/core/lib/Drupal/Core/Controller/FormController.php(58): Drupal\Core\Entity\HtmlEntityFormController->getFormObject(Object(Drupal\Core\Routing\RouteMatch), 'host.add.defaul...')
    #6 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
    #7 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
    #8 /code/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #9 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
    #10 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
    #11 /code/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #12 /code/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
    #13 /code/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #14 /code/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #15 /code/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #16 /code/web/modules/composer/httpbl/src/HttpblMiddleware.php(59): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #17 /code/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\httpbl\HttpblMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #18 /code/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #19 /code/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #20 /code/web/core/lib/Drupal/Core/DrupalKernel.php(713): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #21 /code/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
    #22 {main}

Production build 0.69.0 2024