member function getType() Error

Created on 9 June 2022, about 2 years ago
Updated 12 October 2023, 9 months ago

Dear All,

When I edit a content from Admin->Content.
Getting an error like below : ie, error from Reports -> Recent log messages

type : php

Error: Call to a member function getType() on null in Drupal\permissions_by_term\Controller\NodeEntityBundleController->getContentType() (line 98 of /var/www/html/h/home/web/modules/contrib/permissions_by_term/src/Controller/NodeEntityBundleController.php)
#0 /var/www/html/h/home/web/modules/contrib/permissions_by_term/src/Controller/NodeEntityBundleController.php(72): Drupal\permissions_by_term\Controller\NodeEntityBundleController->getContentType()
#1 [internal function]: Drupal\permissions_by_term\Controller\NodeEntityBundleController->getFormInfoByUrl()
#2 /var/www/html/h/home/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#3 /var/www/html/h/home/web/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#4 /var/www/html/h/home/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#5 /var/www/html/h/home/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#6 /var/www/html/h/home/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#7 /var/www/html/h/home/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#8 /var/www/html/h/home/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#9 /var/www/html/h/home/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#10 /var/www/html/h/home/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#11 /var/www/html/h/home/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#12 /var/www/html/h/home/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#13 /var/www/html/h/home/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#14 /var/www/html/h/home/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#15 /var/www/html/h/home/web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle()
#16 /var/www/html/h/home/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#17 {main}
.

Drupal version : 9.3.14
php version : 8.1.6

Could you please help me to solve this Error?

💬 Support request
Status

Closed: cannot reproduce

Version

3.1

Component

Code

Created by

🇮🇳India Toby_toby

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.

  • First commit to issue fork.
  • Status changed to Needs review 9 months ago
  • 🇮🇳India viren18febS

    HI @Toby_toby,
    I am not able to reproduce the issue in D9 & D10, please update steps if you getting same issue.

  • Status changed to Closed: cannot reproduce 9 months ago
  • 🇩🇪Germany marcoliver Neuss, NRW, Germany

    Marking as "cannot reproduce" due the feedback in #4 💬 member function getType() Error Closed: cannot reproduce . If the issue persists, feel free to reopen.

Production build 0.69.0 2024