0

So I have been working with the sonata admin bundle the last two days. I have followed the instructions exactly @ http://sonata-project.org/bundles/admin/2-0/doc/reference/installation.html

This is the error I am getting:

[Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException] You have requested a non-existent parameter "doctrine.connections".

I have yet found one bundle for symfony 2 that works with following there documentation. Its frustrating but i have no choice but to use symfony2.

  • You are probably trying to use the *doctrine.connections* variable in some config file, while you don't have it. Please show us your config files and the *parameters.ini* file. – Samy Dindane Jun 08 '12 at 15:50
  • Can you show the stacktrace also? – Samy Dindane Jun 08 '12 at 16:24
  • No backtrace. I get a 404 if i goto the website or if i work from CLI i get [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException] You have requested a non-existent parameter "doctrine.connections". – user1444891 Jun 08 '12 at 16:30
  • http://pastebin.com/VMfLkreq <- a grep of the code – user1444891 Jun 08 '12 at 16:32
  • Sorry no 404 error internal server error. – user1444891 Jun 08 '12 at 16:33
  • Assuming you are using Symfony 2.0 (and not the latest version from the master branch) I would suggest checking the following: Is Doctrine enabled? It should appear in the registerBundles() method in your AppKernel.php. Also please make sure to use the 2.0 branch of the sonata adminbundle. In your deps file you should have version=refs/remotes/origin/2.0 under [SonataAdminBundle] – Pierre Jun 08 '12 at 17:31

1 Answers1

0

I had the same issue and removing "version=origin/2.0" from my deps file for all the Sonata bundles fixed the issue after running the update vendors script.

jfraser
  • 300
  • 3
  • 7