question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Add MenuCRUD version bump to v5 upgrade docs?

See original GitHub issue

Bug 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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
miquelangeldcommented, Apr 24, 2022

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!!

0reactions
miquelangeldcommented, Apr 24, 2022

Hey @miquelangeld ,

Can you please try bumping the “backpack/menucrud” version to “^3.0.0” in your composer.json, then running composer update again? Does that fix it for you?

Cheers!

Hi @tabacitu I tried and also I needed to bump langfilemanager. And composer started to update, but then I get this error:

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi PHP Fatal error: 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_ in /home/info.marhotels.dev/public_html/app/Http/Controllers/Admin/HotelCrudController.php on line 15

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;

  +1 vendor frames 

2 [internal]:0 Whoops\Run::handleShutdown() Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255

Read more comments on GitHub >

github_iconTop Results From Across the Web

3.11.1. Upgrading with Git — Bugzilla 5.0.6 documentation
Upgrading to new Bugzilla releases is very simple, and you can upgrade from any version to any later version in one go -...
Read more >
version_bump_podspec - fastlane docs
Parameters ; version_number, Change to a specific version. This will replace the bump type value ; version_appendix, Change version appendix to a specific...
Read more >
gdb-6.4/gdb/ChangeLog-1991 - toolchain/gdb.git - Git at Google
macro that invokes a function pointer in next_symbol_text_func. * mipsread.c: Added comments various places to. explain what is going on.
Read more >
gdb/ChangeLog-1991 ... - GitLab at Illinois
procfs.c: Many small changes to add base support for a new ... buildsym.c (read_struct_type): Avoid sun3 compiler bug with ... NEW, depend: Update....
Read more >
https://opensource.apple.com/source/gdb/gdb-768/sr...
Sat Dec 7 04:12:35 1991 John Gilmore (gnu at cygnus.com) GDB-4.3 release! * Makefile.in: Roll VERSION to 4.3 * README, TODO, WHATS.NEW, depend:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found