IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Symfony PHP Discussion :

Erreur sur mon site Symfony depuis une mise à jour des dépendances (composer). [2.x]


Sujet :

Symfony PHP

  1. #1
    Débutant  
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    1 571
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 1 571
    Points : 353
    Points
    353
    Par défaut Erreur sur mon site Symfony depuis une mise à jour des dépendances (composer).
    Bonjour tout le monde,

    Je suis entrain de réaliser un blog sous ce magnifique framework Symfony 2.4.

    Hier, j'ai installer le bundle "trsteel/ckeditor-bundle" et depuis lorsque je vais sur mon site, je rencontre ce message d'erreur :
    Whoops, looks like something went wrong.
    1/1 FatalErrorException: Error: Call to undefined method Doctrine\ORM\Configuration::isSecondLevelCacheEnabled() in C:\wamp\www\Symfony\vendor\doctrine\doctrine-bundle\Doctrine\Bundle\DoctrineBundle\DataCollector\DoctrineDataCollector.php line 82

    in C:\wamp\www\Symfony\vendor\doctrine\doctrine-bundle\Doctrine\Bundle\DoctrineBundle\DataCollector\DoctrineDataCollector.php line 82
    at ErrorHandler??handleFatalError() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\Debug\ErrorHandler.php line 212
    at ErrorHandler??handleFatal() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\Debug\ErrorHandler.php line 0
    at DoctrineDataCollector??collect() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Profiler\Profiler.php line 223
    at Profiler??collect() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\EventListener\ProfilerListener.php line 108
    at ProfilerListener??onKernelResponse() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher.php line 392
    at ??call_user_func() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher.php line 392
    at ??Symfony\Component\HttpKernel\Debug\{closure}() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 1759
    at ??call_user_func() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 1759
    at EventDispatcher??doDispatch() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 1692
    at EventDispatcher??dispatch() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 1856
    at ContainerAwareEventDispatcher??dispatch() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher.php line 139
    at TraceableEventDispatcher??dispatch() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2931
    at HttpKernel??filterResponse() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2926
    at HttpKernel??handleRaw() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2883
    at HttpKernel??handle() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 3022
    at ContainerAwareHttpKernel??handle() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer.php line 85
    at InlineFragmentRenderer??render() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Fragment\FragmentHandler.php line 116
    at FragmentHandler??render() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bridge\Twig\Extension\HttpKernelExtension.php line 60
    at HttpKernelExtension??renderFragment() in C:\wamp\www\Symfony\app\cache\dev\twig\ea\9a\bcc56754c237e171268b7cbb570056134ccc3dcc6d15a2a724194cbe134b.php line 100
    at __TwigTemplate_ea9abcc56754c237e171268b7cbb570056134ccc3dcc6d15a2a724194cbe134b??doDisplay() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4524
    at Twig_Template??displayWithErrorHandling() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4505
    at Twig_Template??display() in C:\wamp\www\Symfony\app\cache\dev\twig\9e\f7\6768879f39bfa32214da63975547ad678a439e8b4504fc7bfbb1d7c5581d.php line 26
    at __TwigTemplate_9ef76768879f39bfa32214da63975547ad678a439e8b4504fc7bfbb1d7c5581d??doDisplay() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4524
    at Twig_Template??displayWithErrorHandling() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4505
    at Twig_Template??display() in C:\wamp\www\Symfony\app\cache\dev\twig\7d\d8\7924755977343cc91cd128814d15dba56cad4c34cb56f5ac7140295defba.php line 25
    at __TwigTemplate_7dd87924755977343cc91cd128814d15dba56cad4c34cb56f5ac7140295defba??doDisplay() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4524
    at Twig_Template??displayWithErrorHandling() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4505
    at Twig_Template??display() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4512
    at Twig_Template??render() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bridge\Twig\TwigEngine.php line 50
    at TwigEngine??render() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\TwigBundle\TwigEngine.php line 74
    at TwigEngine??render() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\TwigBundle\Debug\TimedTwigEngine.php line 52
    at TimedTwigEngine??render() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\TwigBundle\TwigEngine.php line 99
    at TwigEngine??renderResponse() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Controller\Controller.php line 106
    at Controller??render() in C:\wamp\www\Symfony\src\Lv\BlogBundle\Controller\BlogController.php line 98
    at BlogController??ajouterAction() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2911
    at ??call_user_func_array() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2911
    at HttpKernel??handleRaw() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2883
    at HttpKernel??handle() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 3022
    at ContainerAwareHttpKernel??handle() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2303
    at Kernel??handle() in C:\wamp\www\Symfony\web\app_dev.php line 28
    at ??{main}() in C:\wamp\www\Symfony\web\app_dev.php line 0
    Et je vois pas du tout d’où viens ce problème
    Quelqu'un aurait-il une idée pour résoudre mon problème s'il vous plaît ?

    Merci par avance.

  2. #2
    Membre expert
    Avatar de dukoid
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    2 100
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 2 100
    Points : 3 004
    Points
    3 004
    Par défaut
    la technique à faire pour tout problème de composer :

    - supprimer tout le contenu du dossier vendor (sauf autoload.php)
    et relancer composer

  3. #3
    Débutant  
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    1 571
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 1 571
    Points : 353
    Points
    353
    Par défaut
    Merci pour ta réponse.
    J'ai donc vidé vendor et relancer composer, voici le contenu du lancement de la commande :
    C:\wamp\www\Symfony>php ../composer.phar update
    Warning: This development build of composer is over 30 days old. It is recommend
    ed to update it by running "../composer.phar self-update" to get the latest vers
    ion.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    - Installing doctrine/lexer (v1.0)
    Downloading: 100%

    - Installing doctrine/annotations (v1.1.2)
    Downloading: 100%

    - Installing doctrine/collections (v1.2)
    Loading from cache

    - Installing doctrine/cache (v1.3.0)
    Downloading: 100%

    - Installing doctrine/inflector (v1.0)
    Downloading: 100%

    - Installing doctrine/common (v2.4.1)
    Downloading: 100%

    - Installing doctrine/data-fixtures (dev-master 83a910f)
    Cloning 83a910f62b01715f3ed7317f5a4996417a698177

    - Installing psr/log (1.0.0)
    Downloading: 100%

    - Installing twig/twig (v1.15.0)
    Loading from cache

    - Installing symfony/symfony (v2.4.1)
    Loading from cache

    - Installing symfony/icu (v1.0.0)
    Loading from cache

    - Installing jdorn/sql-formatter (v1.2.17)
    Loading from cache

    - Installing doctrine/dbal (v2.5.0-BETA2)
    Loading from cache

    - Installing doctrine/doctrine-bundle (v1.3.0-beta1)
    Loading from cache

    - Installing doctrine/doctrine-fixtures-bundle (dev-master 42ac886)
    Cloning 42ac886c2c669d793dc9d6258a7296edb0d5e933

    - Installing gedmo/doctrine-extensions (v2.3.9)
    Loading from cache

    - Installing stof/doctrine-extensions-bundle (dev-master cbec28d)
    Cloning cbec28d1ed6dce13b0c18c2dfd8f6af81e65cbae

    - Installing dflydev/markdown (v1.0.3)
    Loading from cache

    - Installing knplabs/knp-markdown-bundle (dev-master 9f4f889)
    Cloning 9f4f88919db4f4b7f8e374ac0de1a93e05b05646

    - Installing jms/metadata (1.5.0)
    Loading from cache

    - Installing jms/cg (1.0.0)
    Loading from cache

    - Installing jms/aop-bundle (1.0.1)
    Loading from cache

    - Installing jms/di-extra-bundle (1.4.0)
    Loading from cache

    - Installing phpoption/phpoption (1.4.0)
    Loading from cache

    - Installing jms/parser-lib (1.0.0)
    Loading from cache

    - Installing jms/security-extra-bundle (dev-master 802b05e)
    Cloning 802b05e30b069e5003805cd246ecbb343c91383c

    - Installing friendsofsymfony/user-bundle (dev-master 23d15ad)
    Cloning 23d15ad680fe5b695df1565e7854342e608bc483

    - Installing ezyang/htmlpurifier (v4.6.0)
    Loading from cache

    - Installing trsteel/ckeditor-bundle (dev-master facd858)
    Cloning facd858a0e7d06838be17e0a531ec358c98db371

    - Installing doctrine/orm (v2.4.1)
    Downloading: 100%

    - Installing twig/extensions (v1.0.1)
    Downloading: 100%

    - Installing kriswallsmith/assetic (v1.1.2)
    Downloading: 100%

    - Installing symfony/assetic-bundle (v2.3.0)
    Downloading: 100%

    - Installing swiftmailer/swiftmailer (v5.0.3)
    Loading from cache

    - Installing symfony/swiftmailer-bundle (v2.3.5)
    Loading from cache

    - Installing monolog/monolog (1.7.0)
    Downloading: 100%

    - Installing symfony/monolog-bundle (v2.5.0)
    Loading from cache

    - Installing sensio/distribution-bundle (v2.3.4)
    Downloading: 100%

    - Installing sensio/framework-extra-bundle (dev-master c3e20b4)
    Cloning c3e20b4a1bffce8d3885b35227c28e3881f86aed

    - Installing sensio/generator-bundle (v2.3.4)
    Downloading: 100%

    - Installing incenteev/composer-parameter-handler (v2.1.0)
    Loading from cache

    doctrine/data-fixtures suggests installing doctrine/mongodb-odm (For loading Mon
    goDB ODM fixtures)
    doctrine/data-fixtures suggests installing doctrine/phpcr-odm (For loading PHPCR
    ODM fixtures)
    gedmo/doctrine-extensions suggests installing doctrine/mongodb (>=1.0.1)
    gedmo/doctrine-extensions suggests installing doctrine/mongodb-odm (>=1.0.0-BETA
    7)
    stof/doctrine-extensions-bundle suggests installing doctrine/mongodb-odm-bundle
    (to use the MongoDB ODM extensions)
    knplabs/knp-markdown-bundle suggests installing ext-sundown (to use optional sup
    port for php-sundown extension instead of php implementation)
    friendsofsymfony/user-bundle suggests installing willdurand/propel-typehintable-
    behavior (Needed when using the propel implementation)
    kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the in
    tegration with the lessphp LESS compiler)
    kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the in
    tegration with the scssphp SCSS compiler)
    kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides t
    he integration with phpcssembed to embed data uris)
    kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provide
    s the integration with the SCSS compass plugin)
    monolog/monolog suggests installing mlehner/gelf-php (Allow sending log messages
    to a GrayLog2 server)
    monolog/monolog suggests installing raven/raven (Allow sending log messages to a
    Sentry server)
    monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages
    to a CouchDB server)
    monolog/monolog suggests installing ruflin/elastica (Allow sending log messages
    to an Elastic Search server)
    monolog/monolog suggests installing ext-amqp (Allow sending log messages to an A
    MQP server (1.0+ required))
    monolog/monolog suggests installing ext-mongo (Allow sending log messages to a M
    ongoDB server)
    monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages
    to AWS services like DynamoDB)
    Writing lock file
    Generating autoload files
    Updating the "app/config/parameters.yml" file
    PHP Fatal error: Class 'Doctrine\ORM\Tools\Console\Command\ClearCache\Collectio
    nRegionCommand' not found in C:\wamp\www\Symfony\vendor\doctrine\doctrine-bundle
    \Doctrine\Bundle\DoctrineBundle\Command\Proxy\CollectionRegionDoctrineCommand.ph
    p on line 29
    PHP Stack trace:
    PHP 1. {main}() C:\wamp\www\Symfony\app\console:0
    PHP 2. Symfony\Component\Console\Application->run() C:\wamp\www\Symfony\app\co
    nsole:27
    PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() C:\wamp\www
    \Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:12
    1
    PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()
    C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Co
    nsole\Application.php:73
    PHP 5. Doctrine\Bundle\DoctrineBundle\DoctrineBundle->registerCommands() C:\wa
    mp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console
    \Application.php:111
    PHP 6. Symfony\Component\HttpKernel\Bundle\Bundle->registerCommands() C:\wamp\
    www\Symfony\vendor\doctrine\doctrine-bundle\Doctrine\Bundle\DoctrineBundle\Doctr
    ineBundle.php:126
    PHP 7. ReflectionClass->__construct() C:\wamp\www\Symfony\app\bootstrap.php.ca
    che:2792
    PHP 8. Symfony\Component\Debug\DebugClassLoader->loadClass() C:\wamp\www\Symfo
    ny\app\bootstrap.php.cache:0
    PHP 9. require() C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Compon
    ent\Debug\DebugClassLoader.php:120
    Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handl
    ing the post-update-cmd event terminated with an exception



    [RuntimeException]
    An error occurred when executing the ""cache:clear --no-warmup"" command.



    update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock]
    [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-
    dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [
    packagesN]
    Malheureusement, comme on peux le voir ci-dessus, une erreur apparaît. En effet ces fichiers n'existe pas
    Je comprend pas pourquoi il ne les à pas créé...., une idée pour résoudre ce problème ?

  4. #4
    Membre expert
    Avatar de dukoid
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    2 100
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 2 100
    Points : 3 004
    Points
    3 004
    Par défaut
    tu utilise mongoDB ? montre nous ton fichier composer.json

    ou alors un problème avec ton fichier config.yml
    - indentation de 4 espaces
    - pas d'espace à chaque fin de ligne

  5. #5
    Débutant  
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    1 571
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 1 571
    Points : 353
    Points
    353
    Par défaut
    Voici mon fichier 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.4",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "~1.2",
    "twig/extensions": "~1.0",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~2.3",
    "sensio/framework-extra-bundle": "~3.0@dev",
    "sensio/generator-bundle": "~2.3",
    "incenteev/composer-parameter-handler": "~2.0",
    "doctrine/doctrine-fixtures-bundle": "dev-master",
    "doctrine/data-fixtures": "@dev",
    "stof/doctrine-extensions-bundle": "dev-master",
    "knplabs/knp-markdown-bundle": "dev-master",
    "jms/security-extra-bundle": "dev-master",
    "friendsofsymfony/user-bundle": "dev-master",
    "trsteel/ckeditor-bundle": "dev-master"
    },
    "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": "beta",
    "extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",
    "incenteev-parameters": {
    "file": "app/config/parameters.yml"
    },
    "branch-alias": {
    "dev-master": "2.4-dev"
    }
    }
    }
    Après vérification, le fichier config.yml as l'air bon (indentations 4 espaces, pas d'espace à chaque fin de ligne), je le met au cas ou que ça peux vous permettre de m'aider :
    imports:
    - { resource: parameters.yml }
    - { resource: security.yml }

    framework:
    #esi: ~
    translator: { fallback: "%locale%" }
    secret: "%secret%"
    router:
    resource: "%kernel.root_dir%/config/routing.yml"
    strict_requirements: ~
    form: ~
    csrf_protection: ~
    validation: { enable_annotations: true }
    templating:
    engines: ['twig']
    #assets_version: SomeVersionScheme
    default_locale: "%locale%"
    trusted_hosts: ~
    trusted_proxies: ~
    session:
    # handler_id set to null will use default session handler from php.ini
    handler_id: ~
    fragments: ~
    http_method_override: true

    # Twig Configuration
    twig:
    debug: "%kernel.debug%"
    strict_variables: "%kernel.debug%"

    # Assetic Configuration
    assetic:
    debug: "%kernel.debug%"
    use_controller: false
    bundles: [ ]
    #java: /usr/bin/java
    filters:
    cssrewrite: ~
    #closure:
    # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
    #yui_css:
    # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"

    # Doctrine Configuration
    doctrine:
    dbal:
    default_connection: blog
    connections:
    test:
    driver: %database_driver%
    host: %database_host%
    port: %database_port%
    dbname: %database_name%
    user: %database_user%
    password: %database_password%
    charset: UTF8
    blog:
    driver: %database_driver%
    host: %database_host%
    port: %database_port%
    dbname: %database_name%
    user: %database_user%
    password: %database_password%
    charset: UTF8
    quizz:
    driver: %database_driver%
    host: %database_host%
    port: %database_port%
    dbname: %database_name%
    user: %database_user%
    password: %database_password%
    charset: UTF8

    orm:
    default_entity_manager: blog
    entity_managers:
    test:
    connection: test
    mappings:
    LvTestBundle: ~
    blog:
    connection: blog
    mappings:
    LvBlogBundle: ~
    LvUserBundle: ~
    quizz:
    connection: quizz
    mappings:
    LvQuizzBundle: ~
    LvUserBundle: ~

    # Swiftmailer Configuration
    swiftmailer:
    transport: "%mailer_transport%"
    host: "%mailer_host%"
    username: "%mailer_user%"
    password: "%mailer_password%"
    spool: { type: memory }

    # Stof\DoctrineExtensionBundle configuration
    stof_doctrine_extensions:
    orm:
    test:
    sluggable: true
    blog:
    sluggable: true

    fos_user:
    db_driver: orm
    firewall_name: main
    user_class: Lv\UserBundle\Entity\User

  6. #6
    Membre expert
    Avatar de dukoid
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    2 100
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 2 100
    Points : 3 004
    Points
    3 004
    Par défaut
    je ne sais pas et quand on ne sais pas une seule chose à faire :

    surtout si tu démarre un projet.

    tu peux reprendre une base propre du projet Symfony.
    tu rajoute tes bundle dans le composer.json
    et tu lance composer.

    j'ai fais ça une fois et ça a résolu le problème....

  7. #7
    Débutant  
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    1 571
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 1 571
    Points : 353
    Points
    353
    Par défaut
    Merci pour la réponse.
    Je vais essayer on verra bien En espérant réussir à faire fonctionner à nouveau mon projet ^^
    Je vous tiens au courant.

  8. #8
    Débutant  
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    1 571
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 1 571
    Points : 353
    Points
    353
    Par défaut
    J'ai essayer en prenant une base de Symfony propre mais lorsque je lance le composer j'ai toujours le message d'erreur(dans mon invite de commande) :
    Updating the "app/config/parameters.yml" file
    PHP Fatal error: Class 'Doctrine\ORM\Tools\Console\Command\ClearCache\Collectio
    nRegionCommand' not found in C:\wamp\www\Symfony\vendor\doctrine\doctrine-bundle
    \Doctrine\Bundle\DoctrineBundle\Command\Proxy\CollectionRegionDoctrineCommand.ph
    p on line 29
    PHP Stack trace:
    PHP 1. {main}() C:\wamp\www\Symfony\app\console:0
    PHP 2. Symfony\Component\Console\Application->run() C:\wamp\www\Symfony\app\co
    nsole:27
    PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() C:\wamp\www
    \Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:12
    1
    PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()
    C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Co
    nsole\Application.php:73
    PHP 5. Doctrine\Bundle\DoctrineBundle\DoctrineBundle->registerCommands() C:\wa
    mp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console
    \Application.php:111
    PHP 6. Symfony\Component\HttpKernel\Bundle\Bundle->registerCommands() C:\wamp\
    www\Symfony\vendor\doctrine\doctrine-bundle\Doctrine\Bundle\DoctrineBundle\Doctr
    ineBundle.php:126
    PHP 7. ReflectionClass->__construct() C:\wamp\www\Symfony\app\bootstrap.php.ca
    che:2792
    PHP 8. Symfony\Component\Debug\DebugClassLoader->loadClass() C:\wamp\www\Symfo
    ny\app\bootstrap.php.cache:0
    PHP 9. require() C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Compon
    ent\Debug\DebugClassLoader.php:120
    Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handl
    ing the post-update-cmd event terminated with an exception



    [RuntimeException]
    An error occurred when executing the ""cache:clear --no-warmup"" command.



    update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock]
    [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-
    dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [
    packagesN]
    et sur le navigateur j'ai toujours :
    Whoops, looks like something went wrong.
    1/1 FatalErrorException: Error: Call to undefined method Doctrine\ORM\Configuration::isSecondLevelCacheEnabled() in C:\wamp\www\Symfony\vendor\doctrine\doctrine-bundle\Doctrine\Bundle\DoctrineBundle\DataCollector\DoctrineDataCollector.php line 82

    in C:\wamp\www\Symfony\vendor\doctrine\doctrine-bundle\Doctrine\Bundle\DoctrineBundle\DataCollector\DoctrineDataCollector.php line 82
    at ErrorHandler??handleFatalError() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\Debug\ErrorHandler.php line 212
    at ErrorHandler??handleFatal() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\Debug\ErrorHandler.php line 0
    at DoctrineDataCollector??collect() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Profiler\Profiler.php line 223
    at Profiler??collect() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\EventListener\ProfilerListener.php line 108
    at ProfilerListener??onKernelResponse() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher.php line 392
    at ??call_user_func() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher.php line 392
    at ??Symfony\Component\HttpKernel\Debug\{closure}() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php line 164
    at ??call_user_func() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php line 164
    at EventDispatcher??doDispatch() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php line 53
    at EventDispatcher??dispatch() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.php line 167
    at ContainerAwareEventDispatcher??dispatch() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher.php line 139
    at TraceableEventDispatcher??dispatch() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2931
    at HttpKernel??filterResponse() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2926
    at HttpKernel??handleRaw() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2883
    at HttpKernel??handle() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 3022
    at ContainerAwareHttpKernel??handle() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\EventListener\ExceptionListener.php line 58
    at ExceptionListener??onKernelException() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher.php line 392
    at ??call_user_func() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher.php line 392
    at ??Symfony\Component\HttpKernel\Debug\{closure}() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php line 164
    at ??call_user_func() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php line 164
    at EventDispatcher??doDispatch() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php line 53
    at EventDispatcher??dispatch() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.php line 167
    at ContainerAwareEventDispatcher??dispatch() in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher.php line 139
    at TraceableEventDispatcher??dispatch() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2943
    at HttpKernel??handleException() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2889
    at HttpKernel??handle() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 3022
    at ContainerAwareHttpKernel??handle() in C:\wamp\www\Symfony\app\bootstrap.php.cache line 2303
    at Kernel??handle() in C:\wamp\www\Symfony\web\app_dev.php line 28
    at ??{main}() in C:\wamp\www\Symfony\web\app_dev.php line 0
    Je désespère vraiment et je comprend ps pourquoi il me fait ça alors que ça fonctionné très bien auparavent.

    Merci par avance pour votre aide.

  9. #9
    Membre expert
    Avatar de dukoid
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    2 100
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 2 100
    Points : 3 004
    Points
    3 004
    Par défaut
    on est bien d'accord que tu pars d'une base propre sans rien ?
    sans modifier le config.yml .....

    juste le bundle ckeditor en plus donc ...

  10. #10
    Débutant  
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    1 571
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 1 571
    Points : 353
    Points
    353
    Par défaut
    Oui oui j'étais partie d'une base propre de Symfony (2.4.0 que j'avais dans mes téléchargements) ainsi que du composer.
    Mais quand je lancer composer les messages d'erreur apparaissait.

    J'ai été sur le site de Symfony et j'ai télécharger la 2.4.1 pour voir et j'ai installer tout les bundles même le Trsteel_CkeditorBundle et ça à l'air de fonctionner à nouveau
    Bon je bloque sur l'utilisation du bundle de Ckeditor mais je vais bien y arriver sinon je reviendrait demander de l'aide ^_^

    En tout cas, merci beaucoup pour l'aide.

    Cordialement

  11. #11
    Membre expert
    Avatar de dukoid
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    2 100
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 2 100
    Points : 3 004
    Points
    3 004
    Par défaut
    ok un petit bugue de versioning donc , indépendant de notre volonté.


    sinon plutôt que d'utiliser ckeditor(un peu lourd) , moi même j'ai changé pour l'éditeur de texte de Bootstrap.

    d'ailleurs je recommande bootstrap 3.0 pour pas mal de choses (comme le responsive design, ou des thèmes...)

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. A quand une mise à jour des MacBook Pro
    Par Korriged dans le forum Apple
    Réponses: 6
    Dernier message: 04/08/2010, 17h17
  2. Afficher une vidéo sur mon site à partir d'une url ou permalien comme facebook ?
    Par shivato dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 1
    Dernier message: 24/06/2010, 11h08
  3. Réponses: 62
    Dernier message: 29/04/2010, 06h05
  4. Erreur sur mon site
    Par badrel dans le forum ASP.NET
    Réponses: 5
    Dernier message: 12/10/2009, 16h16
  5. Réponses: 4
    Dernier message: 01/07/2007, 12h59

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo