Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Problem with modules parameter: No modules installed. Are you in the root folder of a ZF2 application? #44

Closed
vagovszky opened this issue May 10, 2013 · 7 comments

Comments

@vagovszky
Copy link

I installed ZF 2.2.0 and ZFTool, when I run "./vendor/bin/zf.php modules" in my application root i got this msg:
No modules installed. Are you in the root folder of a ZF2 application?

I installed ZFTool with composer (as a module).

Others params like (diagnostic, config, etc.) works fine for me..

@timoziemann
Copy link

I just had the same trouble. If you have ZFTool in your vendor/ directory:

  1. of course add "ZFTool" to your "modules" section in the application.config.php
  2. you may then use php public/index.php --version or any other of the commands
  3. another thing i ran into: if you have the module-config-classmaps-thing activated, make sure to clear your cached file ;-)

@dizzley
Copy link

dizzley commented Jun 16, 2013

I had the same issue. BUT I also have the same issue with ./vendor/bin/zf.php create module MyModule ./.

It appears that the ZF Tool runs in vendor/bin. I got round my create module problem using the syntax:
./vendor/bin/zf.php modules MyModule path/to/application/

Of course, there's no way to force the path in the zf.php modules command.

@bickerstoff
Copy link

I have the same problem as vagovszky.

@timoziemann I'm not sure this solves the problem so much as avoids it. I imagine it works, but I don't think zftool was intended to run like that; maybe I'm wrong.

I can see that it is related to it not being able to find the root of the application. If I hard code $basePath to '/path/to/application', it works fine.

@ezimuel
Copy link
Contributor

ezimuel commented Jul 22, 2013

This problem should be fixed by my last push. Check and let me know, thanks.

@vagovszky
Copy link
Author

Now, when I run "./vendor/bin/zf.php modules" it throws an exception: "The application has thrown an exception!"

@ezimuel
Copy link
Contributor

ezimuel commented Jul 23, 2013

@vagovszky I double check right now and it's working for me. Did you installed the ZFTool in you ZF2 application using composer? Did you update it?
You can install ZFTool in a ZF2 application using this command: composer require zendframework/zftool:dev-master. And execute vendor/bin/zf.php modules after that.

@vagovszky
Copy link
Author

I am sorry, problem was on my side. I double check it too, try on empty project and it works fine now..

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

5 participants