Describe your bug or feature request.

TypeError: Drupal\commerce\InboxMessageFetcher::storeMessages(): Argument #1 ($messages) must be of type array, null given, called in /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php on line 101 in Drupal\commerce\InboxMessageFetcher->storeMessages() (line 114 of /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php).
 [warning] Drush command terminated abnormally.

Fetched url: https://www.centarro.io/drupal-commerce/new-store-messages.json

Content:

<!-- START RENDERER -->
<!-- CACHE-HIT: No -->
<!-- CACHE TAGS:
   * config:views.view.commerce_message
   * node_list
   * node:94
   * node:93
   * node:92
   * config:field.storage.node.field_cta_link
   * config:field.storage.node.field_cta_text
   * config:field.storage.node.field_dependencies
   * config:field.storage.node.field_message
   * config:field.storage.node.field_send_date
-->
<!-- CACHE CONTEXTS:
   * languages:language_interface
   * theme
   * user.permissions
   * languages:language_content
   * request_format
   * user.node_grants:view
-->
<!-- CACHE KEYS:
   * view
   * commerce_message
   * display
   * new_store_rest_export
-->
<!-- CACHE MAX-AGE: 3600 -->
<!-- PRE-BUBBLING CACHE CONTEXTS:
   * languages:language_interface
   * theme
   * user.permissions
-->
<!-- PRE-BUBBLING CACHE KEYS:
   * view
   * commerce_message
   * display
   * new_store_rest_export
-->
<!-- RENDERING TIME: 0.037770987 -->
[{"id":"message.92","subject":"Welcome to Drupal Commerce!","message":"Drupal Commerce is maintained by Centarro, who has developed and supported the software since its inception in 2010. Hundreds of developers around the world have contributed through the years to help make the platform a success. We\u0027re happy you\u0027re exploring Drupal Commerce for your next project!","cta_text":false,"cta_link":"","send_date":"1703520335","dependencies":[]},{"id":"message.93","subject":"Bookmark the Drupal Answers community support forum","message":"The best place to ask questions about configuring or using Drupal Commerce is the Drupal Answers forum. Many contributors monitor the \u0022commerce\u0022 tag, which makes it easy to find answers that will help you or ask a new question if you can\u0027t find yours.","cta_text":"Open Drupal Answers","cta_link":"https:\/\/drupal.stackexchange.com\/questions\/tagged\/commerce?tab=Newest","send_date":"1702916340","dependencies":[]},{"id":"message.94","subject":"Join the community Slack channel","message":"The #commerce channel in Drupal Slack is the best place to chat with other Drupal Commerce developers. Over 2,500 people from around the world follow the channel where they share their latest work and offer help to others when they can.","cta_text":"Join Drupal Slack","cta_link":"https:\/\/www.drupal.org\/slack","send_date":"1702311835","dependencies":[]}]
<!-- END RENDERER -->

If a bug, provide steps to reproduce it from a clean install.

Go to simplytest.me, spin up commerce instance

2026-04-20 12:10:29 (89.7 MB/s) - ‘/usr/local/bin/yq’ saved [13734050/13734050]
69e617943838f65ed4dde1c4# /bin/sh -c composer self-update
Upgrading to version 2.9.7 (stable channel).
Use composer self-update --rollback to return to version 2.9.5
69e617943838f65ed4dde1c4# /bin/sh -c rm -rf "${DOCROOT}"
69e617943838f65ed4dde1c4# /bin/sh -c composer -n create-project drupal/recommended-project:11.3.7 stm --no-install
Creating a "drupal/recommended-project:11.3.7" project at "./stm"
Installing drupal/recommended-project (11.3.7)
- Downloading drupal/recommended-project (11.3.7)
- Installing drupal/recommended-project (11.3.7): Extracting archive
Created project in /var/lib/tugboat/stm
69e617943838f65ed4dde1c4# /bin/sh -c cd stm && composer config minimum-stability dev
69e617943838f65ed4dde1c4# /bin/sh -c cd stm && composer config prefer-stable true
69e617943838f65ed4dde1c4# /bin/sh -c cd stm && composer require --dev --no-install drupal/core:11.3.7
./composer.json has been updated
Running composer update drupal/core
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
No security vulnerability advisories found.
69e617943838f65ed4dde1c4# /bin/sh -c cd stm && composer require --no-install drush/drush
./composer.json has been updated
Running composer update drush/drush
Loading composer repositories with package information
Updating dependencies
Lock file operations: 21 installs, 0 updates, 0 removals
  - Locking chi-teck/drupal-code-generator (4.2.0)
  - Locking consolidation/annotated-command (4.10.5)
  - Locking consolidation/config (3.2.1)
  - Locking consolidation/filter-via-dot-access-data (2.0.3)
  - Locking consolidation/log (3.1.2)
  - Locking consolidation/output-formatters (4.7.1)
  - Locking consolidation/robo (5.1.1)
  - Locking consolidation/site-alias (4.1.3)
  - Locking consolidation/site-process (5.4.2)
  - Locking dflydev/dot-access-data (v3.0.3)
