错误Symfony2中的旧路由(服务器)

时间:2013-11-29 09:15:08

标签: git symfony

我将路线“wall-last”更改为“wall_last”,然后我用github更新我的服务器

我使用所有命令symfony2和rm -r cache

清空缓存

但是当我在我的服务器上测试时,我收到此错误:

Fatal error: Uncaught exception 'Symfony\Component\Routing\Exception\RouteNotFoundException' with message 'Unable to generate a URL for the named route "wall-last" as such route does not exist.' in /www/htdocs/my.site.com/app/cache/prod/appProdUrlGenerator.php:196 Stack trace: #0 /www/htdocs/my.site.com/app/cache/prod/classes.php(6253): appProdUrlGenerator->generate('wall-last', Array, false) #1 /www/htdocs/my.site.com/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/RoutingExtension.php(45): JMS\I18nRoutingBundle\Router\I18nRouter->generate('wall-last', Array, false) #2 /www/htdocs/my.site.com/app/cache/prod/twig/ce/14/d78e2a16c35929217734752bfba0c0988cb9a5fb22b1117f556e5d510d15.php(171): Symfony\Bridge\Twig\Extension\RoutingExtension->getPath('wall-last') #3 /www/htdocs/my.site.com/app/cache/prod/classes.php(4357): __TwigTemplate_ce14d78e2a16c35929217734752bfba0c0988cb9a5fb22b1117f556e5d510d15->block_content(Array, Array) #4 /www/htdocs/my.site.com/app/cache/prod/twig/1b/50/ebd9771273fa32 in /www/htdocs/my.site.com/app/cache/prod/classes.php on line 4361

1 个答案:

答案 0 :(得分:0)

Grep for'wall-last'。看起来您在代码中的某处生成了“wall-last”路径的路径