Comments (3)
Same problem here using mac os 10.12.1:
PHP Fatal error: Uncaught Zend\ModuleManager\Listener\Exception\RuntimeException: Could not find a valid ServiceManager for RoutePluginManager in phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php:2
Stack trace:
#0 phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-eventmanager/src/EventManager.php(2): Zend\ModuleManager\Listener\ServiceListener->onLoadModulesPost(Object(Zend\ModuleManager\ModuleEvent))
#1 phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-eventmanager/src/EventManager.php(2): Zend\EventManager\EventManager->triggerListeners(Object(Zend\ModuleManager\ModuleEvent))
#2 phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-modulemanager/src/ModuleManager.php(2): Zend\EventManager\EventManager->triggerEvent(Object(Zend\ModuleManager\ModuleEvent))
#3 phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-mvc/src/Application.php(2): Zend\ModuleManager\ModuleManager->loadModules()
#4 phar:///usr/local/bin/zftool.phar/zf.php(2): Zend in phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php on line 2
Fatal error: Uncaught Zend\ModuleManager\Listener\Exception\RuntimeException: Could not find a valid ServiceManager for RoutePluginManager in phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php:2
Stack trace:
#0 phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-eventmanager/src/EventManager.php(2): Zend\ModuleManager\Listener\ServiceListener->onLoadModulesPost(Object(Zend\ModuleManager\ModuleEvent))
#1 phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-eventmanager/src/EventManager.php(2): Zend\EventManager\EventManager->triggerListeners(Object(Zend\ModuleManager\ModuleEvent))
#2 phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-modulemanager/src/ModuleManager.php(2): Zend\EventManager\EventManager->triggerEvent(Object(Zend\ModuleManager\ModuleEvent))
#3 phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-mvc/src/Application.php(2): Zend\ModuleManager\ModuleManager->loadModules()
#4 phar:///usr/local/bin/zftool.phar/zf.php(2): Zend in phar:///usr/local/bin/zftool.phar/vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php on line 2
When I use the zftools in a ZEND skeleton (https://github.com/zendframework/ZendSkeletonApplication) it prints out some HTML
from zftool.
Old issue I solved recently. It is caused by choosing too liberal way of composer's dependency versioning. There were too many >=
showing lack of experience on dependency management subject. If anythig would break, it will break with MAJOR. Selecting >= 2.2.2
as lower number boundary (that implicates there is no upper limit for version) causes some serious issues if anyone chnages their API upgrading MAJOR to let others know, that there are some major changes ( some of them might be not backward-compatible ).
TL; DR - just remove >=
signs from ZFTools composer.json, remove vendor directory and perform composer update
(and you might want to perform composer install
as well) and bin/create-phar
.
In your app consider as well some changes might break your app.
That fix is simple and imperfect - best choice would be for authors to change dependencies to most recent and yet compatible versions of zend-mvc and other components.
from zftool.
My bad. That actually wasn't the whole truth. It seems composer.json is lacking entry for zendframework or one of it's dependencies.
Short and pretty bad fix is to add zendframework as depedency. But then zftool.phar becomes 8MB file and generating it takes a while.
We have to inspect it and search for real problem.
from zftool.
Related Issues (20)
- No namespace in module config file after creation
- zftool.phar: command not found HOT 3
- Can't install using composer HOT 7
- Create action doesn't work HOT 2
- Enable Travis-ci service HOT 2
- Enable phpcs
- Add documentation about json response in diagnostics
- Controller creation fails when directory is missing
- Error on display config list HOT 2
- create Action fails when using project path
- ZFTool keeps saying it has thrown an exception when no exception is listed. HOT 2
- Create classmap on Windows OS HOT 2
- Zend 3 compatible? HOT 8
- zf.php version not showing version
- unable to find download link of zftool.phar HOT 1
- zftool config list seems to be executing MVC code...
- What is the license of this project? HOT 2
- Error install composer HOT 8
- Default loading page does not load Zend framework 3 .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zftool.