- Locking drush/drush (13.7.2)
  - Locking grasmash/expander (3.0.1)
  - Locking grasmash/yaml-cli (3.2.1)
  - Locking laravel/prompts (v0.3.16)
  - Locking league/container (4.2.5)
- Locking nikic/php-parser (v5.7.0)
  - Locking phootwork/collection (v3.2.3)
  - Locking phootwork/lang (v3.2.3)
  - Locking phpowermove/docblock (v4.0)
  - Locking psy/psysh (v0.12.22)
  - Locking symfony/polyfill-php81 (v1.36.0)
Writing lock file
7 package suggestions were added by new dependencies, use `composer suggest` to see details.
No security vulnerability advisories found.
Using version ^13.7 for drush/drush
69e617943838f65ed4dde1c4# /bin/sh -c ln -snf "${TUGBOAT_ROOT}/stm/web" "${DOCROOT}"
69e617943838f65ed4dde1c4# /bin/sh -c echo "SIMPLYEST_STAGE_DOWNLOAD"
SIMPLYEST_STAGE_DOWNLOAD
69e617943838f65ed4dde1c4# /bin/sh -c cd stm && composer require drupal/commerce:3.3.4 --no-install
./composer.json has been updated
Running composer update drupal/commerce
Loading composer repositories with package information
Updating dependencies
Lock file operations: 13 installs, 0 updates, 0 removals
  - Locking commerceguys/addressing (v2.2.5)
  - Locking commerceguys/intl (v2.0.7)
  - Locking doctrine/collections (2.6.0)
- Locking doctrine/deprecations (1.1.6)
  - Locking drupal/address (2.0.4)
  - Locking drupal/commerce (3.3.4)
  - Locking drupal/entity (1.6.0)
- Locking drupal/entity_reference_revisions (1.14.0)
  - Locking drupal/inline_entity_form (3.0.0-rc21)
  - Locking drupal/profile (1.14.0)
- Locking drupal/rat (1.0.1)
  - Locking drupal/state_machine (1.14.0)
- Locking drupal/token (1.17.0)
Writing lock file
No security vulnerability advisories found.
69e617943838f65ed4dde1c4# /bin/sh -c echo "SIMPLYEST_STAGE_PATCHING"
SIMPLYEST_STAGE_PATCHING
69e617943838f65ed4dde1c4# /bin/sh -c cd stm && composer update --no-ansi
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 2 updates, 0 removals
- Upgrading drupal/core-project-message (11.3.7 => 11.3.8)
  - Upgrading drupal/core-recipe-unpack (11.3.7 => 11.3.8)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 96 installs, 0 updates, 0 removals
