Db update crashes in domain_config_ui

Created on 5 December 2023, over 1 year ago

Drupal Version

9.5.11

Domain module version

drupal/domain 1.0.0-beta8
drupal/domain_access 2.0.0-beta1
drupal/domain_path_redirect 1.4.0

Expected Behavior

I try to update the database using update.php (see dump below)
Alternatively I run drush updatedb and it reports success, but drush updatedb:status reports

 ------------------ ----------- --------------- -----------------------------
  Module             Update ID   Type            Description
 ------------------ ----------- --------------- -----------------------------
  user entity type               entity-update   The user.field_domain_admin
                                                 field needs to be updated.
 ------------------ ----------- --------------- -----------------------------

Actual Behavior

Running update.php I get this in the php error log:

 Error: Call to a member function setModuleOverride() on null in /home/hgweb/learn-ayurveda-d8c/web/modules/contrib/domain/domain_config_ui/src/Config/ConfigFactory.php on line 92 #0 /home/hgweb/learn-ayurveda-d8c/web/modules/contrib/domain/domain_config_ui/src/Config/ConfigFactory.php(112): Drupal\domain_config_ui\Config\ConfigFactory->doLoadMultiple()
#1 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Config/ConfigFactory.php(89): Drupal\domain_config_ui\Config\ConfigFactory->doGet()
#2 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ModuleExtensionList.php(111): Drupal\Core\Config\ConfigFactory->get()
#3 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ModuleExtensionList.php(92): Drupal\Core\Extension\ModuleExtensionList->getProfileDirectories()
#4 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ExtensionList.php(298): Drupal\Core\Extension\ModuleExtensionList->getExtensionDiscovery()
#5 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ModuleExtensionList.php(138): Drupal\Core\Extension\ExtensionList->doScanExtensions()
#6 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ExtensionList.php(312): Drupal\Core\Extension\ModuleExtensionList->doScanExtensions()
#7 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ModuleExtensionList.php(155): Drupal\Core\Extension\ExtensionList->doList()
#8 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ExtensionList.php(282): Drupal\Core\Extension\ModuleExtensionList->doList()
#9 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ExtensionList.php(260): Drupal\Core\Extension\ExtensionList->getList()
#10 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ExtensionList.php(243): Drupal\Core\Extension\ExtensionList->get()
#11 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(737): Drupal\Core\Extension\ExtensionList->getName()
#12 /home/hgweb/learn-ayurveda-d8c/web/modules/contrib/symfony_mailer/src/Processor/EmailBuilderManager.php(93): Drupal\Core\Extension\ModuleHandler->getName()
#13 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(293): Drupal\symfony_mailer\Processor\EmailBuilderManager->processDefinition()
#14 /home/hgweb/learn-ayurveda-d8c/web/modules/contrib/symfony_mailer/src/Processor/EmailBuilderManager.php(204): Drupal\Core\Plugin\DefaultPluginManager->findDefinitions()
#15 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(181): Drupal\symfony_mailer\Processor\EmailBuilderManager->findDefinitions()
#16 /home/hgweb/learn-ayurveda-d8c/web/modules/contrib/symfony_mailer/src/Processor/MailerConfigOverride.php(92): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#17 /home/hgweb/learn-ayurveda-d8c/web/modules/contrib/symfony_mailer/src/Processor/MailerConfigOverride.php(52): Drupal\symfony_mailer\Processor\MailerConfigOverride->buildCache()
#18 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Config/ConfigFactory.php(209): Drupal\symfony_mailer\Processor\MailerConfigOverride->loadOverrides()
#19 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Config/ConfigFactory.php(169): Drupal\Core\Config\ConfigFactory->loadOverrides()
#20 /home/hgweb/learn-ayurveda-d8c/web/modules/contrib/domain/domain_config_ui/src/Config/ConfigFactory.php(68): Drupal\Core\Config\ConfigFactory->doLoadMultiple()
#21 /home/hgweb/learn-ayurveda-d8c/web/modules/contrib/domain/domain_config_ui/src/Config/ConfigFactory.php(112): Drupal\domain_config_ui\Config\ConfigFactory->doLoadMultiple()
#22 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Config/ConfigFactory.php(89): Drupal\domain_config_ui\Config\ConfigFactory->doGet()
#23 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ThemeHandler.php(70): Drupal\Core\Config\ConfigFactory->get()
#24 /home/hgweb/learn-ayurveda-d8c/web/core/modules/block/block.module(169): Drupal\Core\Extension\ThemeHandler->listInfo()
#25 [internal function]: block_rebuild()
#26 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(426): call_user_func_array()
#27 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(405): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}()
#28 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(433): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#29 /home/hgweb/learn-ayurveda-d8c/web/core/includes/common.inc(579): Drupal\Core\Extension\ModuleHandler->invokeAll()
#30 /home/hgweb/learn-ayurveda-d8c/web/core/modules/system/src/Form/PerformanceForm.php(192): drupal_flush_all_caches()
#31 [internal function]: Drupal\system\Form\PerformanceForm->submitCacheClear()
#32 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Form/FormSubmitter.php(114): call_user_func_array()
#33 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Form/FormSubmitter.php(52): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers()
#34 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm()
#35 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm()
#36 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#37 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#38 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#39 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#40 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#41 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#42 /home/hgweb/learn-ayurveda-d8c/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#43 /home/hgweb/learn-ayurveda-d8c/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#44 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#45 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#46 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#47 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#48 /home/hgweb/learn-ayurveda-d8c/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#49 /home/hgweb/learn-ayurveda-d8c/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#50 /home/hgweb/learn-ayurveda-d8c/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#51 {main}

Steps to reproduce

Run update.php
Note that I have recently updated php to support 9.5.11
php 8.1.26
mariadb 10.5.23

In the drupal status report, I get this:
Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
User
The user.field_domain_admin field needs to be updated.

This prompted me to run update.
I do not believe this problem is necessarily directly related to domain, but I am not sure how to get past this db update problem. I have operations such as create content which are not available to me as an admin and indicate I need to update after the most recent composer update.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States hgroover

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

Comments & Activities

Production build 0.71.5 2024