2012-02-04 90 views
1

我最近重新安裝了廠商

php app/bin vendors install --reinstall 

從那時起,在我的督促環境得到了一個空白頁面(不是一個錯誤)後的任何

echo "1"; 

    $array = $query->getResult(); 

    echo "2"; 

輸出一個空白頁:

1 

但everyth ing在開發環境中工作正常 ...我確實試圖清除緩存,但仍然在prod環境中獲得空白頁面。

我試過的var_dump($查詢),它出現在兩個環境中,唯一的區別似乎是

// prod 
    private '_proxyDir' => string 'C:\wamp\www\AppName\app/cache/prod/doctrine/orm/Proxies' (length=55) 

    // dev 
    private '_proxyDir' => string 'C:\wamp\www\AppName\app/cache/dev/doctrine/orm/Proxies' (length=54) 

這裏是我的DEPS文件:

[symfony] 
    git=http://github.com/symfony/symfony.git 
    version=v2.0.9 

[twig] 
    git=http://github.com/fabpot/Twig.git 
    version=v1.5.1 

[monolog] 
    git=http://github.com/Seldaek/monolog.git 
    version=1.0.2 

[doctrine-common] 
    git=http://github.com/doctrine/common.git 
    version=2.1.4 

[doctrine-dbal] 
    git=http://github.com/doctrine/dbal.git 
    version=2.1.5 

[doctrine] 
    git=http://github.com/doctrine/doctrine2.git 
    version=2.1.5 

[swiftmailer] 
    git=http://github.com/swiftmailer/swiftmailer.git 
    version=v4.1.5 

[assetic] 
    git=http://github.com/kriswallsmith/assetic.git 
    version=v1.0.2 

[twig-extensions] 
    git=http://github.com/fabpot/Twig-extensions.git 

[metadata] 
    git=http://github.com/schmittjoh/metadata.git 

[SensioFrameworkExtraBundle] 
    git=http://github.com/sensio/SensioFrameworkExtraBundle.git 
    target=/bundles/Sensio/Bundle/FrameworkExtraBundle 
    version=origin/2.0 

[JMSSecurityExtraBundle] 
    git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git 
    target=/bundles/JMS/SecurityExtraBundle 
    version=origin/1.0.x 

[SensioDistributionBundle] 
    git=http://github.com/sensio/SensioDistributionBundle.git 
    target=/bundles/Sensio/Bundle/DistributionBundle 
    version=origin/2.0 

[SensioGeneratorBundle] 
    git=http://github.com/sensio/SensioGeneratorBundle.git 
    target=/bundles/Sensio/Bundle/GeneratorBundle 
    version=origin/2.0 

[AsseticBundle] 
    git=http://github.com/symfony/AsseticBundle.git 
    target=/bundles/Symfony/Bundle/AsseticBundle 
    version=v1.0.1 

[FOSUserBundle] 
    git=git://github.com/FriendsOfSymfony/FOSUserBundle.git 
    target=bundles/FOS/UserBundle 

[FOSFacebookBundle] 
    git=git://github.com/FriendsOfSymfony/FOSFacebookBundle.git 
    target=/bundles/FOS/FacebookBundle 
    version=origin/2.0 

[FacebookSDK] 
    git=git://github.com/facebook/php-sdk.git 
    target=/facebook 

[FOSCommentBundle] 
    git=https://github.com/FriendsOfSymfony/FOSCommentBundle.git 
    target=bundles/FOS/CommentBundle 

[FOSRestBundle] 
    git=git://github.com/FriendsOfSymfony/FOSRestBundle.git 
    target=bundles/FOS/RestBundle 
    version=origin/2.0 

[JMSSerializerBundle] 
    git=git://github.com/schmittjoh/JMSSerializerBundle.git 
    target=bundles/JMS/SerializerBundle 

任何想法,如何調試那?

+0

檢查'應用程序/ logs'? – meze 2012-02-04 17:03:22

+0

我剛剛刪除prod.log,刷新我的空白頁面,沒有發生任何應用程序/日誌... – httpete 2012-02-04 17:17:04

+1

然後改變你的app.php(或另一個生產索引文件)行'$ kernel = new AppKernel('prod' ,false);'到'$ kernel = new AppKernel('prod',true);'看看是否發生了什麼。這將啓用顯示錯誤,因此請確保在修復生產後將其禁用。 – meze 2012-02-04 19:07:56

回答

1

我認爲你必須熱身督促緩存,使用此命令重新生成代理:

./app/console cache:warmup --env=prod --no-debug