- Downloading composer/installers (v2.3.0)
- Downloading drupal/core-composer-scaffold (11.3.7)
- Downloading drupal/core-project-message (11.3.8)
- Downloading drupal/core-recipe-unpack (11.3.8)
- Downloading symfony/polyfill-php84 (v1.33.0)
- Downloading doctrine/deprecations (1.1.6)
- Downloading doctrine/collections (2.6.0)
- Downloading commerceguys/addressing (v2.2.5)
- Downloading symfony/polyfill-iconv (v1.33.0)
- Downloading symfony/polyfill-mbstring (v1.33.0)
- Downloading symfony/polyfill-intl-normalizer (v1.33.0)
- Downloading symfony/polyfill-intl-grapheme (v1.33.0)
- Downloading symfony/polyfill-ctype (v1.33.0)
- Downloading symfony/deprecation-contracts (v3.6.0)
- Downloading symfony/string (v7.4.8)
- Downloading psr/container (2.0.2)
- Downloading symfony/service-contracts (v3.6.1)
- Downloading symfony/console (v7.4.8)
- Downloading psr/log (3.0.2)
- Downloading consolidation/log (3.1.2)
- Downloading twig/twig (v3.22.2)
- Downloading symfony/yaml (v7.4.8)
- Downloading symfony/translation-contracts (v3.6.1)
- Downloading symfony/polyfill-php83 (v1.36.0)
- Downloading symfony/validator (v7.4.8)
- Downloading symfony/serializer (v7.4.8)
- Downloading symfony/routing (v7.4.8)
- Downloading symfony/http-foundation (v7.4.8)
- Downloading psr/http-message (2.0)
- Downloading symfony/psr-http-message-bridge (v7.4.8)
- Downloading symfony/process (v7.4.8)
- Downloading symfony/polyfill-php85 (v1.33.0)
- Downloading symfony/polyfill-intl-idn (v1.33.0)
- Downloading symfony/mime (v7.4.8)
- Downloading psr/event-dispatcher (1.0.0)
- Downloading symfony/event-dispatcher-contracts (v3.6.0)
- Downloading symfony/event-dispatcher (v7.4.8)
- Downloading doctrine/lexer (3.0.1)
- Downloading egulias/email-validator (4.0.4)
- Downloading symfony/mailer (v7.4.8)
- Downloading symfony/var-dumper (v7.4.8)
- Downloading symfony/error-handler (v7.4.8)
- Downloading symfony/http-kernel (v7.4.8)
- Downloading symfony/finder (v7.4.8)
- Downloading symfony/filesystem (v7.4.8)
- Downloading symfony/var-exporter (v7.4.8)
- Downloading symfony/dependency-injection (v7.4.8)
- Downloading sebastian/diff (7.0.0)
- Downloading revolt/event-loop (v1.0.8)
- Downloading php-tuf/composer-stager (v2.0.2)
- Downloading pear/pear_exception (v1.0.2)
- Downloading pear/console_getopt (v1.4.3)
- Downloading pear/pear-core-minimal (v1.10.18)
  - Downloading pear/archive_tar (1.6.0)
