I get this error "Undefined index: driver " when I try to deploy a Bitbucket repo on Forge but only if "composer update" is checked. If I'am uncheck it works.
Here are the last few lines from Forges error message:
- Installing classpreloader/classpreloader (1.2.0)
Loading from cache
- Installing laravel/framework (v5.0.23)
Loading from cache
Generating autoload files
Generating optimized class loader
Compiling common classes
[ErrorException]
Undefined index: driver
Hi @MichaelGrossklos , were you able to get this sorted? If so, what did you do? I'm running into a similar issue, and am having difficulty solving it. Thanks.
Here is the error I receive:
[deploy@<ipaddress>] (qa) Generating autoload files
[deploy@<ipaddress>] (qa) > php artisan clear-compiled
[deploy@<ipaddress>] (qa)
[deploy@<ipaddress>] (qa) [ErrorException]
Undefined index: driver
[deploy@<ipaddress>] (qa) Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[deploy@<ipaddress>] (qa) [RuntimeException]
Error Output:
Looks like an error during the composer "post-update-cmd" step during php artisan optimize. You could try unchecking the composer install on forge panel and running composer update after SSH into server. I know there are more than a few issues concerning bitbucket deploys. I believe Envoyer handles bitbucket a bit better. Personally, I use Forge, Envoyer, Github and sometimes Envoy for Laravel projects.