bramus / mixed-content-scan

Scan your HTTPS-enabled website for Mixed Content
MIT License
522 stars 51 forks source link

Error "GardenCli: parseRaw expects an array" #71

Closed stefahn closed 6 years ago

stefahn commented 6 years ago

I receive this error when trying to run mixed-content-scan https://example.com :

Content-type: text/html; charset=UTF-8 Fatal error: Uncaught Exception: Garden\Cli\Cli::parseRaw expects an array in /files/swm2/composer/.composer/vendor/bramus/mixed-content-scan/vendor/vanilla/garden-cli/src/Cli.php:385 Stack trace:

0 /files/swm2/composer/.composer/vendor/bramus/mixed-content-scan/vendor/vanilla/garden-cli/src/Cli.php(338): Garden\Cli\Cli->parseRaw(NULL)

1 /files/swm2/composer/.composer/vendor/bramus/mixed-content-scan/bin/mixed-content-scan(40): Garden\Cli\Cli->parse(NULL, true)

2 {main}

thrown in /files/swm2/composer/.composer/vendor/bramus/mixed-content-scan/vendor/vanilla/garden-cli/src/Cli.php on line 385

I already added the mixed-content-scan directory to my path, since this was a possible fix suggested in https://github.com/bramus/mixed-content-scan/issues/66, but this didn't help.

Also, I talked to the garden-cli author, but he said this is a mixed-content-scan issue, see https://github.com/vanilla/garden-cli/issues/21.

Using PHP 7.1.9 (fpm-fcgi).

stefahn commented 6 years ago

I found out how to run the tool. For some reason I had to add php_cli in front of the command.