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

ekapus’s picture

I was updating a fresh Bitnami install to start building something and I too get the error.

daoductrung’s picture

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.

ekapus’s picture

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?

ekapus’s picture

I just confirmed that it is related to the default Claro admin theme. 

Running 

drush config-set system.theme admin Olivero

Fixes it. So that's something. 

mario.awad’s picture

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.

ralphmoser’s picture

Replace line 193 of Drupal\Core\Utility\ThemeRegistry with 

return $this->get('global preprocess') ?? [];

to prevent a NULL return.

roy6432’s picture

“It works.

Thank you very much for thinking along.

Kind regards, Roy

ressa’s picture

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!

ralphmoser’s picture