Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Could not find a valid ServiceManager for RoutePluginManager #42

Closed
visitek opened this issue Jun 1, 2016 · 7 comments
Closed

Could not find a valid ServiceManager for RoutePluginManager #42

visitek opened this issue Jun 1, 2016 · 7 comments

Comments

@visitek
Copy link

visitek commented Jun 1, 2016

After update zend-mvc from v2 to v3.

Fatal Error: Uncaught Zend\ModuleManager\Listener\Exception\RuntimeException: Could not find a valid ServiceManager for RoutePluginManager in /vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php:202
Stack trace:
#0 /vendor/zendframework/zend-eventmanager/src/EventManager.php(271): Zend\ModuleManager\Listener\ServiceListener->onLoadModulesPost(Object(Zend\ModuleManager\ModuleEvent))
#1 /vendor/zendframework/zend-eventmanager/src/EventManager.php(143): Zend\EventManager\EventManager->triggerListeners(Object(Zend\ModuleManager\ModuleEvent))
#2 /vendor/zendframework/zend-modulemanager/src/ModuleManager.php(129): Zend\EventManager\EventManager->triggerEvent(Object(Zend\ModuleManager\ModuleEvent))
#3 /vendor/zendframework/zend-mvc/src/Application.php(264): Zend\ModuleManager\ModuleManager->loadModules in /vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php:202
@visitek visitek closed this as completed Jun 1, 2016
@visitek
Copy link
Author

visitek commented Jun 1, 2016

hmm router is as module now

@mrowley-mf
Copy link

@visitek Did you find a solution to this issue? Thanks

@visitek
Copy link
Author

visitek commented Jun 30, 2016

add Zend\Router into config under modules

@weierophinney
Copy link
Member

@mrowley-mf See the response from @visitek : all components with MVC integrations now also expose a Module class. Add Zend\Router to the top of your module list, and you'll get the functionality working.

Hint: if you use zend-component-installer, it will prompt you on first install. 😄

@Philio
Copy link

Philio commented Sep 4, 2016

I have the same issue when disabling development mode for an Apigility API following upgrade to the latest version, it works fine in dev mode and I have Zend\Router in my modules list. Any suggestions?

@weierophinney
Copy link
Member

Is there a stale config cache, by any chance? (Look in data/cache/) if so,
and that corrects the issue, phrase report back, as it would need
indicative of a bug in the development mode transitions (they should clear
it).

On Sep 4, 2016 11:37 AM, "Phil Bayfield" [email protected] wrote:

I have the same issue when disabling development mode for an Apigility API
following upgrade to the latest version, it works fine in dev mode and I
have Zend\Router in my modules list. Any suggestions?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#42 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABlV4xg182gVCxq9Xy8s4OxURRAkgJ5ks5qmvPLgaJpZM4IrrW6
.

@Philio
Copy link

Philio commented Sep 4, 2016

Didn't think to check that as was trying to debug a crash from our staging server which clears the cache as part of the deployment.
Turns out the stale local cache was simply masking the real error.

Thanks for your help and quick reply!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants