Error since upgrading to Symfony 5.3
Closed this issue · 1 comments
charlesastwood commented
Have upgraded from 4.4 to 5.3 and getting an error with the routing.
The lines in my twig template:
{% include "@CKSourceCKFinder/setup.html.twig" %}
Are causing an error:
An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "ckfinder_connector" as such route does not exist.").
If I manually put in the JS instead I can see CKEditor but clicking on the Insert Image gives the same error:
<script type="text/javascript" src="/bundles/cksourceckfinder/ckfinder/ckfinder.js"></script>
<script>CKFinder.config( { connectorPath: '/ckfinder/connector' } );</script>
If I dump my routes using the console I can see the connector:
ckfinder_connector ANY ANY ANY /ckfinder/connector
If I get further info about this I get:
+--------------+--------------------------------------------------------------------------------------------+
| Property | Value |
+--------------+--------------------------------------------------------------------------------------------+
| Route Name | ckfinder_connector |
| Path | /ckfinder/connector |
| Path Regex | {^/ckfinder/connector$}sDu |
| Host | ANY |
| Host Regex | |
| Scheme | ANY |
| Method | ANY |
| Requirements | NO CUSTOM |
| Class | Symfony\Component\Routing\Route |
| Defaults | _controller: CKSource\Bundle\CKFinderBundle\Controller\CKFinderController::requestAction() |
| Options | compiler_class: Symfony\Component\Routing\RouteCompiler |
| | utf8: true |
+--------------+--------------------------------------------------------------------------------------------+
Looking at what has caused it, it looks like the new Kernel.php code in src is creating the error. If I revert that file to the previous code it works again, so must be something to do with that.
charlesastwood commented
Updating all other recipes one of them fixed this