Drupal 10.2.x: Error: Call to a member function createFromNameAndData() on null in Drupal\cdn_ui\Form\ValidatableConfigFormBase->validateForm() (line 50

Created on 16 December 2023, about 1 year ago
Updated 5 January 2024, 12 months ago

Problem/Motivation

I get this after update to Drupal 10.2.0

Error: Call to a member function createFromNameAndData() on null in Drupal\cdn_ui\Form\ValidatableConfigFormBase->validateForm() (line 50 of /www/wwwroot/idbip.com/web/modules/cdn/cdn_ui/src/Form/ValidatableConfigFormBase.php).

and

#0 [internal function]: Drupal\cdn_ui\Form\ValidatableConfigFormBase->validateForm()
#1 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/Form/FormValidator.php(82): call_user_func_array()
#2 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/Form/FormValidator.php(275): Drupal\Core\Form\FormValidator->executeValidateHandlers()
#3 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/Form/FormValidator.php(118): Drupal\Core\Form\FormValidator->doValidateForm()
#4 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/Form/FormBuilder.php(593): Drupal\Core\Form\FormValidator->validateForm()
#5 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm()
#6 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#7 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#8 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#9 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#11 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#12 /www/wwwroot/idbip.com/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /www/wwwroot/idbip.com/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#14 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#15 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#16 /www/wwwroot/idbip.com/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#17 /www/wwwroot/idbip.com/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#18 /www/wwwroot/idbip.com/web/modules/advban/src/AdvbanMiddleware.php(57): Drupal\page_cache\StackMiddleware\PageCache->handle()
#19 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\advban\AdvbanMiddleware->handle()
#20 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#21 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#22 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#23 /www/wwwroot/idbip.com/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#24 /www/wwwroot/idbip.com/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#25 {main}

Steps to reproduce

Update to Drupal 10.2.0

Proposed resolution

I uninstalled cdn, but I really wanted it to work somehow.

šŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

šŸ‡·šŸ‡“Romania idflorin

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024