- Downloading mck89/peast (v1.17.5)
- Downloading masterminds/html5 (2.10.0)
- Downloading ralouphie/getallheaders (3.0.3)
- Downloading psr/http-factory (1.1.0)
- Downloading guzzlehttp/psr7 (2.8.1)
- Downloading psr/http-client (1.0.3)
- Downloading guzzlehttp/promises (2.3.0)
- Downloading guzzlehttp/guzzle (7.10.0)
- Downloading composer/semver (3.4.4)
- Downloading asm89/stack-cors (v2.3.0)
- Downloading drupal/core (11.3.7)
- Downloading drupal/token (1.17.0)
- Downloading drupal/state_machine (1.14.0)
- Downloading drupal/entity (1.6.0)
- Downloading drupal/profile (1.14.0)
- Downloading drupal/rat (1.0.1)
- Downloading drupal/inline_entity_form (3.0.0-rc21)
- Downloading drupal/entity_reference_revisions (1.14.0)
- Downloading drupal/address (2.0.4)
- Downloading commerceguys/intl (v2.0.7)
- Downloading drupal/commerce (3.3.4)
- Downloading nikic/php-parser (v5.7.0)
- Downloading psy/psysh (v0.12.22)
- Downloading league/container (4.2.5)
- Downloading laravel/prompts (v0.3.16)
- Downloading dflydev/dot-access-data (v3.0.3)
- Downloading grasmash/yaml-cli (3.2.1)
- Downloading grasmash/expander (3.0.1)
- Downloading consolidation/config (3.2.1)
- Downloading consolidation/site-alias (4.1.3)
- Downloading consolidation/site-process (5.4.2)
- Downloading symfony/polyfill-php81 (v1.36.0)
- Downloading phootwork/lang (v3.2.3)
- Downloading phootwork/collection (v3.2.3)
- Downloading phpowermove/docblock (v4.0)
- Downloading consolidation/output-formatters (4.7.1)
- Downloading consolidation/annotated-command (4.10.5)
- Downloading consolidation/robo (5.1.1)
- Downloading consolidation/filter-via-dot-access-data (2.0.3)
- Downloading chi-teck/drupal-code-generator (4.2.0)
- Downloading drush/drush (13.7.2)
- Installing composer/installers (v2.3.0): Extracting archive
- Installing drupal/core-composer-scaffold (11.3.7): Extracting archive
- Installing drupal/core-project-message (11.3.8): Extracting archive
- Installing drupal/core-recipe-unpack (11.3.8): Extracting archive
- Installing symfony/polyfill-php84 (v1.33.0): Extracting archive
- Installing doctrine/deprecations (1.1.6): Extracting archive
- Installing doctrine/collections (2.6.0): Extracting archive
- Installing commerceguys/addressing (v2.2.5): Extracting archive
- Installing symfony/polyfill-iconv (v1.33.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.33.0): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.33.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.33.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.33.0): Extracting archive
- Installing symfony/deprecation-contracts (v3.6.0): Extracting archive
- Installing symfony/string (v7.4.8): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing symfony/service-contracts (v3.6.1): Extracting archive
- Installing symfony/console (v7.4.8): Extracting archive
- Installing psr/log (3.0.2): Extracting archive
- Installing consolidation/log (3.1.2): Extracting archive
- Installing twig/twig (v3.22.2): Extracting archive
- Installing symfony/yaml (v7.4.8): Extracting archive
- Installing symfony/translation-contracts (v3.6.1): Extracting archive
- Installing symfony/polyfill-php83 (v1.36.0): Extracting archive
- Installing symfony/validator (v7.4.8): Extracting archive
- Installing symfony/serializer (v7.4.8): Extracting archive
- Installing symfony/routing (v7.4.8): Extracting archive
- Installing symfony/http-foundation (v7.4.8): Extracting archive
- Installing psr/http-message (2.0): Extracting archive
- Installing symfony/psr-http-message-bridge (v7.4.8): Extracting archive
- Installing symfony/process (v7.4.8): Extracting archive
- Installing symfony/polyfill-php85 (v1.33.0): Extracting archive
- Installing symfony/polyfill-intl-idn (v1.33.0): Extracting archive
- Installing symfony/mime (v7.4.8): Extracting archive
- Installing psr/event-dispatcher (1.0.0): Extracting archive
- Installing symfony/event-dispatcher-contracts (v3.6.0): Extracting archive
- Installing symfony/event-dispatcher (v7.4.8): Extracting archive
- Installing doctrine/lexer (3.0.1): Extracting archive
- Installing egulias/email-validator (4.0.4): Extracting archive
- Installing symfony/mailer (v7.4.8): Extracting archive
- Installing symfony/var-dumper (v7.4.8): Extracting archive
- Installing symfony/error-handler (v7.4.8): Extracting archive
- Installing symfony/http-kernel (v7.4.8): Extracting archive
- Installing symfony/finder (v7.4.8): Extracting archive
- Installing symfony/filesystem (v7.4.8): Extracting archive
- Installing symfony/var-exporter (v7.4.8): Extracting archive
- Installing symfony/dependency-injection (v7.4.8): Extracting archive
- Installing sebastian/diff (7.0.0): Extracting archive
- Installing revolt/event-loop (v1.0.8): Extracting archive
- Installing php-tuf/composer-stager (v2.0.2): Extracting archive
- Installing pear/pear_exception (v1.0.2): Extracting archive
- Installing pear/console_getopt (v1.4.3): Extracting archive
- Installing pear/pear-core-minimal (v1.10.18): Extracting archive
- Installing pear/archive_tar (1.6.0): Extracting archive
- Installing mck89/peast (v1.17.5): Extracting archive
- Installing masterminds/html5 (2.10.0): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-factory (1.1.0): Extracting archive
- Installing guzzlehttp/psr7 (2.8.1): Extracting archive
- Installing psr/http-client (1.0.3): Extracting archive
- Installing guzzlehttp/promises (2.3.0): Extracting archive
- Installing guzzlehttp/guzzle (7.10.0): Extracting archive
- Installing composer/semver (3.4.4): Extracting archive
- Installing asm89/stack-cors (v2.3.0): Extracting archive
- Installing drupal/core (11.3.7): Extracting archive
- Installing drupal/token (1.17.0): Extracting archive
- Installing drupal/state_machine (1.14.0): Extracting archive
- Installing drupal/entity (1.6.0): Extracting archive
- Installing drupal/profile (1.14.0): Extracting archive
- Installing drupal/rat (1.0.1): Extracting archive
- Installing drupal/inline_entity_form (3.0.0-rc21): Extracting archive
- Installing drupal/entity_reference_revisions (1.14.0): Extracting archive
- Installing drupal/address (2.0.4): Extracting archive
- Installing commerceguys/intl (v2.0.7): Extracting archive
- Installing drupal/commerce (3.3.4): Extracting archive
- Installing drupal/core-recommended (11.3.7)
- Installing nikic/php-parser (v5.7.0): Extracting archive
- Installing psy/psysh (v0.12.22): Extracting archive
- Installing league/container (4.2.5): Extracting archive
- Installing laravel/prompts (v0.3.16): Extracting archive
- Installing dflydev/dot-access-data (v3.0.3): Extracting archive
- Installing grasmash/yaml-cli (3.2.1): Extracting archive
- Installing grasmash/expander (3.0.1): Extracting archive
- Installing consolidation/config (3.2.1): Extracting archive
- Installing consolidation/site-alias (4.1.3): Extracting archive
- Installing consolidation/site-process (5.4.2): Extracting archive
- Installing symfony/polyfill-php81 (v1.36.0): Extracting archive
- Installing phootwork/lang (v3.2.3): Extracting archive
- Installing phootwork/collection (v3.2.3): Extracting archive
- Installing phpowermove/docblock (v4.0): Extracting archive
- Installing consolidation/output-formatters (4.7.1): Extracting archive
- Installing consolidation/annotated-command (4.10.5): Extracting archive
- Installing consolidation/robo (5.1.1): Extracting archive
- Installing consolidation/filter-via-dot-access-data (2.0.3): Extracting archive
- Installing chi-teck/drupal-code-generator (4.2.0): Extracting archive
- Installing drush/drush (13.7.2): Extracting archive
Generating autoload files
45 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Scaffolding files for drupal/core:
- Copy [web-root]/.htaccess from assets/scaffold/files/htaccess
- Copy [web-root]/README.md from assets/scaffold/files/drupal.README.md
- Copy [web-root]/index.php from assets/scaffold/files/index.php
- Copy [web-root]/.csslintrc from assets/scaffold/files/csslintrc
- Copy [web-root]/robots.txt from assets/scaffold/files/robots.txt
- Copy [web-root]/update.php from assets/scaffold/files/update.php
- Copy [web-root]/INSTALL.txt from assets/scaffold/files/drupal.INSTALL.txt
- Copy [web-root]/.eslintignore from assets/scaffold/files/eslintignore
- Copy [web-root]/.eslintrc.json from assets/scaffold/files/eslintrc.json
- Copy [web-root]/.ht.router.php from assets/scaffold/files/ht.router.php
- Copy [web-root]/sites/README.txt from assets/scaffold/files/sites.README.txt
- Copy [project-root]/.editorconfig from assets/scaffold/files/editorconfig
- Copy [web-root]/example.gitignore from assets/scaffold/files/example.gitignore
- Copy [web-root]/themes/README.txt from assets/scaffold/files/themes.README.txt
- Copy [project-root]/.gitattributes from assets/scaffold/files/gitattributes
- Copy [web-root]/modules/README.txt from assets/scaffold/files/modules.README.txt
- Copy [web-root]/profiles/README.txt from assets/scaffold/files/profiles.README.txt
- Copy [project-root]/recipes/README.txt from assets/scaffold/files/recipes.README.txt
- Copy [web-root]/sites/example.sites.php from assets/scaffold/files/example.sites.php
- Copy [web-root]/sites/development.services.yml from assets/scaffold/files/development.services.yml
- Copy [web-root]/sites/example.settings.local.php from assets/scaffold/files/example.settings.local.php
- Copy [web-root]/sites/default/default.services.yml from assets/scaffold/files/default.services.yml
- Copy [web-root]/sites/default/default.settings.php from assets/scaffold/files/default.settings.php
No security vulnerability advisories found.
69e617943838f65ed4dde1c4# /bin/sh -c echo "SIMPLYEST_STAGE_INSTALLING"
SIMPLYEST_STAGE_INSTALLING
69e617943838f65ed4dde1c4# /bin/sh -c cd "${DOCROOT}" && ../vendor/bin/drush si standard --db-url=mysql://tugboat:tugboat@mysql:3306/tugboat --account-name=admin --account-pass=admin -y
You are about to:
 * Create a sites/default/settings.php file
 * CREATE the 'tugboat' database.
