TypeError: Argument 1 passed to Drupal\entityconnect\EntityconnectWidgetProcessor::__construct() must be an instance of Drupal\field\Entity\FieldConfig

Created on 11 April 2021, over 3 years ago
Updated 22 July 2024, 5 months ago

I just randomly started receiving a WSOD on one of my content types when I try to add a new node. I'm not a programmer, so all I can do is turn off the module and see if the problem resolves itself. I turned off the Entity Connect module and the problem went away.

This is only happening on this one content type. And this content type does not even use the Entity Connect option. I'm not sure why this error just started happening. Any ideas?

TypeError: Argument 1 passed to Drupal\entityconnect\EntityconnectWidgetProcessor::__construct() must be an instance of Drupal\field\Entity\FieldConfig, null given, called in /var/www/vhosts/*/httpdocs/modules/entityconnect/src/EntityconnectWidgetProcessor.php on line 102 in Drupal\entityconnect\EntityconnectWidgetProcessor->__construct() (line 60 of /var/www/vhosts/*/httpdocs/modules/entityconnect/src/EntityconnectWidgetProcessor.php)
#0 /var/www/vhosts/*/httpdocs/modules/entityconnect/src/EntityconnectWidgetProcessor.php(102): Drupal\entityconnect\EntityconnectWidgetProcessor->__construct()
#1 [internal function]: Drupal\entityconnect\EntityconnectWidgetProcessor::process()
#2 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/Form/FormBuilder.php(1008): call_user_func_array()
#3 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/Form/FormBuilder.php(1071): Drupal\Core\Form\FormBuilder->doBuildForm()
#4 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/Form/FormBuilder.php(575): Drupal\Core\Form\FormBuilder->doBuildForm()
#5 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/Form/FormBuilder.php(321): Drupal\Core\Form\FormBuilder->processForm()
#6 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/Controller/FormController.php(91): Drupal\Core\Form\FormBuilder->buildForm()
#7 /var/www/vhosts/*/httpdocs/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult()
#8 [internal function]: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult()
#9 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#10 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#11 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#12 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#13 /var/www/vhosts/*/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /var/www/vhosts/*/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#15 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle()
#16 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle()
#17 /var/www/vhosts/*/httpdocs/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#18 /var/www/vhosts/*/httpdocs/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#19 /var/www/vhosts/*/httpdocs/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#20 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle()
#21 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#22 /var/www/vhosts/*/httpdocs/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#23 /var/www/vhosts/*/httpdocs/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle()
#24 /var/www/vhosts/*/httpdocs/index.php(19): Drupal\Core\DrupalKernel->handle()
#25 {main}
🐛 Bug report
Status

Fixed

Component

User interface

Created by

🇺🇸United States arlingtonvoicellc

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

Merge Requests

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