By roy6432 on
After updating from Drupal 11.2.10 to 11.3.0, I see a white screen with the following error: (try again later) The following error appears in the log.
TypeError: Drupal\Core\Utility\ThemeRegistry::getGlobalPreprocess(): Return value must be of type array, null returned in Drupal\Core\Utility\ThemeRegistry->getGlobalPreprocess() (line 193 of /var/www/vhosts/sparrowhouse.nl/httpdocs/core/lib/Drupal/Core/Utility/ThemeRegistry.php).
Comments
Me too
I was updating a fresh Bitnami install to start building something and I too get the error.
probably
The issue is probably coming from the theme. Are you using the default theme?
I upgraded two of my sites to 11.3.0 using the Solo theme and the Olivero theme successfully.
Explore my blind world if you're curious or interested
That's probably it. It's why
That's probably it. It's why it happens when I get redirected to the admin pages in Claro.
Did Claro not get updated to work with something in 11.3?
I just confirmed that it is
I just confirmed that it is related to the default Claro admin theme.
Running
Fixes it. So that's something.
Fix works for Gin admin theme as well
Using Gin which is based on Claro I had the same issue and your drush command fixes it.
After that, go to the appearance settings and set Gin back as the admin theme and everything is working well since.
Thank you.
Fixes NULL return
Replace line 193 of Drupal\Core\Utility\ThemeRegistry with
to prevent a NULL return.
updating from Drupal 11.2.10 to 11.3.0
“It works.
Thank you very much for thinking along.
Kind regards, Roy
It's great that you found the
It's great that you found the cause and a solution, perhaps one of you can create a Drupal core issue to get it fixed? I looked, but couldn't find an existing issue. Thanks!
Core issue with patch
Here's the issue with a patch https://www.drupal.org/project/drupal/issues/3564510.