0

Following the installation instructions, I added

#depts
[SonataAdminBundle]
    git=git://github.com/sonata-project/SonataAdminBundle.git
    target=/bundles/Sonata/AdminBundle
    version=origin/2.0

And

#app/config/config.yml
sonata_block:
    default_contexts: [cms]
    blocks:
        sonata.admin.block.admin_list:
            contexts:   [admin]

        sonata.block.service.text:
        sonata.block.service.action:
        sonata.block.service.rss:

Launched the updates

$ php bin/vendors install

All vendor bundles got updated/installed but after SonataAdminBundle it was written

[Symfony\Component\Config\Exception\FileLoaderLoadException]                 
Cannot import resource "/var/www/Symfony/app/config/config.yml" from "/var/  
www/Symfony/app/config/config_dev.yml".                                      

[InvalidArgumentException]                                                   
There is no extension able to load the configuration for "sonata_block" (in  
/var/www/Symfony/app/config/config.yml). Looked for namespace "sonata_bloc  
k", found "framework", "security", "twig", "monolog", "swiftmailer", "doctr  
ine", "assetic", "sensio_framework_extra", "jms_security_extra", "glide_rep  
ort", "fos_user", "glide_user", "acme_demo", "web_profiler", "sensio_distri  
bution"                                                                      

[Symfony\Component\Config\Exception\FileLoaderLoadException]                 
Cannot import resource "/var/www/Symfony/app/config/config.yml" from "/var/  
www/Symfony/app/config/config_dev.yml".                                      

[InvalidArgumentException]                                                   
There is no extension able to load the configuration for "sonata_block" (in  
/var/www/Symfony/app/config/config.yml). Looked for namespace "sonata_bloc  
k", found "framework", "security", "twig", "monolog", "swiftmailer", "doctr  
ine", "assetic", "sensio_framework_extra", "jms_security_extra", "glide_rep  
ort", "fos_user", "glide_user", "acme_demo", "web_profiler", "sensio_distri  
bution"                                                                      

What can be the cause(s) ?

j0k
  • 22,600
  • 28
  • 79
  • 90
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307

1 Answers1

2

SonataAdminBundle has got many dependencies, as it's written in the instructions you referenced. Those are:

    SonataCacheBundle
    SonataBlockBundle
    SonatajQueryBundle
    KnpMenuBundle (Version 1.1.*)
    Exporter

You probably missed SonataBlockBundle (at least the error shows that you don't have the extension to load sonata_block from the config.yml)

Teo.sk
  • 2,619
  • 5
  • 25
  • 30