sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Fatal error on composer update #1350

Closed concept-immo-global closed 11 years ago

concept-immo-global commented 11 years ago

hello, When i lunch a "composer.php update", i have a fatal error when i want created a new item. If I go back to my "composer.lock" file, all is right .. i don't understand this error :

Key "description" for array with keys "fields" does not exist in SonataAdminBundle:CRUD:base_edit_form.html.twig at line 35

My composer.json file :

{
    "name": "symfony/framework-standard-edition",
    "description": "The \"Symfony Standard Edition\" distribution",
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.2.*",
        "doctrine/orm": "~2.2,>=2.2.3",
        "doctrine/doctrine-bundle": "1.2.*",
        "twig/extensions": "1.0.*",
        "symfony/assetic-bundle": "2.1.*",
        "symfony/swiftmailer-bundle": "2.2.*",
        "symfony/monolog-bundle": "2.2.*",
        "sensio/distribution-bundle": "2.2.*",
        "sensio/framework-extra-bundle": "2.2.*",
        "sensio/generator-bundle": "2.2.*",
        "jms/security-extra-bundle": "1.4.*",
        "jms/di-extra-bundle": "1.3.*",
        "gedmo/doctrine-extensions": "dev-master",
        "friendsofsymfony/user-bundle": "1.3.1",
        "sonata-project/jquery-bundle": "1.8.*",
        "sonata-project/exporter": "1.*",
        "sonata-project/block-bundle": "dev-master",
        "sonata-project/admin-bundle": "dev-master",
        "sonata-project/cache-bundle": "dev-master",
        "sonata-project/doctrine-orm-admin-bundle": "dev-master",
        "sonata-project/easy-extends-bundle" : "dev-master",
        "sonata-project/intl-bundle": "dev-master",
        "sonata-project/doctrine-extensions": "1.*",
        "sonata-project/google-authenticator": "1.*",
        "sonata-project/user-bundle": "dev-master",
        "sonata-project/notification-bundle" : "dev-master",
        "sonata-project/media-bundle" : "dev-master",
        "knplabs/gaufrette" : "dev-master",
        "genemu/form-bundle": "2.*",
        "knplabs/knp-menu-bundle": "1.1.x-dev",
        "amazonwebservices/aws-sdk-for-php": "dev-master"
    },
    "scripts": {
        "post-install-cmd": [
            "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": [
            "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": "alpha",
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "branch-alias": {
            "dev-master": "2.2-dev"
        }
    }
}
concept-immo-global commented 11 years ago

So i find a solution. In my form, i forgot to write ->with(('General')) on my configureFormFields() ... before my composer.phar update, it was work but after, not work. I add that and that work.

rande commented 11 years ago

duplicate https://github.com/sonata-project/SonataAdminBundle/pull/1345