Problem/Motivation
I updated Drupal Core to 8.7.3.
When I do update.php
or drush up
I get this error:
Error: Call to a member function getConfigDependencyName() on null in Drupal\Core\Entity\EntityDisplayBase->calculateDependencies() (line 314 of /var/www/jb-inflatables/public/core/lib/Drupal/Core/Entity/EntityDisplayBase.php).
The full log is at the end of the Issue Summary
The reports suggest this is caused by missing by missing or corrupt configuration for view mode. The problem has been see in the following situations.
#8, #9 - caused by incomplete configuration
#18 - encountered when trying to uninstall the private_message contrib module
#38 - trying to run scheduler_content_moderation_integration_update_9002.
Steps to reproduce
TBA.
Proposed resolution
TBD
Remaining tasks
Write a test
Use the patch in #15 and provide data suggested in #23.
Provide steps to reproduce starting from installing Drupal core. This will allow a test to be written. see #18.
User interface changes
API changes
Data model changes
Release notes snippet
The full log
Error: Call to a member function getConfigDependencyName() on null in Drupal\Core\Entity\EntityDisplayBase->calculateDependencies() (regel 314 van /var/www/jb-inflatables/public/core/lib/Drupal/Core/Entity/EntityDisplayBase.php)
#0 /var/www/jb-inflatables/public/core/lib/Drupal/Core/Config/Entity/ConfigEntityUpdater.php(103): Drupal\Core\Entity\EntityDisplayBase->calculateDependencies()
#1 [internal function]: Drupal\Core\Config\Entity\ConfigEntityUpdater->Drupal\Core\Config\Entity\{closure}(Object(Drupal\Core\Entity\Entity\EntityViewDisplay))
#2 /var/www/jb-inflatables/public/core/lib/Drupal/Core/Config/Entity/ConfigEntityUpdater.php(110): call_user_func(Object(Closure), Object(Drupal\Core\Entity\Entity\EntityViewDisplay))
#3 /var/www/jb-inflatables/public/core/modules/layout_discovery/layout_discovery.post_update.php(21): Drupal\Core\Config\Entity\ConfigEntityUpdater->update(Array, 'entity_view_dis...')
#4 /var/www/jb-inflatables/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(298): layout_discovery_post_update_recalculate_entity_view_display_dependencies(Array)
#5 /var/www/jb-inflatables/vendor/drush/drush/includes/batch.inc(251): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('layout_discover...', Object(DrushBatchContext))
#6 /var/www/jb-inflatables/vendor/drush/drush/includes/batch.inc(196): _drush_batch_worker()
#7 /var/www/jb-inflatables/vendor/drush/drush/includes/batch.inc(99): _drush_batch_command('219')
#8 /var/www/jb-inflatables/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(156): drush_batch_command('219')
#9 [internal function]: Drush\Commands\core\UpdateDBCommands->process('219', Array)
#10 /var/www/jb-inflatables/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#11 /var/www/jb-inflatables/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /var/www/jb-inflatables/vendor/consolidation/annotated-command/src/CommandProcessor.php(178): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 /var/www/jb-inflatables/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(302): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#14 /var/www/jb-inflatables/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/jb-inflatables/vendor/symfony/console/Application.php(987): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/jb-inflatables/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/jb-inflatables/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/jb-inflatables/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/jb-inflatables/vendor/drush/drush/src/Runtime/Runtime.php(49): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/jb-inflatables/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#21 /var/www/jb-inflatables/vendor/drush/drush/includes/preflight.inc(18): require('/var/www/jb-inf...')
#22 phar:///usr/local/bin/drush/bin/drush.php(141): drush_main()
#23 /usr/local/bin/drush(10): require('phar:///usr/loc...')
#24 {main}./code>