[Bug] Add MenuCRUD version bump to v5 upgrade docs?
See original GitHub issueBug report
What I did
Upgrade to Backpack 5 and install the pro tools in our test environment
What I expected to happen
Achieve the upgrade
What happened
I get a dependency error:
Problem 1 - Conclusion: don’t install backpack/crud 5.0.14 - Conclusion: don’t install backpack/crud 5.0.13 - Conclusion: don’t install backpack/crud 5.0.12 - Conclusion: don’t install backpack/crud 5.0.11 - Conclusion: don’t install backpack/crud 5.0.10 - Conclusion: don’t install backpack/crud 5.0.9 - Conclusion: don’t install backpack/crud 5.0.8 - Conclusion: don’t install backpack/crud 5.0.7 - Conclusion: don’t install backpack/crud 5.0.6 - Conclusion: don’t install backpack/crud 5.0.5 - Conclusion: don’t install backpack/crud 5.0.4 - Conclusion: don’t install backpack/crud 5.0.3 - Conclusion: don’t install backpack/crud 5.0.2 - Conclusion: don’t install backpack/crud 5.0.1 - Conclusion: don’t install backpack/crud 5.0.0 - backpack/menucrud 2.0.5 requires backpack/crud ^4.1.0|^4.0.0 -> satisfiable by backpack/crud[4.0.x-dev, 4.1.x-dev]. - backpack/menucrud 2.0.0 requires backpack/crud ^4.0.0 -> satisfiable by backpack/crud[4.0.x-dev, 4.1.x-dev]. - backpack/menucrud 2.0.1 requires backpack/crud ^4.0.0 -> satisfiable by backpack/crud[4.0.x-dev, 4.1.x-dev]. - backpack/menucrud 2.0.2 requires backpack/crud ^4.0.0 -> satisfiable by backpack/crud[4.0.x-dev, 4.1.x-dev]. - backpack/menucrud 2.0.4 requires backpack/crud ^4.1.0|^4.0.0 -> satisfiable by backpack/crud[4.0.x-dev, 4.1.x-dev]. - backpack/menucrud 2.0.5 requires backpack/crud ^4.1.0|^4.0.0 -> satisfiable by backpack/crud[4.0.x-dev, 4.1.x-dev]. - backpack/menucrud v2.0.3 requires backpack/crud ^4.0.0 -> satisfiable by backpack/crud[4.0.x-dev, 4.1.x-dev]. - Can only install one of: backpack/crud[v5.x-dev, 4.1.x-dev]. - Can only install one of: backpack/crud[v5.x-dev, 4.0.x-dev]. - Can only install one of: backpack/crud[v5.x-dev, 4.0.x-dev]. - Installation request for backpack/crud ^5.0.0 -> satisfiable by backpack/crud[5.0.0, 5.0.1, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7, 5.0.8, 5.0.9, v5.x-dev]. - Installation request for backpack/menucrud ^2.0 -> satisfiable by backpack/menucrud[2.0.0, 2.0.1, 2.0.2, 2.0.4, 2.0.5, v2.0.3].
What I’ve already tried to fix it
We upgraded to 4.1.69 backpack, but still have the same error
Is it a bug in the latest version of Backpack?
After I run composer update backpack/crud
the bug… is it still there?
YES
Backpack, Laravel, PHP, DB version
Backpack: 4.1.69 php 7.4
When I run php artisan backpack:version
the output is:
PHP VERSION:
PHP 7.4.3 (cli) (built: Nov 25 2021 23:16:22) ( NTS ) Copyright © The PHP Group Zend Engine v3.4.0, Copyright © Zend Technologies with Zend OPcache v7.4.3, Copyright ©, by Zend Technologies
LARAVEL VERSION:
v8.83.8@cf430301ad17656b3d918995bcdd0454c3c119b9
BACKPACK VERSION:
4.1.69@248e2e034cedcffe01732cdce01fb3d1ecad9ffa
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Never mind, It was a composer version issue, using composer v2 worked like a charm. I just needed to bump backpack/menucrud and also backpack/langfilemanager. Thanks!!
Hi @tabacitu I tried and also I needed to bump langfilemanager. And composer started to update, but then I get this error:
Symfony\Component\ErrorHandler\Error\FatalError
During class fetch: Uncaught Error: Class ‘Composer\InstalledVersions’ not found in /home/info.marhotels.dev/public_html/vendor/backpack/crud/src/helpers.php:296 Stack trace: #0 /home/info.marhotels.dev/public_html/vendor/backpack/crud/src/app/Http/Controllers/Operations/FetchOperation.php(7): backpack_pro() #1 /home/info.marhotels.dev/public_html/vendor/composer/ClassLoader.php(444): include(‘/home/info.marh…’) #2 /home/info.marhotels.dev/public_html/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile() #3 [internal function]: Composer\Autoload\ClassLoader->loadClass() #4 /home/info.marhotels.dev/public_html/app/Http/Controllers/Admin/HotelCrudController.php(15): spl_autoload_call() #5 /home/info.marhotels.dev/public_html/vendor/composer/ClassLoader.php(444): include(‘/home/info.marh…’) #6 /home/info.marhotels.dev/public_html/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile() #7 [internal function]: Composer\Autoload\ClassLoader->loadClass() #8 [internal function]: spl_
at app/Http/Controllers/Admin/HotelCrudController.php:15 11▕ * Class HotelCrudController 12▕ * @package App\Http\Controllers\Admin 13▕ * @property-read \Backpack\CRUD\app\Library\CrudPanel\CrudPanel $crud 14▕ */ ➜ 15▕ class HotelCrudController extends CrudController 16▕ { 17▕ use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation; 18▕ use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation; 19▕ use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation;
Whoops\Exception\ErrorException
During class fetch: Uncaught Error: Class ‘Composer\InstalledVersions’ not found in /home/info.marhotels.dev/public_html/vendor/backpack/crud/src/helpers.php:296 Stack trace: #0 /home/info.marhotels.dev/public_html/vendor/backpack/crud/src/app/Http/Controllers/Operations/FetchOperation.php(7): backpack_pro() #1 /home/info.marhotels.dev/public_html/vendor/composer/ClassLoader.php(444): include(‘/home/info.marh…’) #2 /home/info.marhotels.dev/public_html/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile() #3 [internal function]: Composer\Autoload\ClassLoader->loadClass() #4 /home/info.marhotels.dev/public_html/app/Http/Controllers/Admin/HotelCrudController.php(15): spl_autoload_call() #5 /home/info.marhotels.dev/public_html/vendor/composer/ClassLoader.php(444): include(‘/home/info.marh…’) #6 /home/info.marhotels.dev/public_html/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile() #7 [internal function]: Composer\Autoload\ClassLoader->loadClass() #8 [internal function]: spl_
at app/Http/Controllers/Admin/HotelCrudController.php:15 11▕ * Class HotelCrudController 12▕ * @package App\Http\Controllers\Admin 13▕ * @property-read \Backpack\CRUD\app\Library\CrudPanel\CrudPanel $crud 14▕ */ ➜ 15▕ class HotelCrudController extends CrudController 16▕ { 17▕ use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation; 18▕ use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation; 19▕ use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation;
2 [internal]:0 Whoops\Run::handleShutdown() Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255