- Issue created by @vints24
- Status changed to Needs work
5 months ago 10:34am 11 July 2024 - First commit to issue fork.
- Status changed to Postponed: needs info
5 months ago 12:01pm 11 July 2024 - 🇺🇸United States ja09
Also got this error. It happened for me when I ran database updates on my live server without access to Drush. Updates worked fine locally with Drush.
Same issue here with core version 10.3.1
[warning] Undefined array key "preprocess functions" Registry.php:702
In Template.php line 385: An exception has been thrown during the rendering of a template ("array_diff(): Argument #2 must be of type array, null given") in "__string_template__..." at line 1.
In Registry.php line 702: array_diff(): Argument #2 must be of type array, null given
According to my previous comment, updating to 10.3.2 solved this issue for me.
- 🇧🇾Belarus chegor
Can be related to theme that used on exact site.
F.e. see: https://www.drupal.org/project/bootstrap/issues/3460442 🐛 Cannot run update.php Active - 🇺🇸United States AaronBauman Philadelphia
Sounds like a duplicate of 🐛 Exception: Warning: Undefined array key "preprocess functions" Drupal\Core\Theme\Registry->mergePreprocessFunctions() Needs work
- 🇺🇦Ukraine AstonVictor
patch #4 is incorrect -
--- a/core/lib/Drupal/Core/Theme/Registry.php +++ b/core/lib/Drupal/Core/Theme/Registrycopy.php
Changes should be applied to the same file (Registry.php), not to the Registrycopy.php.
We can close it because it's a duplicate of 🐛 Exception: Warning: Undefined array key "preprocess functions" Drupal\Core\Theme\Registry->mergePreprocessFunctions() Needs work .