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.

[4.0][BUG] Unable to prepare route for serialization.

See original GitHub issue

Bug report

What I did

php artisan optimize

What happened

 LogicException

  Unable to prepare route [admin/category] for serialization. Another route has already been assigned name [admin.category.store].

  at C:\laragon\www\WTrans\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:206
    202|             $route->name($name = $this->generateRouteName());
    203|
    204|             $this->add($route);
    205|         } elseif (! is_null($symfonyRoutes->get($name))) {
  > 206|             throw new LogicException("Unable to prepare route [{$route->uri}] for serialization. Another route has already been assigned name [{$name}].");
    207|         }
    208|
    209|         $symfonyRoutes->add($name, $route->toSymfonyRoute());
    210|

  1   C:\laragon\www\WTrans\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:179
      Illuminate\Routing\AbstractRouteCollection::addToSymfonyRoutesCollection(Object(Symfony\Component\Routing\RouteCollection), Object(Illuminate\Routing\Route))

  2   C:\laragon\www\WTrans\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:246
      Illuminate\Routing\AbstractRouteCollection::toSymfonyRouteCollection()

Backpack, Laravel, PHP, DB version

### PHP VERSION:
PHP 7.4.2 (cli) (built: Jan 21 2020 17:52:43) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

### LARAVEL VERSION:
v7.0.8@d71ba61d51aec79a0a0f907991ec215dc24b09d4

### BACKPACK VERSION:
4.0.49@986f5e69593eab33e567787e0c28efb6747cd7b5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

4reactions
pxpmcommented, Mar 9, 2020

As me and @tabacitu already suspected.

Dunno why now it’s complaining, we are just going to make sure we don’t use the route anywhere like #2525

@lotarbo indeed, I have also confirmed that removing the PUT route ends the problem.

I think it’s safe to remove because we are not using it, we use the POST one.

I will open a PR for it.

Thank you all for the input, it really helped to tackle this one down.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes - Django REST framework
url once in serialization, for improved performance. Fix an edge case where throttling calculations could error after a configuration change. 3.10.2. Date: 29th ......
Read more >
SAP BTP Connectivity
Create and configure HTTP destinations to make Web connections. • Connect to on-premise systems via HTTP, using the. Cloud Connector.
Read more >
An Introduction to e4
another route. The complete application is defined and made up from one single model. You'll learn in later sections of the tutorial how...
Read more >
Appendix E. MySQL Change History
This appendix lists the changes from version to version in the MySQL 5.0 source code through MySQL 5.0.26. For changes made to versions...
Read more >
Appendix C. MySQL Change History - Oracle Help Center
Note that we tend to update the manual at the same time we make changes to MySQL. If you find a recent version...
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