Sonata Admin Bundle compatability

1,307 views
Skip to first unread message

NicParry

unread,
Apr 13, 2012, 8:24:15 AM4/13/12
to sonata...@googlegroups.com
Hi there,

I'm trying to follow the installation tutorials here: http://sonata-project.org/bundles/admin/2-0/doc/reference/installation.html 

I keep running into problems at the end that appear to be a problem with the compatibility of the master branch of the bundles installed and Symfony 2.0.12

eg: 
Fatal error: Declaration of Sonata\AdminBundle\Form\Extension\Field\Type\FormTypeFieldExtension::getDefaultOptions() must be compatible with that of Symfony\Component\Form\FormTypeExtensionInterface::getDefaultOptions()

Is there some way to tell which version/s to install that will be compatible with the current version of symfony2 or a way to know which version of symfony2 is compatible with the installed bundles?

Thanks  

Thomas Rabaix

unread,
Apr 13, 2012, 9:27:50 AM4/13/12
to sonata...@googlegroups.com
I have updated the documentation, please use the 2.0 branch.

--
You received this message because you are subscribed to the Google Groups "sonata-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sonata-users/-/ZqA6z7du8M4J.
To post to this group, send email to sonata...@googlegroups.com.
To unsubscribe from this group, send email to sonata-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sonata-users?hl=en.



--
Thomas Rabaix
http://rabaix.net | http://sonata-project.org

NicParry

unread,
Apr 16, 2012, 2:49:53 AM4/16/12
to sonata...@googlegroups.com
Thanks very much :)

I still have one problem though, on the dash board

An exception has been thrown during the rendering of a template ("The block type sonata.block.service.text does not exist") in SonataAdminBundle:Core:dashboard.html.twig at line 28.


Everything else seems to be working fine though.

On Friday, 13 April 2012 15:27:50 UTC+2, Thomas Rabaix wrote:
I have updated the documentation, please use the 2.0 branch.

On Fri, Apr 13, 2012 at 2:24 PM, NicParry <nicj...@gmail.com> wrote:
Hi there,

I'm trying to follow the installation tutorials here: http://sonata-project.org/bundles/admin/2-0/doc/reference/installation.html 

I keep running into problems at the end that appear to be a problem with the compatibility of the master branch of the bundles installed and Symfony 2.0.12

eg: 
Fatal error: Declaration of Sonata\AdminBundle\Form\Extension\Field\Type\FormTypeFieldExtension::getDefaultOptions() must be compatible with that of Symfony\Component\Form\FormTypeExtensionInterface::getDefaultOptions()

Is there some way to tell which version/s to install that will be compatible with the current version of symfony2 or a way to know which version of symfony2 is compatible with the installed bundles?

Thanks  

--
You received this message because you are subscribed to the Google Groups "sonata-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sonata-users/-/ZqA6z7du8M4J.
To post to this group, send email to sonata...@googlegroups.com.
To unsubscribe from this group, send email to sonata-users+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/sonata-users?hl=en.

NicParry

unread,
Apr 16, 2012, 3:40:58 AM4/16/12
to sonata...@googlegroups.com
Never mind I figured it out... you have to specify the block in config.yml:

sonata_block:
    default_contexts: [cms]
    blocks:
        sonata.admin.block.admin_list:
            contexts:   [admin]
        sonata.block.service.text:
        sonata.block.service.rss:
Reply all
Reply to author
Forward
0 new messages