среда, ноября 07, 2012

Symfony 2.1 SonataUserBundle errors

error at http://localhost/admin/sonata/user/user/create:  
The server returned a "500 Internal Server Error".

 log:
request.INFO: Matched route "admin_sonata_user_user_create" (parameters: "_controller": "Sonata\AdminBundle\Controller\CRUDController::createAction", "_sonata_admin": "sonata.user.admin.user", "_sonata_name": "admin_sonata_user_user_create", "_route": "admin_sonata_user_user_create")
...
 request.CRITICAL: RuntimeException: The locale resource bundle could not be loaded for locale "en" (uncaught exception) at vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php line 160

solution:
>> php vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php 49


error at http://localhost/admin/sonata/user/user/list:
The server returned a "500 Internal Server Error".

log:
request.INFO: Matched route "admin_sonata_user_user_list" (parameters: "_controller": "Sonata\AdminBundle\Controller\CRUDController::listAction", "_sonata_admin": "sonata.user.admin.user", "_sonata_name": "admin_sonata_user_user_list", "_route": "admin_sonata_user_user_list")
...
request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("None of the chained routers were able to generate route "homepage".") in "SonataAdminBundle:CRUD:list.html.twig". (uncaught exception) at app/cache/prod/classes.php line 9300

solution add to routing.yml:
homepage:
    pattern: /homepage

1 комментарий:

varvar комментирует...

Киря, что это за хрень?