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)

Command icon 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

nick hope created an issue. See original summary.

gábor hojtsy made their first commit to this issue’s fork.

gábor hojtsy’s picture

Status: Active » Needs review

I proposed a relatively simple fix and added a smoke test.

gábor hojtsy’s picture

Tests 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

  • gábor hojtsy committed ad77f6ef on 5.x
    fix: #3607931 Warning: Undefined property: Drupal\Core\Extension\Theme...
gábor hojtsy’s picture

Status: Needs review » Fixed

Spent too much time on trying to add a test. Committed to stop the bleeding instead.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

gábor hojtsy’s picture

nick hope’s picture

That works. Thanks for the prompt fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.