// Do you want to continue?: yes.
[warning] Failed to drop or create the database. Do it yourself before installing. ERROR 2026 (HY000): TLS/SSL error: self-signed certificate in certificate chain
[notice] Starting Drupal installation. This takes a while.
[notice] Performed install task: install_select_language
 [notice] Performed install task: install_select_profile
 [notice] Performed install task: install_load_profile
[notice] Performed install task: install_verify_requirements
[notice] Performed install task: install_settings_form
[notice] Performed install task: install_verify_database_ready
[notice] Performed install task: install_base_system
[notice] Performed install task: install_bootstrap_full
[notice] Performed install task: install_profile_modules
[notice] Performed install task: install_profile_themes
[notice] Performed install task: install_install_profile
[notice] Performed install task: install_configure_form
[notice] Performed install task: install_finished
[success] Installation complete. (Admin)
69e617943838f65ed4dde1c4# /bin/sh -c cd "${DOCROOT}" && ../vendor/bin/drush config-set system.logging error_level verbose -y
// Do you want to update error_level key in system.logging config?: yes.
69e617943838f65ed4dde1c4# /bin/sh -c cd "${DOCROOT}" && ../vendor/bin/drush en commerce -y
The following module(s) will be installed: commerce, address, entity, inline_entity_form, token
// Do you want to continue?: yes.
[warning] foreach() argument must be of type array|object, null given InboxMessageFetcher.php:98
[error]  TypeError: Drupal\commerce\InboxMessageFetcher::storeMessages(): Argument #1 ($messages) must be of type array, null given, called in /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php on line 101 in Drupal\commerce\InboxMessageFetcher->storeMessages() (line 114 of /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php) #0 /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php(101): Drupal\commerce\InboxMessageFetcher->storeMessages(NULL)
#1 /var/lib/tugboat/stm/web/modules/contrib/commerce/commerce.install(16): Drupal\commerce\InboxMessageFetcher->fetchNewStoreMessages()
#2 /var/lib/tugboat/stm/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(815): commerce_install(false)
#3 /var/lib/tugboat/stm/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(451): Drupal\Core\Extension\ModuleInstaller->invoke('commerce', 'install', Array)
#4 /var/lib/tugboat/stm/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(229): Drupal\Core\Extension\ModuleInstaller->doInstall(Array, Array, false)
#5 /var/lib/tugboat/stm/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#6 /var/lib/tugboat/stm/vendor/drush/drush/src/Commands/pm/PmCommands.php(101): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#7 [internal function]: Drush\Commands\pm\PmCommands->install(Array, Array)
#8 /var/lib/tugboat/stm/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#9 /var/lib/tugboat/stm/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#10 /var/lib/tugboat/stm/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#11 /var/lib/tugboat/stm/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(389): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /var/lib/tugboat/stm/vendor/symfony/console/Command/Command.php(341): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/lib/tugboat/stm/vendor/symfony/console/Application.php(1117): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/lib/tugboat/stm/vendor/drush/drush/src/Application.php(201): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/lib/tugboat/stm/vendor/symfony/console/Application.php(356): Drush\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/lib/tugboat/stm/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/lib/tugboat/stm/vendor/drush/drush/src/Runtime/Runtime.php(113): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/lib/tugboat/stm/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/lib/tugboat/stm/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run(Array)
#20 /var/lib/tugboat/stm/vendor/bin/drush.php(119): include('/var/lib/tugboa...')
#21 {main}. 
TypeError: Drupal\commerce\InboxMessageFetcher::storeMessages(): Argument #1 ($messages) must be of type array, null given, called in /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php on line 101 in /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php on line 114 #0 /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php(101): Drupal\commerce\InboxMessageFetcher->storeMessages(NULL)
#1 /var/lib/tugboat/stm/web/modules/contrib/commerce/commerce.install(16): Drupal\commerce\InboxMessageFetcher->fetchNewStoreMessages()
#2 /var/lib/tugboat/stm/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(815): commerce_install(false)
#3 /var/lib/tugboat/stm/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(451): Drupal\Core\Extension\ModuleInstaller->invoke('commerce', 'install', Array)
#4 /var/lib/tugboat/stm/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(229): Drupal\Core\Extension\ModuleInstaller->doInstall(Array, Array, false)
#5 /var/lib/tugboat/stm/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#6 /var/lib/tugboat/stm/vendor/drush/drush/src/Commands/pm/PmCommands.php(101): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#7 [internal function]: Drush\Commands\pm\PmCommands->install(Array, Array)
#8 /var/lib/tugboat/stm/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#9 /var/lib/tugboat/stm/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#10 /var/lib/tugboat/stm/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#11 /var/lib/tugboat/stm/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(389): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /var/lib/tugboat/stm/vendor/symfony/console/Command/Command.php(341): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/lib/tugboat/stm/vendor/symfony/console/Application.php(1117): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/lib/tugboat/stm/vendor/drush/drush/src/Application.php(201): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/lib/tugboat/stm/vendor/symfony/console/Application.php(356): Drush\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/lib/tugboat/stm/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/lib/tugboat/stm/vendor/drush/drush/src/Runtime/Runtime.php(113): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/lib/tugboat/stm/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/lib/tugboat/stm/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run(Array)
#20 /var/lib/tugboat/stm/vendor/bin/drush.php(119): include('/var/lib/tugboa...')
#21 {main}
TypeError: Drupal\commerce\InboxMessageFetcher::storeMessages(): Argument #1 ($messages) must be of type array, null given, called in /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php on line 101 in Drupal\commerce\InboxMessageFetcher->storeMessages() (line 114 of /var/lib/tugboat/stm/web/modules/contrib/commerce/src/InboxMessageFetcher.php).
[warning] Drush command terminated abnormally.
Command Failed (Tugboat Error 1064): Exit code: 1; Command: cd "${DOCROOT}" && ../vendor/bin/drush en commerce -y

