Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony2 CMF Configuration #279

Closed
idisoft opened this issue Nov 24, 2014 · 6 comments
Closed

Symfony2 CMF Configuration #279

idisoft opened this issue Nov 24, 2014 · 6 comments

Comments

@idisoft
Copy link

idisoft commented Nov 24, 2014

Hi everyone.

I need your help for a problem that bothers me for 2 days.

There are two days, I started a new adventure to know how to use Symfony2 CMF for my content management needs. I strictly followed all the steps dictated in http://symfony.com/doc/current/cmf/ and everything goes well until the moment I decided to execute the command

  • php doctrine:database:create
    here my shell turn for a good ten seconds and ends with a "CLI stopped working".
    here are my settings:

mon fichier parameters.yml

parameters:
locale: fr
locales: [fr, en, de]

secret: ThisTokenIsNotSoSecretChangeIt

# a little hack to avoid errors on missing node/coffeescript.
# remove -disabled if you want coffee.
coffee.extension: "\.coffee-disabled$"
coffee.bin: ''
coffee.node: ''

database_driver: pdo_mysql
database_host:   localhost
database_port:   
database_name:   testBase
database_user:   root
database_password: 
database_path:

mailer_transport:  smtp
mailer_host:       localhost
mailer_user:       ~
mailer_password:   ~

phpcr:

parameters:

phpcr_backend:

    logging: true

    profiling: true

    type: doctrinedbal

    connection: default

    caches:

        meta: doctrine_cache.providers.phpcr_meta

        nodes: doctrine_cache.providers.phpcr_nodes

    parameters:

        jackalope.check_login_on_server: false

phpcr_workspace: default

phpcr_user: admin

phpcr_pass: admin

All vendors are present via php composer.phar update

Your help would be very useful to me.

Thank you in advance

@dbu
Copy link
Member

dbu commented Nov 24, 2014

hi idisoft. this sounds like you have an issue with your database connection - though normally i would expect a more telling error. did you check if your database connection works like this (root, no password, mysql running on localhost?). note that if testBase already exists, you do not need to run this command as the only thing it does is creating that database...

@idisoft
Copy link
Author

idisoft commented Nov 25, 2014

Thank you for your response dbu. Yes the connection (root, no password) works fine in localhost. I have never encountered this problem with doctrine before trying this cmf. I noticed that no doctrine command is executed without this error (CLI stopped working). Is this problem
related to my configuration???

@dbu
Copy link
Member

dbu commented Nov 25, 2014

really sounds weird. can you try removing vendor/* and re-run composer? i wonder if you ended up with something unstable there. never experienced this.

another option would be to try with sqlite, to see if that makes a difference

@idisoft
Copy link
Author

idisoft commented Nov 26, 2014

No doctrine commands works in my configuration above. I left doctrine for jackrabbit and I've finished this configuration, all is fine till I run this:
php app/console doctrine:phpcr:workspace:create sandbox
doctrine don't work and I don't know why.
Can some one helps me?

@idisoft
Copy link
Author

idisoft commented Nov 26, 2014

When I try to run this command:
C:\wamp\www\SymfCmf>php app/console doctrine:ensure-production-settings --env=prod

I get this error:
The namespace "doctrine" is ambiguous (doctrine:database, doctrine:query an d 11 more).

[InvalidArgumentException]
The namespace "doctrine" is ambiguous (doctrine:database, doctrine:query and 11 more).

does this make sense????
your help please.

@dbu
Copy link
Member

dbu commented Dec 7, 2014

there is no doctrine:ensure-production-settings command provided by the doctrine phpcr-odm bundle. when running app/console it also does not appear in the list. this is why that command does not run.

when you try to create the sandbox workspace, you still get aborted after 10 seconds? did you try to just run app/console? maybe warming the cache takes a long while on your machine. what php version are you on? did you try on a (virtual) machine with linux?

@wouterj wouterj closed this as completed Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants