Symfony1 Symfony未匹配/查找任何路由

Symfony1 Symfony未匹配/查找任何路由,symfony1,routing,symfony-1.4,Symfony1,Routing,Symfony 1.4,更新应用程序(包括一些新路由)后,symfony无法匹配任何路由: symfony [err] {sfConfigurationException} Unable to find a matching route to generate url for params "array ( 'action' => 'changeLanguage', 'module' => 'language', 'culture' => 'en_US',)" 我需要做什么才能使symfony

更新应用程序(包括一些新路由)后,symfony无法匹配任何路由:

symfony [err] {sfConfigurationException} Unable to find a matching route to generate url for params "array (  'action' => 'changeLanguage',  'module' => 'language',  'culture' => 'en_US',)"
我需要做什么才能使symfony再次找到/匹配路线

这是我的路线 路由.yml

<?php $cultures = implode(I18NUtils::availableCultures(), '|') ?>

locality_list:
  url:  /:sf_culture/orte/:slug.:season.:id.:sf_format
  class: sfPropelRoute
  options: { model: Locality, type: object }
  param: { module: locality, action: list, sf_format: html }
  requirements:
    id: \d+
    sf_method: [get]

locality_info:
  url:  /:sf_culture/orte/:slug.:season.:id.details.:sf_format
  class: sfPropelRoute
  options: { model: Locality, type: object }
  param: { module: locality, action: show, sf_format: html }
  requirements:
    id: \d+
    sf_method: [get]

housings_by_category:
  url:  /:sf_culture/category/:slugs
  param: { module: housing, action: listByCategory, sf_format: html }
  requirements:
    sf_culture: (?:<?php echo $cultures ?>)

housings_by_tag_locality:
  url:  /:sf_culture/tag/:tags/:locality_id
  param: { module: housing, action: listByTag, sf_format: html }
  requirements:
    sf_culture: (?:<?php echo $cultures ?>)

housings_by_tag:
  url:  /:sf_culture/tag/:tags
  param: { module: housing, action: listByTag, sf_format: html }
  requirements:
    sf_culture: (?:<?php echo $cultures ?>)

housings_by_locality:
  url:  /:sf_culture/:slug.:season.:id.list.:sf_format
  class: sfPropelRoute
  options: { model: Locality, type: object }
  param: { module: housing, action: list, sf_format: html }
  requirements:
    id: \d+
    sf_method: [get]

housing_info:
  url:  /:sf_culture/:slug.:season.:id.:sf_format
  class: sfPropelRoute
  options: { model: Housing, type: object }
  param: { module: housing, action: show, sf_format: html }
  requirements:
    id: \d+
    sf_method: [get]

housings:
  url: /:sf_culture/
  param: { module: housing, action: index }
  requirements:
    sf_culture: (?:<?php echo $cultures ?>)

hut_details:
  url:  /:sf_culture/huetten/:slug.:season.:id.:sf_format
  class: sfPropelRoute
  options: { model: Housing, type: object }
  param: { module: housing, action: show, sf_format: html }
  requirements:
    id: \d+
    sf_method: [get]

huts:
  url: /:sf_culture/huetten
  param: { module: hut, action: index }
  requirements:
    sf_culture: (?:<?php echo $cultures ?>)

legacy_redirect:
  url: /incoming/:action/*
  param: { module: legacysite, sf_format: html }

home:
  url:  /
  param: { module: home, action: index }

localized_home:
    url:    /:sf_culture/
    param:  { module: home, action: index  }
    requirements:
        sf_culture: (?:<?php echo $cultures ?>)

change_language:
    url:    /language
    param:  { module: language, action: changeLanguage }

# default rules
default_index:
  url:   /:sf_culture/:module
  param: { action: index }
  requirements:
    sf_culture: (?:<?php echo $cultures ?>)

default:
  url:   /:sf_culture/:module/:action/*
  param: { sf_format: html }
  requirements:
    sf_culture: (?:<?php echo $cultures ?>)

地区/地区列表:
url:/:sf\u culture/orte/:slug.:seasure.:id.:sf\u格式
类别:SFPROPERROUTE
选项:{model:Locality,type:object}
参数:{module:locality,action:list,sf_格式:html}
要求:
id:\d+
sf_方法:[获取]
地区资讯:
url:/:sf\u culture/orte/:slug.:seasure.:id.details.:sf\u格式
类别:SFPROPERROUTE
选项:{model:Locality,type:object}
参数:{module:locality,action:show,sf_格式:html}
要求:
id:\d+
sf_方法:[获取]
按住房类别划分的住房:
url:/:sf_文化/类别/:slugs
param:{module:housing,action:listByCategory,sf_格式:html}
要求:
旧金山大学文化:(?:)
按标签位置排列的房屋:
url:/:sf_culture/tag/:tags/:locality\u id
param:{module:housing,action:listByTag,sf_格式:html}
要求:
旧金山大学文化:(?:)
外壳按标签排列:
url:/:sf_culture/tag/:tags
param:{module:housing,action:listByTag,sf_格式:html}
要求:
旧金山大学文化:(?:)
按地区划分的住房:
url:/:sf\u culture/:slug.:seasure.:id.list.:sf\u格式
类别:SFPROPERROUTE
选项:{model:Locality,type:object}
参数:{module:housing,action:list,sf_格式:html}
要求:
id:\d+
sf_方法:[获取]
住房信息:
url:/:sf\u culture/:slug.:seasure.:id.:sf\u格式
类别:SFPROPERROUTE
选项:{model:Housing,type:object}
参数:{module:housing,action:show,sf_格式:html}
要求:
id:\d+
sf_方法:[获取]
外壳:
url:/:旧金山大学文化/
参数:{模块:外壳,操作:索引}
要求:
旧金山大学文化:(?:)
小屋详情:
url:/:sf\u culture/huetten/:slug.:seasure.:id.:sf\u格式
类别:SFPROPERROUTE
选项:{model:Housing,type:object}
参数:{module:housing,action:show,sf_格式:html}
要求:
id:\d+
sf_方法:[获取]
小屋:
网址:/:sf_culture/huetten
参数:{module:hut,action:index}
要求:
旧金山大学文化:(?:)
传统_重定向:
url:/incoming/:操作/*
参数:{module:legacysite,sf_格式:html}
主页:
网址:/
参数:{module:home,action:index}
家庭:
url:/:旧金山大学文化/
参数:{module:home,action:index}
要求:
旧金山大学文化:(?:)
更改语言:
url:/语言
参数:{模块:语言,操作:changeLanguage}
#默认规则
默认索引:
url:/:sf_文化/:模块
参数:{action:index}
要求:
旧金山大学文化:(?:)
违约:
url:/:sf_文化/:模块/:操作/*
参数:{sf_格式:html}
要求:
旧金山大学文化:(?:)

您需要将
文化
参数添加到您的
更改语言
路线:

change_language:
    url:    /language/:culture
    param:  { module: language, action: changeLanguage }

也可能是您的要求。

您能在问题中添加您的
路由.yml
吗?这是什么版本的symfony?