You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after updating to 3.0.5, the DebugBar shows an error about RouteList not having method getModule().
After some investigation the problem seems to be with the transition from Application\Routers* classes to Nette\Routing* (mentioned in release notes for 3.0.5), as the RouteList in nette/application has the method, but the one in nette/routing does not.
The $router in this section is instance of \Nette\Routing\RouteList instead of \Nette\Application\Routers\RouteList (which has the mentioned method available).
Here is the screen from DebugBar :
When downgraded to 3.0.4 everything works as expected.
Steps To Reproduce
Upgrade to nette/application:3.0.5
Expected Behavior
Working routing panel
Possible Solution
Porting module functionality to RouteList in nette/routing ?
P.S.: Sorry for not sending the pull request with the fix, as I know the line which is buggy, but I don't know the concept behind the transition so I'm not able to fix it (at the moment) :/
The text was updated successfully, but these errors were encountered:
dg
added a commit
that referenced
this issue
Jul 12, 2020
Version: 3.0.5
Bug Description
Hi,
after updating to 3.0.5, the DebugBar shows an error about RouteList not having method getModule().
After some investigation the problem seems to be with the transition from Application\Routers* classes to Nette\Routing* (mentioned in release notes for 3.0.5), as the RouteList in nette/application has the method, but the one in nette/routing does not.
This line seems to be the culprit:
application/src/Bridges/ApplicationTracy/RoutingPanel.php
Line 108 in 139ae54
The
$router
in this section is instance of\Nette\Routing\RouteList
instead of\Nette\Application\Routers\RouteList
(which has the mentioned method available).Here is the screen from DebugBar :
When downgraded to 3.0.4 everything works as expected.
Steps To Reproduce
Upgrade to
nette/application:3.0.5
Expected Behavior
Working routing panel
Possible Solution
Porting module functionality to RouteList in nette/routing ?
P.S.: Sorry for not sending the pull request with the fix, as I know the line which is buggy, but I don't know the concept behind the transition so I'm not able to fix it (at the moment) :/
The text was updated successfully, but these errors were encountered: