Problem/Motivation
After upgrading from Drupal 11.3 to 11.4, I get several errors like those below at the top of admin/reports/upgrade-status.
Possible clue: In a separate D10 project, the place where the errors appear contains this expected message:
Warning message
Drupal 11.0, 11.1, and 11.2 are not supported upgrades from Drupal 10.6. Make sure to upgrade to 11.3 at least!
---------
Warning: Undefined property: Drupal\Core\Extension\Theme::$origin in Drupal\upgrade_status\ProjectCollector->collectCoreDeprecatedAndObsoleteExtensions() (line 370 of modules/contrib/upgrade_status/src/ProjectCollector.php).
Drupal\upgrade_status\ProjectCollector->collectCoreDeprecatedAndObsoleteExtensions() (Line: 933)
Drupal\upgrade_status\Form\UpgradeStatusForm->buildEnvironmentChecksFor12() (Line: 263)
Drupal\upgrade_status\Form\UpgradeStatusForm->buildForm()
call_user_func_array() (Line: 559)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 299)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext():121}() (Line: 638)
Drupal\Core\Render\Renderer::{closure:Drupal\Core\Render\Renderer::executeInRenderContext():638}()
Fiber->start() (Line: 639)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::onController():96}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 30)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 118)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 92)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 61)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 54)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 753)
Drupal\Core\DrupalKernel->handle() (Line: 34)
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (Line: 32)
require() (Line: 22)
require_once() (Line: 13)
----------
Warning: Undefined property: Drupal\Core\Extension\Theme::$origin in Drupal\upgrade_status\ProjectCollector->collectProjects() (line 205 of modules/contrib/upgrade_status/src/ProjectCollector.php).
Drupal\upgrade_status\ProjectCollector->collectProjects() (Line: 590)
Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary() (Line: 268)
Drupal\upgrade_status\Form\UpgradeStatusForm->buildForm()
call_user_func_array() (Line: 559)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 299)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext():121}() (Line: 638)
Drupal\Core\Render\Renderer::{closure:Drupal\Core\Render\Renderer::executeInRenderContext():638}()
Fiber->start() (Line: 639)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::onController():96}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 30)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 118)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 92)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 61)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 54)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 753)
Drupal\Core\DrupalKernel->handle() (Line: 34)
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (Line: 32)
require() (Line: 22)
require_once() (Line: 13)
Issue fork upgrade_status-3607931
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
gábor hojtsyI proposed a relatively simple fix and added a smoke test.
Comment #5
gábor hojtsyTests run on Drupal 11.3 so they can't yet reproduce the fails on 11.4. I'm trying to get it to run on 11.4 instead to produce the fail :D
Comment #7
gábor hojtsySpent too much time on trying to add a test. Committed to stop the bleeding instead.
Comment #9
gábor hojtsyReleased in https://www.drupal.org/project/upgrade_status/releases/5.0.0-alpha3 just now. Hope its good!
Comment #10
nick hope commentedThat works. Thanks for the prompt fix.