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 wizard : PHP Fatal error #2613

Closed
cosmicdreams opened this issue Mar 8, 2018 · 2 comments
Closed

blt wizard : PHP Fatal error #2613

cosmicdreams opened this issue Mar 8, 2018 · 2 comments
Labels
Support A support request

Comments

@cosmicdreams
Copy link

cosmicdreams commented Mar 8, 2018

My system information:

  • Operating system type: Mac OS
  • Operating system version: 10.13.3
  • BLT version: 9.0.1

Output of blt doctor:

+---------------------------+--------------------------------------------+
| Property                  | Value                                      |
+---------------------------+--------------------------------------------+
| blt-version               | 9.0.1                                      |
| composer-version          | Composer version 1.6.3 2018-01-31 16:28:17 |
| root                      | /Users/cweber/Sites/blt-base/docroot       |
| stacks.drupal-vm.inited   | true                                       |
| stacks.dev-desktop.inited | false                                      |
| uri                       | default                                    |
+---------------------------+--------------------------------------------+
+------------------------------------------+--------------------------------------------------------------+
| Check                                    | Problem                                                      |
+------------------------------------------+--------------------------------------------------------------+
| BehatCheck:checkBaseUrl:uri              | base_url in tests/behat/local.yml does not match the site    |
|                                          | URI.                                                         |
|                                          |   Behat base_url is set to                                   |
|                                          | http://local.blt-base.com.                                   |
|                                          |   Drush site URI is set to default.                          |
| ConfigCheck:checkGitConfig               | Git repositories are not defined in blt.yml.                 |
|                                          |   Add values for git.remotes to blt.yml to enabled automated |
|                                          | deployment.                                                  |
| DbCheck:checkRequiredKeys                | drush status is missing the 'db-hostname' key.               |
| DrupalCheck:checkDrupalBootstrapped      | Could not bootstrap Drupal via drush without alias.          |
| DrupalCheck:checkDrupalInstalled         | Drupal is not installed.                                     |
|                                          |                                                              |
|                                          | Run `blt drupal:install` to install Drupal locally.          |
| DrupalVmCheck:checkDrupalVm:alias        | The drush alias assigned to drush.aliases.local does not     |
|                                          | exist in your drush aliases file.                            |
|                                          |   drush.aliases.local is set to @@blt-base.local             |
| FileSystemCheck:checkFileSystem:%files   | Public files directory is not set.                           |
| FileSystemCheck:checkFileSystem:%private | Private files directory is not set.                          |
| FileSystemCheck:checkFileSystem:%temp    | Temporary files directory is not set.                        |
| NodeCheck:checkNodeVersionFileExists     | Neither .nvmrc nor .node-version file found in repo root.    |
| PhpCheck:checkPhpDateTimezone            | PHP setting for date.timezone is not set.                    |
|                                          |   Define date.timezone in /usr/local/etc/php/7.1/php.ini     |
| WebUriCheck:checkUri                     | Site URI is not set                                          |
|                                          | Is options.uri set correctly in                              |
|                                          | /Users/cweber/Sites/blt-base/docroot/sites/default/local.dru |
|                                          | sh.yml?                                                      |
+------------------------------------------+--------------------------------------------------------------+
[error]  BLT Doctor discovered one or more critical issues. 

When I run this command:

blt wizard

I get the following output:

PHP Fatal error:  Uncaught TypeError: Argument 2 passed to Acquia\Blt\Robo\BltTasks::invokeCommand() must be of the type array, string given

And I expected this to happen:
That the blt wizard process would handle any issues for me and upgrade my blt < 9 config to current.

@grasmash
Copy link
Contributor

grasmash commented Mar 9, 2018

“blt update” will update your config, blt wizard is for new projects.

@grasmash grasmash added the Support A support request label Mar 9, 2018
@nirojghale-iheartmedia
Copy link

I think this is still a bug but I fixed locally by changing the string input to array input like
$this->invokeCommand('vm', ['--yes']);

grasmash added a commit to grasmash/bolt that referenced this issue Mar 14, 2018
grasmash added a commit to grasmash/bolt that referenced this issue Mar 14, 2018
grasmash added a commit to grasmash/bolt that referenced this issue Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support A support request
Projects
None yet
Development

No branches or pull requests

3 participants