2012-02-24 74 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( '刺',真)的變化;