1
서버에서 sf_culture = 1로 인해 많은 오류가 발생합니다. sf_culture 또는 $ sf_user-> getCulture()가 반환 :Symfony sf_culture = 1 오류
Match route "default" (/:sf_culture/:module/:action/*) for /de_DE/housing/legend with
parameters array ( 'module' => 'housing', 'action' => 'legend', 'sf_format' => 'html',
'sf_culture' => 'de_DE',)
느릅 나무는 왜 그게 가능하다이
default:
url: /:sf_culture/:module/:action/*
param: { sf_format: html }
requirements:
sf_culture: (?:<?php echo $cultures ?>)
과 같습니다
{sfConfigurationException} Unable to find a matching route to generate url
for params "array ( 'action' => 'legend', 'module' => 'housing', 'sf_culture' =>'1',)"
는 로컬이 기본 경로와 일치 '1', 나는 또한 더 이상한 로그에서 'de? keepthis = true'를 보았습니다.
이 오류에 대해 어떻게해야합니까?
편집 :이 오류가있는 유일한 사람이 될 수 없습니까? 당신은 routing.yml를 통해 URL을에 허용 된 문화를 제한 할 수 있습니다
May 10 09:50:23 symfony [err] {sfConfigurationException} Unable to find a matching route to generate url for params "array ( 'action' => 'legend', 'module' => 'housing', 'sf_culture' => 'en“',)".
May 10 09:50:34 symfony [err] {sfConfigurationException} Unable to find a matching route to generate url for params "array ( 'action' => 'legend', 'module' => 'housing', 'sf_culture' => 'mvcleltja',)".
May 10 09:50:45 symfony [err] {sfConfigurationException} Unable to find a matching route to generate url for params "array ( 'action' => 'legend', 'module' => 'housing', 'sf_culture' => '√ en',)".
May 10 09:51:26 symfony [err] {sfConfigurationException} Unable to find a matching route to generate url for params "array ( 'action' => 'legend', 'module' => 'housing', 'sf_culture' => '1',)".
May 10 09:51:42 symfony [err] {sfConfigurationException} Unable to find a matching route to generate url for params "array ( 'action' => 'legend', 'module' => 'housing', 'sf_culture' => 'whwgopshwhyrydi',)".
'$ 문화'란 무엇입니까? 그런데 이러한 오류를 생성하는 ips를 확인 했습니까? 어쩌면 그것은 다른 URL을 많이 시도하는 미친 로봇 일 것입니다. – j0k
저는 바보 같아요, 항상 같은 IP입니다, 구글 봇처럼 보입니다. –