php - The block type "sonata.admin.block.admin_list" does not exist -
i tried install symfony cmf sonata admin bundle have issues enabling it. apparently i'm not first, other answers have not helped me wery unfortunatly.
this complete exception:
an exception has been thrown during rendering of template ("the block type "sonata.admin.block.admin_list" not exist") in sonataadminbundle:core:dashboard.html.twig @ line 35.
and appkernel.php:
$bundles = array( // symfony standard edition bundles new symfony\bundle\frameworkbundle\frameworkbundle(), new symfony\bundle\securitybundle\securitybundle(), new symfony\bundle\twigbundle\twigbundle(), new symfony\bundle\monologbundle\monologbundle(), new symfony\bundle\swiftmailerbundle\swiftmailerbundle(), new symfony\bundle\asseticbundle\asseticbundle(), new doctrine\bundle\doctrinebundle\doctrinebundle(), new sensio\bundle\frameworkextrabundle\sensioframeworkextrabundle(), // symfony cmf standard edition bundles new doctrine\bundle\phpcrbundle\doctrinephpcrbundle(), new doctrine\bundle\doctrinecachebundle\doctrinecachebundle(), new symfony\cmf\bundle\corebundle\cmfcorebundle(), new symfony\cmf\bundle\contentbundle\cmfcontentbundle(), new symfony\cmf\bundle\routingbundle\cmfroutingbundle(), new symfony\cmf\bundle\simplecmsbundle\cmfsimplecmsbundle(), new symfony\cmf\bundle\blockbundle\cmfblockbundle(), new sonata\blockbundle\sonatablockbundle(), new sonata\corebundle\sonatacorebundle(), new symfony\cmf\bundle\menubundle\cmfmenubundle(), new knp\bundle\menubundle\knpmenubundle(), new symfony\cmf\bundle\createbundle\cmfcreatebundle(), new fos\restbundle\fosrestbundle(), new jms\serializerbundle\jmsserializerbundle(), new sonata\jquerybundle\sonatajquerybundle(), new sonata\doctrinephpcradminbundle\sonatadoctrinephpcradminbundle(), new sonata\adminbundle\sonataadminbundle(), // remove bundle when using se basis new project new acme\demobundle\acmedemobundle(), );
my relevant config.yml parts:
# sonata sonata_block: default_contexts: [cms] blocks: sonata.admin.block.admin_list: contexts: [admin] sonata.user.block.menu: sonata.user.block.account: sonata.block.service.text:
and in end routing:
admin: resource: '@sonataadminbundle/resources/config/routing/sonata_admin.xml' prefix: /admin _sonata_admin: resource: . type: sonata_admin prefix: /admin
any appreciated, belive have folloed instructions, , change adding ip app_dev.php. have tried clearing cache without results....
the error suggests sonata_block config not read or maybe overwritten.
could check if have duplicate definition in 1 of config files (config*.yml)?
Comments
Post a Comment