Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLT-5217: Undefined array key "bootstrap" for Inspector when Drupal is not installed #4684

Closed
shelane opened this issue Jun 21, 2023 · 0 comments · Fixed by #4685
Closed
Labels
Bug Something isn't working

Comments

@shelane
Copy link
Contributor

shelane commented Jun 21, 2023

Describe the bug
When a site does not yet have Drupal installed and the inspector is called to check, there is a PHP Warning thrown:

PHP Warning: Undefined array key "bootstrap" in vendor/acquia/blt/src/Robo/Inspector/Inspector.php on line 192

Verbose output:

[debug] Verifying that Drupal is installed...
[info] Running command /var/www/html//vendor/bin/drush @self --uri=* status --format=json --fields=* --root=/var/www/html/****/docroot

Warning: Undefined array key "bootstrap" in /mnt/www/html/****/vendor/acquia/blt/src/Robo/Inspector/Inspector.php on line 192

To Reproduce
Steps to reproduce the behavior, ideally starting from a fresh install of BLT:

  1. Have a new site that has been created with an empty database where Drupal has not yet been installed
  2. Have a command that calls $this->getInspector()->isDrupalInstalled()
  3. See error

Expected behavior
A boolean value of FALSE should be returned when it is called.

@shelane shelane added the Bug Something isn't working label Jun 21, 2023
@github-actions github-actions bot changed the title Undefined array key "bootstrap" for Inspector when Drupal is not installed BLT-5217: Undefined array key "bootstrap" for Inspector when Drupal is not installed Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant