sonata-project/SonataAdminBundle — Issue #606: addDefaultsIfNotSet() is not applicable to prototype nodes at path "sonata_block.blocks"
Author: dizda
Created: 2012-03-03 16:06:36+00:00
State: open

Hi,

I have this error since 2/3 days : 1/1InvalidDefinitionException: ->addDefaultsIfNotSet() is not applicable to prototype nodes at path "sonata_block.blocks"

So, I've updated the config.yml with the new "sonata_block" structure like this :

```yml
sonata_admin:
title: dizsurf BO
title_logo: /bundles/sonataadmin/logo_title.png
templates:
# default global templates
layout: SonataAdminBundle::standard_layout.html.twig
ajax: SonataAdminBundle::ajax_layout.html.twig
dashboard: SonataAdminBundle:Core:dashboard.html.twig

# default actions templates, should extend a global templates
list: SonataAdminBundle:CRUD:list.html.twig
show: SonataAdminBundle:CRUD:show.html.twig
edit: SonataAdminBundle:CRUD:edit.html.twig
# dashboard_groups:
# default: ~
dashboard:
blocks:
# display a dashboard block
- { position: left, type: sonata.admin.block.admin_list }

# Customize this part to add new block configuration
- { position: right, type: sonata.block.service.text, settings: { content: "

Welcome to the Sonata Admin

This is a sonata.block.service.text from the Block Bundle, you can create and add new block in these area by configuring the sonata_admin section.

For instance, here a RSS feed parser (sonata.block.service.rss):"} }
- { position: right, type: sonata.block.service.rss, settings: { title: Sonata Project's Feeds, url: http://sonata-project.org/blog/archive.rss }}

sonata_block:
default_contexts: [cms]
blocks:
sonata.admin.block.admin_list:
contexts: [admin]

#sonata.admin_doctrine_orm.block.audit:
# contexts: [admin]

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

But I still encounter the problem... Any idea ?

Thank you.