2012-02-24 73 views
0

我使用的symfony 2,当我启动我在生产模式下的应用程序,我得到这个错误Symfony的2 APC错误

ERROR 
The requested URL could not be retrieved 

While trying to retrieve the URL: http://noupei.com/ 

The following error was encountered: 

    Zero Sized Reply 

Squid did not receive any data for this request. 

Your cache administrator is root. 

现在,当我检查错误日志,我看到以下内容:

[apc-error] Cannot redeclare class noupei\websitebundle\dependencyinjection\noupeiwebsiteextension in /var/www/Symfony/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php on line 42. 

回答

0

打开app.php文件,搜索行:

$内核=新AppKernel( '刺',虚假);

$内核=新AppKernel( '刺',真)的变化;