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
{{ message }}
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
About an hour or so ago I did a composer update which included an automatic update for this module from 2.5.3 to 2.6.2. After this update was installed, the url() view helper fatally stopped working as null === $this->router, which caused it to throw Exception\RuntimeException('No RouteStackInterface instance provided') from Zend\View\Helper\Url at line 54.
Unfortunately, that's all I've got at the moment as I haven't had a chance to dig deeper into what's actually causing the problem, but I'm hoping someone will have an idea from this. That said, I am specifically requiring "zendframework/zendframework": "2.5.*" in composer.json, so it could be a version incompatibility? I've added a require line to force "zendframework/zend-view": "2.5.*" which has resolved the issue for me at least for the time being.
The text was updated successfully, but these errors were encountered:
BenjaminNolan
changed the title
Updating 2.5.3 to 2.6.2 breaks url() view helper, "No RouteStackInterface provided exception"
Updating 2.5.3 to 2.6.2 breaks url() view helper, "No RouteStackInterface instance provided"
Feb 21, 2016
In versions prior to 2.6, we define $invokableClasses. To make these forwards compatible with version 3, we split all $invokableClasses entries into $aliases and $factories entries (with the latter using the new Zend\ServiceManager\Factory\InvokableFactory). The factory keys are fully qualified class names, while the aliases are the "short" names.
What this means is that url is an alias to Zend\View\Helper\Url within the helper plugin manager. However, in zend-mvc, we define an override factory that ensures that the route match and router are injected. The problem? It uses the key "url", and, since an alias also exists with that same name, the alias is resolved. As such, the override factory is never invoked.
I'm going to open a new issue on zend-mvc to address this.
About an hour or so ago I did a
composer update
which included an automatic update for this module from 2.5.3 to 2.6.2. After this update was installed, theurl()
view helper fatally stopped working asnull === $this->router
, which caused it to throwException\RuntimeException('No RouteStackInterface instance provided')
fromZend\View\Helper\Url
at line 54.Unfortunately, that's all I've got at the moment as I haven't had a chance to dig deeper into what's actually causing the problem, but I'm hoping someone will have an idea from this. That said, I am specifically requiring
"zendframework/zendframework": "2.5.*"
incomposer.json
, so it could be a version incompatibility? I've added a require line to force"zendframework/zend-view": "2.5.*"
which has resolved the issue for me at least for the time being.The text was updated successfully, but these errors were encountered: