Показаны сообщения с ярлыком symfony2. Показать все сообщения
Показаны сообщения с ярлыком symfony2. Показать все сообщения

четверг, июня 27, 2013

Symfony 2: http://x.x.x.x/login_check error 500

You must configure the check path to be handled by the firewall using form_login in your security firewall configuration.
IT'S POST POST POST POST POST, you can see it when you open in browser cos it's GET GET GET 

среда, ноября 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