Closed hatimox closed 10 years ago
cannot reproduce, we need a stack trace or a log to find out more
I have the same problem. @rande
I did all the instructions of documentation:
http://sonata-project.org/bundles/formatter/2-2/doc/reference/installation.html
My composer.json is:
"sonata-project/admin-bundle": "dev-master",
"sonata-project/datagrid-bundle": "2.2.*@dev",
"sonata-project/core-bundle": "~2.2@dev",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/intl-bundle": "dev-master",
"sonata-project/cache-bundle": "dev-master",
"sonata-project/cache": "~1.0@dev",
"sonata-project/block-bundle": "@dev",
"sonata-project/jquery-bundle": "@dev",
"sonata-project/doctrine-extensions": "1.0.0",
"sonata-project/user-bundle": "dev-master",
"sonata-project/easy-extends-bundle": "dev-master",
"sonata-project/exporter": "1.3.*",
"knplabs/knp-menu": "1.1.*",
"sonata-project/formatter-bundle": "~2.2@dev"
And I get the error:
ServiceNotFoundException: The service "sonata.formatter.twig.env.markdown" has a dependency on a non-existent service "sonata.media.formatter.twig".
Just remove the sonata.media.formatter.twig from the formatter configuration .
Thomas Rabaix http://rabaix.net - http://sonata-project.org On Jul 7, 2014 4:44 PM, "Chrysweel" notifications@github.com wrote:
I have the same problem.
I did all the instructions of documentation:
http://sonata-project.org/bundles/formatter/2-2/doc/reference/installation.html
My composer.json is:
"sonata-project/admin-bundle": "dev-master", "sonata-project/datagrid-bundle": "2.2.@dev", "sonata-project/core-bundle": "~2.2@dev", "sonata-project/doctrine-orm-admin-bundle": "dev-master", "sonata-project/intl-bundle": "dev-master", "sonata-project/cache-bundle": "dev-master", "sonata-project/cache": "~1.0@dev", "sonata-project/block-bundle": "@dev", "sonata-project/jquery-bundle": "@dev", "sonata-project/doctrine-extensions": "1.0.0", "sonata-project/user-bundle": "dev-master", "sonata-project/easy-extends-bundle": "dev-master", "sonata-project/exporter": "1.3.", "knplabs/knp-menu": "1.1.*", "sonata-project/formatter-bundle": "~2.2@dev"
And I get the error:
ServiceNotFoundException: The service "sonata.formatter.twig.env.markdown" has a dependency on a non-existent service "sonata.media.formatter.twig".
— Reply to this email directly or view it on GitHub https://github.com/sonata-project/SonataFormatterBundle/issues/41#issuecomment-48187460 .
ok @rande thanks ! If I delete this service I not see the error.
But how can I use the formatter in a classAdmin ?
This is not correct.
http://sonata-project.org/bundles/formatter/2-2/doc/reference/usage.html#form
Are there other documentation or example ?
With the code of documentation: I get the error:
Could not load type "sonata_formatter_type_selector"
@Chrysweel Got the same problem.
For some reason, you have to add Sonata media bundle in your composer.json:
"sonata-project/media-bundle": "dev-master"
Configure it according to the doc: http://sonata-project.org/bundles/media/2-2/doc/reference/installation.html
Finally, you'll need to update your appKernel with the following lines:
new JMS\SerializerBundle\JMSSerializerBundle(),
new Sonata\MediaBundle\SonataMediaBundle(),
new Sonata\FormatterBundle\SonataFormatterBundle(),
Hope this helps
Hello , I'm trying to integrate the Formatter bundle with my sonata admin backend but i get this error:
ServiceNotFoundException: The service "sonata.formatter.twig.env.markdown" has a dependency on a non-existent service "sonata.media.formatter.twig"
so can you help me to fix this
thanks
fixed by removing this line from the config :+1:
but i get a white screen and i cant see why ?