[Bug] `php artisan backpack:require:devtools` doesn't work
See original GitHub issueBug report
What I did
In a Backpack demo, I ran php artisan backpack:require:devtools
to install DevTools.
What I expected to happen
Prompt for user & password and install DevTools.
What happened
Did NOT prompt for user & password.
The output made me think it’s installed now:
That last command was never run, though. I didn’t notice it at the time, but php artisan backpack:devtools:install
definitely wasn’t run, since I didn’t see the big fat notice of not having DevTools in production. Anyway, then I go to my browser expecting to be able to click the DevTools
menu item, but here’s what I see:
Now my entire Laravel app is broken. Note that the only changes it ACTUALLY made were in composer.json
:
But apparently the process stopped after composer config
for some reason, didn’t do any of the next stuff, but the output makes it look like it DID, and it’s really confusing.
Anyway, I could get the Laravel app to work again by running composer install
. But… still no DevTools. Only a composer update
would do that I guess.
What I’ve already tried to fix it
- Tried doing the same but with the
--debug
flag, didn’t produce any extra output; - Tried installing using the instructions on the DevTools README - worked fine;
- Tried running
php artisan backpack:install
- same problem (no surprise there);
Versions
### PHP VERSION:
PHP 7.4.21 (cli) (built: Jul 12 2021 03:04:54) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans
with Zend OPcache v7.4.21, Copyright (c), by Zend Technologies
### LARAVEL VERSION:
v8.62.0@60a7e00488167ce2babf3a2aeb3677e48aaf39be
### BACKPACK VERSION:
4.1.54@6f0ddffbe2017ef0e0d9becf5e9f422a81d94c45
Can you reproduce this @promatik ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (11 by maintainers)
Top GitHub Comments
@tabacitu exceptional news on this!
I was working on the logging we talked, it seemd reasonable to atleast know why it fails.
I tried again in another demo project I have here. I logged the error and found the culprit!
It seems the root cause for the failing process is the fact that we require
doctrine/dbal 2.6
in demo project to support older versions of Laravel, and in Devtools we don’t support those versions and require an higher version.I’ve tested upgrading
dbal
to3.*
and after run the command without issues. Can you try it too @tabacitu ?Best, Pedro
@tabacitu we already do that 😅 But in this case the it is really impossible to install/update, DevTools depends on blueprint >1.25, and blueprint 1.25 depends on dbal 3. Composer can’t handle that 🤷♂️
In the between, I added this error to the install log.
The fix is now on #3843.
I’ll close this one for now ✌