Issue fork commerce-3585773

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

anruether created an issue. See original summary.

anruether’s picture

Issue summary: View changes
jsacksick’s picture

Likely a transient issue. We should definitely ensure we get an array back before calling storeMessages() though.

anruether’s picture

Likely a transient issue.

Yes, the returned json now does not include the debug data any more (compare to json in issue summary) that obviously caused the error.

[{"id":"message.92","subject":"Welcome to Drupal Commerce!","message":"Drupal Commerce is maintained by Centarro, who has developed and supported the software since its inception in 2010. Hundreds of developers around the world have contributed through the years to help make the platform a success. We\u0027re happy you\u0027re exploring Drupal Commerce for your next project!","cta_text":false,"cta_link":"","send_date":"1703520335","dependencies":[]},{"id":"message.93","subject":"Bookmark the Drupal Answers community support forum","message":"The best place to ask questions about configuring or using Drupal Commerce is the Drupal Answers forum. Many contributors monitor the \u0022commerce\u0022 tag, which makes it easy to find answers that will help you or ask a new question if you can\u0027t find yours.","cta_text":"Open Drupal Answers","cta_link":"https:\/\/drupal.stackexchange.com\/questions\/tagged\/commerce?tab=Newest","send_date":"1702916340","dependencies":[]},{"id":"message.94","subject":"Join the community Slack channel","message":"The #commerce channel in Drupal Slack is the best place to chat with other Drupal Commerce developers. Over 2,500 people from around the world follow the channel where they share their latest work and offer help to others when they can.","cta_text":"Join Drupal Slack","cta_link":"https:\/\/www.drupal.org\/slack","send_date":"1702311835","dependencies":[]}]

  • jsacksick committed c224db7d on 3.x
    fix: #3585773 WSOD due to the InboxMessageFetcher.. must be of type...
jsacksick’s picture

Status: Active » Fixed

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.