A
A
Andrey Godin2014-04-09 02:23:25
symfony
Andrey Godin, 2014-04-09 02:23:25

Sonata Admin Dashboard blank screen - why?

I have several of my own projects on Symfony 2. On one of them today I felt like doing a total update to the latest versions. Before that everything worked great. And the projects themselves, and the sonata admin, and authorization.
After the update, I did not roll over the old configs, but carefully read the manuals for all vendors, and prescribed everything again. There were a few problems, but the project got off to a pretty fast start. The site works, authorization works, only the admin panel does not work. Today I've been fiddling around all day, and I can't understand why I have a blank screen in the admin panel.
e7e0344d689e4baeb345473bc32f5b0a.png
In services I write:

sonata.admin.dictionary.group:
        class: Itfrogs\SiteBundle\Admin\Model\DictionaryGroupsAdmin
        tags:
            - { name: sonata.admin, manager_type: orm, group: Контент, label: Группа Словаря }
        arguments:
            - ~
            - Itfrogs\SiteBundle\Entity\DictionaryGroup
            - ~
        calls:
            - [ setTranslationDomain, [ItfrogsSiteBundle]]

in config.yml
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:
        sonata.media.block.media:

sonata_admin:
    dashboard:
        blocks:
            -
                position: left
                type: sonata.admin.block.admin_list
#..........

It seems to me that this is the main thing. The rest is in the manual. The Itfrogs\SiteBundle\Admin\Model\DictionaryGroupsAdmin class itself and the entity Itfrogs\SiteBundle\Entity\DictionaryGroup remain the same.
It doesn't even get to loading the class. I checked.
Tell me where to dig?
If you need any other configs, tell me - I'll post it. I left everything so concisely so as not to overload with text.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WarGot, 2014-07-10
@WarGot

Is there anything in app\logs\app_dev.log?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question