Я недавно переустановил мои поставщики
php app/bin vendors install --reinstall
С тех пор в моей прод среде я получаю пустую страницу (не ошибка) после любого
echo "1";
$array = $query->getResult();
echo "2";
выводит пустую страницу:
1
Но everyth ing работает нормально в среде dev ... Я действительно пытался очистить свой кеш, но все равно получаю пустую страницу в среде 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
Любая идея, как отлаживать что ?
Проверьте 'приложение/logs'? – meze
Я просто удалил prod.log, обновил мою пустую страницу и ничего не происходит в приложении/журналах ... – httpete
Затем измените в своем app.php (или другом файле производственного индекса) строку '$ kernel = new AppKernel ('prod' , false); 'to' $ kernel = new AppKernel ('prod', true); 'и посмотреть, произойдет ли что-то. Это позволит отображать ошибки, поэтому убедитесь, что вы отключили его после того, как вы исправили свою продукцию. – meze