Error: Call to a member function getBaseUrl() on null

Created on 30 December 2022, almost 2 years ago
Updated 11 May 2023, over 1 year ago

Problem/Motivation

Core: 9.5.0
php: 8.1.10

After upgrading to 2.1.1 I get this error when I do a database update:

[error] Error: Call to a member function getBaseUrl() on null in Drupal\pantheon_advanced_page_cache\CacheTagsInvalidator->invalidateTags() (line 36 of /app/web/modules/composer/pantheon_advanced_page_cache/src/CacheTagsInvalidator.php) #0 /app/web/core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php(30): Drupal\pantheon_advanced_page_cache\CacheTagsInvalidator->invalidateTags(Array)
#1 /app/web/core/lib/Drupal/Core/Cache/Cache.php(111): Drupal\Core\Cache\CacheTagsInvalidator->invalidateTags(Array)
#2 /app/web/core/lib/Drupal/Core/Config/Config.php(226): Drupal\Core\Cache\Cache::invalidateTags(Array)
#3 /app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(274): Drupal\Core\Config\Config->save(false)
#4 /app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(520): Drupal\Core\Config\Entity\ConfigEntityStorage->doSave('comment_delete_...', Object(Drupal\system\Entity\Action))
#5 /app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(253): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\system\Entity\Action))
#6 /app/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\system\Entity\Action))
#7 /app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(608): Drupal\Core\Entity\EntityBase->save()
#8 /app/web/modules/custom/fix_actions/fix_actions.module(38): Drupal\Core\Config\Entity\ConfigEntityBase->save()
#9 /app/web/core/lib/Drupal/Core/Extension/Extension.php(148): include_once('/app/web/module...')
#10 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(128): Drupal\Core\Extension\Extension->load()
#11 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(141): Drupal\Core\Extension\ModuleHandler->load('fix_actions')
#12 /app/web/core/lib/Drupal/Core/DrupalKernel.php(591): Drupal\Core\Extension\ModuleHandler->loadAll()
#13 /app/vendor/drush/drush/src/Boot/DrupalBoot8.php(242): Drupal\Core\DrupalKernel->preHandle(Object(Symfony\Component\HttpFoundation\Request))
#14 /app/vendor/drush/drush/src/Boot/BootstrapManager.php(293): Drush\Boot\DrupalBoot8->bootstrapDrupalFull(Object(Drush\Boot\BootstrapManager), Object(Consolidation\AnnotatedCommand\AnnotationData))
#15 /app/vendor/drush/drush/src/Boot/BootstrapManager.php(447): Drush\Boot\BootstrapManager->doBootstrap(5, 5, Object(Consolidation\AnnotatedCommand\AnnotationData))
#16 /app/vendor/drush/drush/src/Boot/BootstrapManager.php(396): Drush\Boot\BootstrapManager->bootstrapToPhaseIndex(5, Object(Consolidation\AnnotatedCommand\AnnotationData))
#17 /app/vendor/drush/drush/src/Boot/BootstrapHook.php(28): Drush\Boot\BootstrapManager->bootstrapToPhase('full', Object(Consolidation\AnnotatedCommand\AnnotationData))
#18 /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(44): Drush\Boot\BootstrapHook->initialize(Object(Drush\Symfony\DrushArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#19 /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(36): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->doInitializeHook(Object(Drush\Boot\BootstrapHook), Object(Drush\Symfony\DrushArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#20 /app/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php(29): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->callInitializeHook(Object(Drush\Boot\BootstrapHook), Object(Drush\Symfony\DrushArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#21 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(145): Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher->initialize(Object(Drush\Symfony\DrushArgvInput), Object(Consolidation\AnnotatedCommand\AnnotationData))
#22 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(375): Consolidation\AnnotatedCommand\CommandProcessor->initializeHook(Object(Drush\Symfony\DrushArgvInput), Array, Object(Consolidation\AnnotatedCommand\AnnotationData))
#23 /app/vendor/symfony/console/Command/Command.php(221): Consolidation\AnnotatedCommand\AnnotatedCommand->initialize(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /app/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /app/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 /app/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#27 /app/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#28 /app/vendor/drush/drush/src/Runtime/Runtime.php(48): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#29 /app/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#30 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#31 /app/vendor/bin/drush(117): include('/app/vendor/dru...')
#32 {main}.

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States adrianm6254

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.

Production build 0.71.5 2024