将Symfony 2.2升级到2.3会导致无提示500错误

时间:2013-06-12 10:45:48

标签: symfony symfony-2.2 symfony-2.3

我刚刚将Symfony 2.2安装升级到Symfony 2.3。我没有让“作曲家更新”运行没有错误,但这导致我的应用程序中的每个路径都返回一个空白页面。如果我检查我的JavaScript控制台上的网络选项卡,我会看到正在抛出500内部服务器错误,但不知道可能导致它的原因。有任何想法吗?这是我的composer.json文件:

{
"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": "dev-master@dev"
},
"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"
    }
}
}

3 个答案:

答案 0 :(得分:3)

您需要在2.3。

中手动启用它

调试::启用();

请参阅:https://github.com/symfony/symfony-standard/blob/2.3/UPGRADE-2.3.md

答案 1 :(得分:2)

检查您的日志,以便根据您尝试访问的环境找到例外情况... app/logs/dev.logapp/logs/prod.log

清除缓存: - )

app/console cache:clear

答案 2 :(得分:1)

从你的composer.json更新那些行,symfony&gt; = 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",

问候。