Cannot automatically enable Email No-reply on custom Profile Install

Created on 21 March 2023, over 1 year ago
Updated 18 April 2023, about 1 year ago

Cannot automatically enable Email No-reply on custom Profile Install

Steps to reproduce

1. Create a simple Profile called noreply_email, containing the following file: noreply_email.info.yml

name: Noreply
type: profile
description: test
core: 8.x
core_version_requirement: ^8 || ^9

install:
  - email_noreply:email_noreply

2. Run drush si noreply_email

I get the following stack trace using Drupal 9.5.5

[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
 [error]  TypeError: array_merge(): Argument #2 must be of type array, null given in array_merge() (line 992 of /var/www/html/web/core/includes/install.inc) #0 /var/www/html/web/core/includes/install.inc(992): array_merge(Array, NULL)
#1 /var/www/html/web/core/includes/install.core.inc(2069): drupal_check_profile('noreply_email')
#2 /var/www/html/web/core/includes/install.core.inc(1082): install_check_requirements(Array)
#3 /var/www/html/web/core/includes/install.core.inc(700): install_verify_requirements(Array)
#4 /var/www/html/web/core/includes/install.core.inc(571): install_run_task(Array, Array)
#5 /var/www/html/web/core/includes/install.core.inc(119): install_run_tasks(Array, Array)
#6 /var/www/html/vendor/drush/drush/includes/drush.inc(129): install_drupal(Object(Composer\Autoload\ClassLoader), Array, Array)
#7 /var/www/html/vendor/drush/drush/includes/drush.inc(113): drush_call_user_func_array('install_drupal', Array)
#8 /var/www/html/vendor/drush/drush/src/Commands/core/SiteInstallCommands.php(152): drush_op('install_drupal', Object(Composer\Autoload\ClassLoader), Array, Array)
#9 [internal function]: Drush\Commands\core\SiteInstallCommands->install('noreply_email', Array)
#10 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#11 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#14 /var/www/html/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/html/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/html/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#21 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#22 /var/www/html/vendor/bin/drush(120): include('/var/www/html/v...')
#23 {main}. 
πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sassafrass

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

Comments & Activities

Production build 0.69.0 2024