500 internel server error on sonata admin dashboard in ajax call

1,022 views
Skip to first unread message

gowri sankar

unread,
Jan 11, 2013, 1:48:27 AM1/11/13
to sonata...@googlegroups.com

Ajax request is throwing 500 internal server error from this server URL

web/app_dev.php/admin/browser/odm-children?root=%2Fcms

While access the URL directly. I got the following error. Nothing is loading in the center of the dashboard. Simple ajax loader is rotating. What may the problem.

The class 'Doctrine\Common\Util\ClassUtils' was not found in the chain configured namespaces Doctrine\ODM\PHPCR\Document, Sonata\UserBundle\Document, Symfony\Cmf\Bundle\MenuBundle\Document, Symfony\Cmf\Bundle\BlockBundle\Document, FOS\UserBundle\Document, Application\Sonata\UserBundle\Document 

 I am using "doctrine/common":">=2.3-dev"

Configuration

sonata_block:
    default_contexts: [cms]
    blocks:
        sonata.admin.block.admin_list:
            contexts:   [admin]
        sonata_admin_doctrine_phpcr.tree_block:
            settings:
                id: '/cms'
            contexts:   [admin]

sonata_admin:
    security:
        handler: sonata.admin.security.handler.role    
    templates:
        # default global templates
        ajax:    SonataAdminBundle::ajax_layout.html.twig
        list:    SonataAdminBundle:CRUD:list.html.twig
        show:    SonataAdminBundle:CRUD:show.html.twig
        edit:    SonataAdminBundle:CRUD:edit.html.twig
    dashboard:
        blocks:
            # display a dashboard block
            - { position: right, type: sonata.admin.block.admin_list }
            - { position: left, type: sonata_admin_doctrine_phpcr.tree_block }

sonata_doctrine_phpcr_admin:
    document_tree:
        Doctrine\PHPCR\Odm\Document\Generic:
            valid_children:
                - all
        Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page: ~
        Symfony\Cmf\Bundle\RoutingExtraBundle\Document\Route:
            valid_children:
                - Symfony\Cmf\Bundle\RoutingExtraBundle\Document\Route
                - Symfony\Cmf\Bundle\RoutingExtraBundle\Document\RedirectRoute
        Symfony\Cmf\Bundle\RoutingExtraBundle\Document\RedirectRoute:
            valid_children: []
        Symfony\Cmf\Bundle\MenuBundle\Document\MenuItem:
            valid_children:
                - Symfony\Cmf\Bundle\MenuBundle\Document\MenuItem
                - Symfony\Cmf\Bundle\MenuBundle\Document\MultilangMenuItem
        Symfony\Cmf\Bundle\MenuBundle\Document\MultilangMenuItem:
            valid_children:
                - Symfony\Cmf\Bundle\MenuBundle\Document\MenuItem
                - Symfony\Cmf\Bundle\MenuBundle\Document\MultilangMenuItem
 
