2013-06-12 90 views
1

我刚刚将Symfony 2.2安装升级到了Symfony 2.3。我曾尝试让“作曲家更新”在没有错误的情况下运行,但这导致我的应用程序中的每条路线都返回一个空白页面。如果我检查我的JavaScript控制台上的网络选项卡,我发现正在引发500内部服务器错误,但没有洞察到可能导致它的原因。有任何想法吗?这是我的composer.json文件:将Symfony 2.2升级到2.3会导致无提示500错误

{ 
"name": "symfony/framework-standard-edition", 
"license": "MIT", 
"type": "project", 
"description": "The \"Symfony Standard Edition\" distribution", 
"autoload": { 
    "psr-0": { "": "src/" } 
}, 
"require": { 
    "php": ">=5.3.3", 
    "symfony/symfony": "2.3.*", 
    "doctrine/orm": ">=2.2.3,<2.4-dev", 
    "doctrine/doctrine-bundle": "1.2.*", 
    "twig/extensions": "1.0.*", 
    "symfony/assetic-bundle": "2.3.*", 
    "symfony/swiftmailer-bundle": "2.3.*", 
    "symfony/monolog-bundle": "2.3.*", 
    "sensio/distribution-bundle": "2.3.*", 
    "sensio/framework-extra-bundle": "2.3.*", 
    "sensio/generator-bundle": "2.3.*", 
    "jms/security-extra-bundle": "1.5.*", 
    "jms/di-extra-bundle": "1.4.*", 
    "incenteev/composer-parameter-handler": "~2.0", 
    "friendsofsymfony/jsrouting-bundle": "*", 
    "sandeepshetty/shopify_api": "[email protected]" 
}, 
"scripts": { 
    "post-install-cmd": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
    ], 
    "post-update-cmd": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
    ] 
}, 
"config": { 
    "bin-dir": "bin" 
}, 
"minimum-stability": "dev", 
"prefer-stable": true, 
"extra": { 
    "symfony-app-dir": "app", 
    "symfony-web-dir": "web", 
    "incenteev-parameters": { 
     "file": "app/config/parameters.yml" 
    }, 
    "branch-alias": { 
     "dev-master": "2.3-dev" 
    } 
} 
} 
+0

您是否在您的web/app.php中设置了debug true,以显示错误? ($ kernel = new AppKernel('dev',true);) – Sybio

回答

2

检查您的logifles以查找异常...取决于您要访问的环境app/logs/dev.logapp/logs/prod.log

而且:-)

app/console cache:clear 
1

更新您composer.json这些行thouse版本不被支持的symfony> = 2.3

之前

"jms/security-extra-bundle": "1.5.*", 
"jms/di-extra-bundle": "1.4.*", 

"jms/di-extra-bundle": "dev-master", 
"jms/security-extra-bundle": "dev-master", 

问候。