[error] TypeError: Unsupported operand types: null + array in commerce_order_theme_registry_alter() (line 452 of /app/web/modules/contrib/commerce/modules/order/commerce_order.module)

Created on 1 January 2025, 3 months ago

Druapl 11 + commerce 3 installation fails.

 [warning] Undefined array key "commerce_price_calculated" commerce_order.module:452
 [warning] Undefined array key "variables" commerce_order.module:452

 [error]  TypeError: Unsupported operand types: null + array in commerce_order_theme_registry_alter() (line 452 of /app/web/modules/contrib/commerce/modules/order/commerce_order.module) #0 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(459): commerce_order_theme_registry_alter(Array, NULL, NULL)
#1 /app/web/core/lib/Drupal/Core/Theme/Registry.php(434): Drupal\Core\Extension\ModuleHandler->alter('theme_registry', Array)
#2 /app/web/core/lib/Drupal/Core/Theme/Registry.php(276): Drupal\Core\Theme\Registry->build()
#3 /app/web/core/lib/Drupal/Core/Utility/ThemeRegistry.php(88): Drupal\Core\Theme\Registry->get()
#4 /app/web/core/lib/Drupal/Core/Utility/ThemeRegistry.php(69): Drupal\Core\Utility\ThemeRegistry->initializeRegistry()
#5 /app/web/core/lib/Drupal/Core/Theme/Registry.php(314): Drupal\Core\Utility\ThemeRegistry->__construct('theme_registry:...', Object(Drupal\Core\Cache\MemoryBackend), Object(Drupal\Core\Lock\NullLockBackend), Array, true)
#6 /app/web/core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php(50): Drupal\Core\Theme\Registry->getRuntime()
#7 /app/vendor/twig/twig/src/Loader/FilesystemLoader.php(160): Drupal\Core\Template\Loader\ThemeRegistryLoader->findTemplate('@help_topics/an...', false)
#8 /app/vendor/twig/twig/src/Loader/ChainLoader.php(100): Twig\Loader\FilesystemLoader->exists('@help_topics/an...')
#9 /app/vendor/twig/twig/src/Environment.php(304): Twig\Loader\ChainLoader->getCacheKey('@help_topics/an...')
#10 /app/web/core/lib/Drupal/Core/Template/TwigEnvironment.php(204): Twig\Environment->getTemplateClass('@help_topics/an...', NULL)
#11 /app/vendor/twig/twig/src/Environment.php(357): Drupal\Core\Template\TwigEnvironment->getTemplateClass('@help_topics/an...')
#12 /app/web/core/modules/help/src/HelpTopicTwig.php(55): Twig\Environment->load('@help_topics/an...')
#13 /app/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\help\HelpTopicTwig->getBody()
#14 /app/web/core/modules/help/src/Plugin/HelpSection/HelpTopicSection.php(200): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Array)
#15 /app/web/core/modules/help/src/Plugin/Search/HelpSearch.php(362): Drupal\help\Plugin\HelpSection\HelpTopicSection->renderTopicForSearch('announcements_f...', Object(Drupal\Core\Language\Language))
#16 /app/web/core/modules/search/src/Hook/SearchHooks.php(100): Drupal\help\Plugin\Search\HelpSearch->updateIndex()
#17 /app/web/core/lib/Drupal/Core/Cron.php(275): Drupal\search\Hook\SearchHooks->cron()
#18 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(307): Drupal\Core\Cron->Drupal\Core\{closure}(Array, 'search')
#19 /app/web/core/lib/Drupal/Core/Cron.php(258): Drupal\Core\Extension\ModuleHandler->invokeAllWith('cron', Object(Closure))
#20 /app/web/core/lib/Drupal/Core/Cron.php(97): Drupal\Core\Cron->invokeCronHandlers()
#21 /app/web/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#22 /app/web/core/includes/install.core.inc(1891): Drupal\Core\ProxyClass\Cron->run()
#23 /app/web/core/includes/install.core.inc(695): install_finished(Array)
#24 /app/web/core/includes/install.core.inc(572): install_run_task(Array, Array)
#25 /app/web/core/includes/install.core.inc(121): install_run_tasks(Array, Array)
#26 /app/vendor/drush/drush/includes/drush.inc(69): install_drupal(Object(Composer\Autoload\ClassLoader), Array, Array)
#27 /app/vendor/drush/drush/includes/drush.inc(53): drush_call_user_func_array('install_drupal', Array)
#28 /app/vendor/drush/drush/src/Commands/core/SiteInstallCommands.php(170): drush_op('install_drupal', Object(Composer\Autoload\ClassLoader), Array, Array)
#29 [internal function]: Drush\Commands\core\SiteInstallCommands->install('motobatt', Array)
#30 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#31 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#32 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#33 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#34 /app/vendor/symfony/console/Command/Command.php(279): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#35 /app/vendor/symfony/console/Application.php(1094): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36 /app/vendor/symfony/console/Application.php(342): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 /app/vendor/symfony/console/Application.php(193): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#38 /app/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#39 /app/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#40 /app/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run(Array)
#41 /app/vendor/bin/drush.php(119): include('/app/vendor/dru...')
#42 {main}. 
TypeError: Unsupported operand types: null + array in /app/web/modules/contrib/commerce/modules/order/commerce_order.module on line 452 #0 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(459): commerce_order_theme_registry_alter(Array, NULL, NULL)
#1 /app/web/core/lib/Drupal/Core/Theme/Registry.php(434): Drupal\Core\Extension\ModuleHandler->alter('theme_registry', Array)
#2 /app/web/core/lib/Drupal/Core/Theme/Registry.php(276): Drupal\Core\Theme\Registry->build()
#3 /app/web/core/lib/Drupal/Core/Utility/ThemeRegistry.php(88): Drupal\Core\Theme\Registry->get()
#4 /app/web/core/lib/Drupal/Core/Utility/ThemeRegistry.php(69): Drupal\Core\Utility\ThemeRegistry->initializeRegistry()
#5 /app/web/core/lib/Drupal/Core/Theme/Registry.php(314): Drupal\Core\Utility\ThemeRegistry->__construct('theme_registry:...', Object(Drupal\Core\Cache\MemoryBackend), Object(Drupal\Core\Lock\NullLockBackend), Array, true)
#6 /app/web/core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php(50): Drupal\Core\Theme\Registry->getRuntime()
#7 /app/vendor/twig/twig/src/Loader/FilesystemLoader.php(160): Drupal\Core\Template\Loader\ThemeRegistryLoader->findTemplate('@help_topics/an...', false)
#8 /app/vendor/twig/twig/src/Loader/ChainLoader.php(100): Twig\Loader\FilesystemLoader->exists('@help_topics/an...')
#9 /app/vendor/twig/twig/src/Environment.php(304): Twig\Loader\ChainLoader->getCacheKey('@help_topics/an...')
#10 /app/web/core/lib/Drupal/Core/Template/TwigEnvironment.php(204): Twig\Environment->getTemplateClass('@help_topics/an...', NULL)
#11 /app/vendor/twig/twig/src/Environment.php(357): Drupal\Core\Template\TwigEnvironment->getTemplateClass('@help_topics/an...')
#12 /app/web/core/modules/help/src/HelpTopicTwig.php(55): Twig\Environment->load('@help_topics/an...')
#13 /app/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\help\HelpTopicTwig->getBody()
#14 /app/web/core/modules/help/src/Plugin/HelpSection/HelpTopicSection.php(200): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Array)
#15 /app/web/core/modules/help/src/Plugin/Search/HelpSearch.php(362): Drupal\help\Plugin\HelpSection\HelpTopicSection->renderTopicForSearch('announcements_f...', Object(Drupal\Core\Language\Language))
#16 /app/web/core/modules/search/src/Hook/SearchHooks.php(100): Drupal\help\Plugin\Search\HelpSearch->updateIndex()
#17 /app/web/core/lib/Drupal/Core/Cron.php(275): Drupal\search\Hook\SearchHooks->cron()
#18 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(307): Drupal\Core\Cron->Drupal\Core\{closure}(Array, 'search')
#19 /app/web/core/lib/Drupal/Core/Cron.php(258): Drupal\Core\Extension\ModuleHandler->invokeAllWith('cron', Object(Closure))
#20 /app/web/core/lib/Drupal/Core/Cron.php(97): Drupal\Core\Cron->invokeCronHandlers()
#21 /app/web/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#22 /app/web/core/includes/install.core.inc(1891): Drupal\Core\ProxyClass\Cron->run()
#23 /app/web/core/includes/install.core.inc(695): install_finished(Array)
#24 /app/web/core/includes/install.core.inc(572): install_run_task(Array, Array)
#25 /app/web/core/includes/install.core.inc(121): install_run_tasks(Array, Array)
#26 /app/vendor/drush/drush/includes/drush.inc(69): install_drupal(Object(Composer\Autoload\ClassLoader), Array, Array)
#27 /app/vendor/drush/drush/includes/drush.inc(53): drush_call_user_func_array('install_drupal', Array)
#28 /app/vendor/drush/drush/src/Commands/core/SiteInstallCommands.php(170): drush_op('install_drupal', Object(Composer\Autoload\ClassLoader), Array, Array)
#29 [internal function]: Drush\Commands\core\SiteInstallCommands->install('motobatt', Array)
#30 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#31 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#32 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#33 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#34 /app/vendor/symfony/console/Command/Command.php(279): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#35 /app/vendor/symfony/console/Application.php(1094): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36 /app/vendor/symfony/console/Application.php(342): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 /app/vendor/symfony/console/Application.php(193): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#38 /app/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#39 /app/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#40 /app/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run(Array)
#41 /app/vendor/bin/drush.php(119): include('/app/vendor/dru...')
#42 {main}
TypeError: Unsupported operand types: null + array in commerce_order_theme_registry_alter() (line 452 of /app/web/modules/contrib/commerce/modules/order/commerce_order.module).
 [warning] Drush command terminated abnormally.
application@b9701a289a44:/app$ 

🐛 Bug report
Status

Active

Version

3.0

Component

Commerce

Created by

🇨🇳China 司南

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024