1

我刚刚将我的 Symfony 2.2 安装升级到 Symfony 2.3。我本可以让“composer update”正常运行,但是这导致我的应用程序中的每条路由都返回一个空白页。如果我检查我的 JavaScript 控制台上的网络选项卡,我会看到一个 500 Internal Server Error 被抛出,但不知道是什么原因造成的。有任何想法吗?这是我的 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"
    }
}
}
4

3 回答 3

3

您需要在 2.3 中手动启用它。

调试::启用();

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

于 2013-06-17T14:19:56.097 回答
2

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

并清除缓存:-)

app/console cache:clear
于 2013-06-12T10:50:56.110 回答
1

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

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

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

问候。

于 2014-05-22T21:23:16.550 回答