My composer 

 "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.1.*",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "dev-master",
        "twig/extensions": "1.0.*@dev",
        "symfony/assetic-bundle": "2.1.*",
        "symfony/swiftmailer-bundle": "2.1.*",
        "symfony/monolog-bundle": "2.1.*",
        "sensio/distribution-bundle": "2.1.*",
        "sensio/framework-extra-bundle": "2.1.*",
        "sensio/generator-bundle": "2.1.*",
        "jms/security-extra-bundle": "dev-master",
        "jms/di-extra-bundle": "dev-master",
        "kriswallsmith/assetic": "1.1.*@dev",
        "doctrine/doctrine-fixtures-bundle": "dev-master",
        "doctrine/data-fixtures": "dev-master",
        "doctrine/migrations": "dev-master",
        "doctrine/doctrine-migrations-bundle": "dev-master",
        "friendsofsymfony/user-bundle": "dev-master",
        "stof/doctrine-extensions-bundle": "dev-master",
        "phpcr/phpcr": "dev-master",
        "doctrine/phpcr-odm": "dev-master",
        "doctrine/phpcr-bundle": "dev-master",
        "jackalope/jackalope": "dev-master",
        "jackalope/jackalope-doctrine-dbal": "dev-master",
        "phpcr/phpcr-utils": "dev-master",
        "ext-midgard2": ">=10.05.6",
        "symfony-cmf/core-bundle": "dev-master",
        "symfony-cmf/content-bundle": "dev-master",
        "symfony-cmf/menu-bundle": "dev-master",
        "symfony-cmf/block-bundle": "dev-master",
        "symfony-cmf/routing-extra-bundle": "dev-master",
        "sonata-project/block-bundle": "dev-master",
        "symfony-cmf/routing": "dev-master",
        "symfony-cmf/tree-bundle": "dev-master",
        "symfony-cmf/tree-browser-bundle": "dev-master",
        "friendsofsymfony/jsrouting-bundle": "dev-master",
        "symfony-cmf/symfony-cmf": "dev-master",
        "symfony-cmf/simple-cms-bundle": "dev-master",
        "symfony-cmf/create-bundle": "dev-master",
        "midgard/createphp": "dev-master",
        "friendsofsymfony/rest-bundle":  "dev-master",
        "jms/serializer": "dev-master",
        "phpcollection/phpcollection": "dev-master",
        "jms/serializer-bundle":  "dev-master", 
        "sonata-project/jquery-bundle": "dev-master",
        "sonata-project/exporter": "dev-master",
        "sonata-project/doctrine-phpcr-admin-bundle": "dev-master",
        "sonata-project/admin-bundle": "dev-master",
        "sonata-project/doctrine-orm-admin-bundle":  "dev-master",
        "sonata-project/cache-bundle":  "dev-master",
        "sonata-project/intl-bundle":  "dev-master",
        "sonata-project/user-bundle": "dev-master",
        "sonata-project/doctrine-extensions": "dev-master",
        "sonata-project/easy-extends-bundle": "dev-master",
        "sonata-project/google-authenticator": "dev-master",
        "jms/payment-core-bundle": "master-dev",
        "ornicar/gravatar-bundle" : "dev-master",
        "knplabs/knp-paginator-bundle": "dev-master",
        "vich/uploader-bundle": "dev-master",
        "knplabs/gaufrette":"0.2.*@dev",
        "knplabs/knp-gaufrette-bundle" : "dev-master",
        "doctrine/common":">=2.3-dev"

    },

What I am doing wrong. last 10 days I am searching for answer but not able to get.
  

gowri sankar

unread,
Jan 17, 2013, 8:14:42 AM1/17/13
to sonata...@googlegroups.com
Does anyone have any idea about this issue sonata_admin_doctrine_phpcr.tree_block this section is not loading. Any clue could be very helpful.

Marcel Gläser

unread,
Jan 31, 2013, 8:00:16 PM1/31/13
to sonata...@googlegroups.com
Hello,
i have the same problem.
LOG:
[2013-02-01 01:46:54] app.INFO: Router Symfony\Cmf\Bundle\RoutingExtraBundle\Routing\DynamicRouter was not able to match, message "" [] []
[2013-02-01 01:46:54] request.INFO: Matched route "_symfony_cmf_tree_phpcr_odm_tree_children" (parameters: "_controller": "phpcr_odm_tree.symfony_cmf_tree_controller:childrenAction", "_route": "_symfony_cmf_tree_phpcr_odm_tree_children") [] []
[2013-02-01 01:46:54] request.CRITICAL: Doctrine\Common\Persistence\Mapping\MappingException: The class 'Doctrine\Common\Util\ClassUtils' was not found in the chain configured namespaces Doctrine\ODM\PHPCR\Document, Symfony\Cmf\Bundle\MenuBundle\Document, Symfony\Cmf\Bundle\ContentBundle\Document, Symfony\Cmf\Bundle\BlockBundle\Document, Symfony\Cmf\Bundle\SimpleCmsBundle\Document, FOS\UserBundle\Document, Sonata\UserBundle\Document, Application\Sonata\UserBundle\Document, Symfony\Cmf\Bundle\RoutingExtraBundle\Document, Symfony\Component\Routing (uncaught exception) at /kunden/181184_06556/rp-hosting/4034/7/test/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php line 38 [] []

gowri sankar

unread,
Feb 2, 2013, 8:41:29 AM2/2/13
to sonata...@googlegroups.com

Marcel Gläser

unread,
Feb 3, 2013, 7:24:22 AM2/3/13
to sonata...@googlegroups.com
I do all steps but nothing.
On the site: admin/bundle/routingextra/route/create the Content label is loading for a second and then disappears, but the Parent * Label is always loading...

sry about my english and thx for the help!!!
Reply all
Reply to author
Forward
0 new messages