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] backpack pro installation error

See original GitHub issue

Bug report

What I did

composer require backpack/pro ??

What I expected to happen

it to install ??

What happened

when composer listed Generating optimized autoload files, I got this error:

In UrlGenerator.php line 120:

Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in /var/www/dux/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on
line 65

??

What I’ve already tried to fix it

??

Is it a bug in the latest version of Backpack?

yes After I run composer update backpack/crud the bug… is it still there?

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is: I cant run thsi because it I keep getting the same error message.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pxpmcommented, Mar 22, 2022

Hello @firecentaur

I am not sure the error is in Backpack code, but I think it migth be something on your side.

I just installed a fresh Laravel with Backpack CRUD+PRO and everything went smooth. From a quick search it migth happen if you use helpers in your config files, by any chance you have changed your configs recently or something ?

What leads to that error ? Can you post more from the stacktrace ?

Can’t you do composer install backpack/pro in other project ?

Thanks

0reactions
pxpmcommented, Mar 23, 2022

Glad you solved it. You can store the path string in config and use the asset() helper in your blade file.

Going to close, thanks 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG]Problem with downloading with backpack/crud #3468
What happens is that when installing backpack / crud (4.1.30) it locks on the progress bar and does not download the package.
Read more >
When installing Backpack PRO v5 I get a "failed to download ...
1) into cache Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos Head to https://github.
Read more >
[critical] dpkg error while processing - can't install nor upgrade
It seems you have created a directory where a file is supposed to be. For support on your system, please use askubuntu, the...
Read more >
2.6 Version installation failed - Error - Enscape Forum
Hi everyone, I am using the 2.5 version of Enscape wich is running good on my computer. When I try to launch the...
Read more >
Visual Studio can't be updated or installed error code : 1714
I tried Updating visual studio 17, and I coulden't because of an error "The older version of vs_minshellmsi cannot be removed.
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