php - Symfony 2 Unable to find the controller for path /login_check -


i'm deploying symfony2 based application in production server i'm unable login. error saying controller parameter route /login_check missing. should handled firewall configuration incluided in security.yml file , security.yml file included in app/config/config.yml file. application deploys fine in development machine , can login (with prod configuration) 500 error in server when try access /login_check route. hint useful , welcome. in advance.

i following error in prod.log:

[2014-06-26 00:52:56] security.debug: write securitycontext in session [] [] [2014-06-26 00:53:12] request.info: matched route "login_check" (parameters: "_route": "login_check") [] [] [2014-06-26 00:53:12] security.info: populated securitycontext anonymous token [] [] [2014-06-26 00:53:12] security.info: no expression found; abstaining voting. [] [] [2014-06-26 00:53:12] request.warning: unable controller    "_controller" parameter missing [] [] [2014-06-26 00:53:12] request.error: uncaught php exception   symfony\component\httpkernel\exception\notfoundhttpexception: "unable find controller   path "/login_check". maybe forgot add matching route in routing   configuration?" @ /homepages/36/d516172930/htdocs/covivedev/app/bootstrap.php.cache line   995 [] [] [2014-06-26 00:53:12] security.debug: write securitycontext in session [] [] 

here app/config/config.yml

    imports:             - { resource: parameters.yml }             - { resource: security.yml }      framework:         secret:          %secret%         router:             resource: "%kernel.root_dir%/config/routing.yml"             strict_requirements: %kernel.debug%         form:            ~         csrf_protection: ~         validation:      { enable_annotations: true }         templating:             engines: ['twig']         #assets_version: someversionscheme     default_locale:  "%locale%"     trusted_proxies: ~     session:         ~     fragments:       ~  # twig configuration twig:     debug:            %kernel.debug%     strict_variables: %kernel.debug%  # assetic configuration assetic:     debug:          %kernel.debug%     use_controller: false     bundles:        [ ]     filters:         cssrewrite: ~  # doctrine configuration doctrine:     dbal:         driver:   %database_driver%         host:     %database_host%         port:     %database_port%         dbname:   %database_name%         user:     %database_user%         password: %database_password%         charset:  utf8      orm:         auto_generate_proxy_classes: %kernel.debug%         auto_mapping: true  # swiftmailer configuration swiftmailer:     transport: smtp     host:      ssl://smtp.gmail.com     username:  max21campos@gmail.com     password:  xxxxx     spool:     { type: memory } 

my app/config/security.yml looks following:

jms_security_extra:     secure_all_services: false     expressions: true  security:     encoders:         promomails\covivebundle\entity\usuario:             algorithm:        sha1             encode_as_base64: false             iterations:       1      providers:          covive_provider:             entity:                  class: promomailscovivebundle:usuario                 property: username      firewalls:         covive:             pattern:  /             anonymous: ~             provider: covive_provider             security: true            form_login:                login_path:  /               check_path:  /login_check               always_use_default_target_path: true               default_target_path: /home               use_referer: true             logout:                 path: /logout                 target: /             remember_me:                 key: saveuser                 lifetime: 0                 path: /.*                 domain: ~       access_control:         - { path: ^/login_check, roles: is_authenticated_anonymously}         - { path: ^/vendedor, roles: role_vendedor } 

my app/config/routing.yml includes bundlerouting:

promo_mails_covive:     resource: "@promomailscovivebundle/resources/config/routing.yml"     prefix:   / 

my bundle routing has following:

promo_mails_covive_homepage:     pattern: /     defaults:          _controller: promomailscovivebundle:default:index  home:     pattern: /home     defaults:          _controller: promomailscovivebundle:default:home  login_check:     pattern: /login_check  logout:     pattern: /logout 

following error:

[2014-06-26 00:53:12] request.error: uncaught php exception symfony\component\httpkernel\exception\notfoundhttpexception: "unable find controller path "/login_check". maybe forgot add matching route in routing configuration?"[...]

in routing.yml maybe must add _controller:

login_check: pattern: /login_check defaults: { _controller: yourbundle:controllername:login_check }

in addition, here's can find symfony 2 documentation routing.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -