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 la partie affichage du message "'Mon premier message'" [2.x]


Sujet :

Symfony PHP

  1. #21
    Nouveau Candidat au Club
    Inscrit en
    Mai 2005
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Mai 2005
    Messages : 18
    Points : 0
    Points
    0
    Par défaut Message d'Erreur Ligne 7 dans le fichier Entity/Acteur.php
    C:\wamp\www\Symfony2>php app/console doctrine:schema:create
    PHP Fatal error: Cannot redeclare class MyApp\FilmothequeBundle\Entity\Acteur i
    n C:\wamp\www\Symfony2\src\MyApp\FilmothequeBundle\Entity\~Acteur.php on line 7
    PHP Stack trace:
    PHP 1. {main}() C:\wamp\www\Symfony2\app\console:0
    PHP 2. Symfony\Component\Console\Application->run() C:\wamp\www\Symfony2\app\c
    onsole:16
    PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() C:\wamp\www
    \Symfony2\vendor\symfony\src\Symfony\Component\Console\Application.php:119
    PHP 4. Symfony\Component\Console\Application->doRun() C:\wamp\www\Symfony2\ven
    dor\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:77
    PHP 5. Symfony\Component\Console\Command\Command->run() C:\wamp\www\Symfony2\v
    endor\symfony\src\Symfony\Component\Console\Application.php:193
    PHP 6. Symfony\Bundle\DoctrineBundle\Command\CreateSchemaDoctrineCommand->exec
    ute() C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Console\Command\
    Command.php:188
    PHP 7. Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand->execute(
    ) C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Bundle\DoctrineBundle\Command\
    CreateSchemaDoctrineCommand.php:52
    PHP 8. Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMetadata() C:\wamp\www
    \Symfony2\vendor\doctrine\lib\Doctrine\ORM\Tools\Console\Command\SchemaTool\Abst
    ractCommand.php:53
    PHP 9. Doctrine\ORM\Mapping\Driver\DriverChain->getAllClassNames() C:\wamp\www
    \Symfony2\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadataFactory.php:122
    PHP 10. Doctrine\ORM\Mapping\Driver\AnnotationDriver->getAllClassNames() C:\wam
    p\www\Symfony2\vendor\doctrine\lib\Doctrine\ORM\Mapping\Driver\DriverChain.php:9
    2
    PHP 11. require_once() C:\wamp\www\Symfony2\vendor\doctrine\lib\Doctrine\ORM\Ma
    pping\Driver\AnnotationDriver.php:455

    Fatal error: Cannot redeclare class MyApp\FilmothequeBundle\Entity\Acteur in C:\
    wamp\www\Symfony2\src\MyApp\FilmothequeBundle\Entity\~Acteur.php on line 7

    Call Stack:
    0.0003 328216 1. {main}() C:\wamp\www\Symfony2\app\console:0
    0.4070 5168176 2. Symfony\Component\Console\Application->run() C:\wamp\
    www\Symfony2\app\console:16
    0.4224 5364824 3. Symfony\Bundle\FrameworkBundle\Console\Application->d
    oRun() C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Console\Applica
    tion.php:119
    0.4225 5364824 4. Symfony\Component\Console\Application->doRun() C:\wam
    p\www\Symfony2\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Applica
    tion.php:77
    0.4251 5364856 5. Symfony\Component\Console\Command\Command->run() C:\w
    amp\www\Symfony2\vendor\symfony\src\Symfony\Component\Console\Application.php:19
    3
    0.4262 5365152 6. Symfony\Bundle\DoctrineBundle\Command\CreateSchemaDoc
    trineCommand->execute() C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Componen
    t\Console\Command\Command.php:188
    0.5286 8113120 7. Doctrine\ORM\Tools\Console\Command\SchemaTool\Abstrac
    tCommand->execute() C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Bundle\Doctr
    ineBundle\Command\CreateSchemaDoctrineCommand.php:52
    0.5287 8113120 8. Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMeta
    data() C:\wamp\www\Symfony2\vendor\doctrine\lib\Doctrine\ORM\Tools\Console\Comma
    nd\SchemaTool\AbstractCommand.php:53
    0.5287 8113304 9. Doctrine\ORM\Mapping\Driver\DriverChain->getAllClassN
    ames() C:\wamp\www\Symfony2\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetada
    taFactory.php:122
    0.5288 8113496 10. Doctrine\ORM\Mapping\Driver\AnnotationDriver->getAllC
    lassNames() C:\wamp\www\Symfony2\vendor\doctrine\lib\Doctrine\ORM\Mapping\Driver
    \DriverChain.php:92
    0.5387 8152184 11. require_once('C:\wamp\www\Symfony2\src\MyApp\Filmothe
    queBundle\Entity\~Acteur.php') C:\wamp\www\Symfony2\vendor\doctrine\lib\Doctrine
    \ORM\Mapping\Driver\AnnotationDriver.php:455


    C:\wamp\www\Symfony2>

  2. #22
    Nouveau Candidat au Club
    Inscrit en
    Mai 2005
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Mai 2005
    Messages : 18
    Points : 0
    Points
    0
    Par défaut Message d'erreur
    Salut à tous

    Merci pour vos observations (Voir code ci dessus)
    Je pense à l'absence du code concernant la relation ManyToMany mentionnée dans le fichier Film.php, juste avant la class Acteur, mais comme je suis vraiment une débutante donc je prie ceux qui ont une solution de m'éclairer.

    Merci
    Fichiers attachés Fichiers attachés

  3. #23
    Membre actif

    Homme Profil pro
    Inscrit en
    Janvier 2009
    Messages
    91
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Secteur : Service public

    Informations forums :
    Inscription : Janvier 2009
    Messages : 91
    Points : 223
    Points
    223
    Par défaut
    Supprime le fichier ~Acteur et relance la commande.

  4. #24
    Nouveau Candidat au Club
    Inscrit en
    Mai 2005
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Mai 2005
    Messages : 18
    Points : 0
    Points
    0
    Par défaut Erreur generate:schema
    Bonjour

    Merci, effectivement c'est là que se trouve le problème.

  5. #25
    Candidat au Club
    Profil pro
    Inscrit en
    Juin 2011
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2011
    Messages : 2
    Points : 2
    Points
    2
    Par défaut Erreur d'annotation
    Je débute avec Symfony, je me lance dans l'inconnue...
    Quand je lance la génération des get(); au niveau des entities, j'ai une erreur de ce type :

    [Doctrine\Common\Annotations\AnnotationException]

    [Semantical Error] The annotation "@orm:Entity" in class MyApp\FilmothequeBundle\Acteur was never imported


    Etant donné mon niveau débutant avec ce framework et doctrine j'avoue ne pas comprendre et trouve moi-même la solution

  6. #26
    Inscrit
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    319
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 319
    Points : 476
    Points
    476
    Par défaut
    Quelle version de Symfony tu as ? Beta1 ou beta2 ?
    Car depuis la beta2, les annotations c'est @ORM\Entity (le slash et non les 2 points), sans oublier de rajouter use Doctrine\ORM\Mapping as ORM; en haut.

  7. #27
    Candidat au Club
    Profil pro
    Inscrit en
    Juin 2011
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Juin 2011
    Messages : 2
    Points : 2
    Points
    2
    Par défaut
    Effectivement merci !

    Sinon je suis en BETA3, par contre il lance bien la géneration (Generating entities for namespace "MyApp\FilmothequeBundle")
    Mais par contre il ne m'ajoute pas les get(); et set(); dans mes fichiers php d'entités

    Edit : C'est bon j'y suis arrivé, tellement de choses qui changent entre 2 BETA

  8. #28
    Futur Membre du Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 3
    Points : 5
    Points
    5
    Par défaut Débutant : Erreur pour afficher un premier message
    Bonsoir,

    Je débute sous symfony 2.0, avec ce magnifique tutorial et j'ai un petit soucis pour afficher un premier message.

    Ma config :

    Mac + Mamp + Eclipse php

    avec symfony 2.0 béta 5

    AppKernel.php :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
     
    <?php
     
    use Symfony\Component\HttpKernel\Kernel;
    use Symfony\Component\Config\Loader\LoaderInterface;
    use Symfony\Component\ClassLoader\DebugUniversalClassLoader;
    use Symfony\Component\HttpKernel\Debug\ErrorHandler;
    use Symfony\Component\HttpKernel\Debug\ExceptionHandler;
     
    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
                new Symfony\Bundle\SecurityBundle\SecurityBundle(),
                new Symfony\Bundle\TwigBundle\TwigBundle(),
                new Symfony\Bundle\MonologBundle\MonologBundle(),
                new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
                new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
                new Symfony\Bundle\AsseticBundle\AsseticBundle(),
                new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
                new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
                new MyApp\FilmothequeBundle\MyAppFilmothequeBundle(),
            );
     
            if (in_array($this->getEnvironment(), array('dev', 'test'))) {
                $bundles[] = new Acme\DemoBundle\AcmeDemoBundle();
                $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
                $bundles[] = new Symfony\Bundle\WebConfiguratorBundle\SymfonyWebConfiguratorBundle();
            }
     
            return $bundles;
        }
     
        public function init()
        {
            if ($this->debug) {
                ini_set('display_errors', 1);
                error_reporting(-1);
     
                DebugUniversalClassLoader::enable();
                ErrorHandler::register();
                if ('cli' !== php_sapi_name()) {
                    ExceptionHandler::register();
                }
            } else {
                ini_set('display_errors', 0);
            }
        }
     
        public function registerContainerConfiguration(LoaderInterface $loader)
        {
            $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
        }
    }

    mon fichier autoload.php :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    <?php
     
    use Symfony\Component\ClassLoader\UniversalClassLoader;
     
    $loader = new UniversalClassLoader();
    $loader->registerNamespaces(array(
        'Symfony'          => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),
        'Sensio'           => __DIR__.'/../vendor/bundles',
        'JMS'              => __DIR__.'/../vendor/bundles',
        'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
        'Doctrine\\DBAL'   => __DIR__.'/../vendor/doctrine-dbal/lib',
        'Doctrine'         => __DIR__.'/../vendor/doctrine/lib',
        'Monolog'          => __DIR__.'/../vendor/monolog/src',
        'Assetic'          => __DIR__.'/../vendor/assetic/src',
        'Metadata'         => __DIR__.'/../vendor/metadata/src',
    	'MyApp' => __DIR__.'/../src',
    ));
    $loader->registerPrefixes(array(
        'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
        'Twig_'            => __DIR__.'/../vendor/twig/lib',
    ));
    $loader->registerPrefixFallbacks(array(
        __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs',
    ));
    $loader->registerNamespaceFallbacks(array(
        __DIR__.'/../src',
    ));
    $loader->register();
     
    // Swiftmailer needs a special autoloader to allow
    // the lazy loading of the init file (which is expensive)
    require_once __DIR__.'/../vendor/swiftmailer/lib/classes/Swift.php';
    Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/lib/swift_init.php');
    Là j'ai un doute, j'hésite entre routing.yml et routing_dev.yml (les deux génère une erreur)
    Dans app/config/routing_dev.yml :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    _welcome:
        pattern:  /
        defaults: { _controller: AcmeDemoBundle:Welcome:index }
     
    _demo_secured:
        resource: "@AcmeDemoBundle/Controller/SecuredController.php"
        type:     annotation
     
    _demo:
        resource: "@AcmeDemoBundle/Controller/DemoController.php"
        type:     annotation
        prefix:   /demo
     
    _assetic:
        resource: .
        type:     assetic
     
    _wdt:
        resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
        prefix:   /_wdt
     
    _profiler:
        resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
        prefix:   /_profiler
     
    _configurator:
        resource: "@SymfonyWebConfiguratorBundle/Resources/config/routing/configurator.xml"
        prefix:   /_configurator
     
    _main:
        resource: routing.yml
     
    myapp:
    	resource: "@MyAppFilmothequeBundle/Resources/config/routing.yml"
    	prefix:   /myapp

    et enfin dans MyApp/FilmothequeBundle/Ressources/config/routing.yml :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    myapp:
    	resource: "@MyAppFilmothequeBundle/Resources/config/routing.yml"
    	prefix:   /myapp


    Ainsi, j'obtiens l'erreur suivante :
    A YAML file cannot contain tabs as indentation in \/Applications\/MAMP\/htdocs\/Symfony2\/app\/config\/routing_dev.yml at line 34 (near " resource: "@MyAppFilmothequeBundle/Resources/config/routing.yml"").
    500 Internal Server Error - ParseException

    Stack Trace
    1. in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Component/Yaml/Parser.php at line 70
    67.
    68. // tab?
    69. if (preg_match('#^\t+#', $this->currentLine)) {
    70. throw new ParseException('A YAML file cannot contain tabs as indentation.', $this->getRealCurrentLineNb() + 1, $this->currentLine);
    71. }
    72.
    73. $isRef = $isInPlace = $isProcessed = false;
    2. at Parser ->parse ('_welcome: pattern: / defaults: { _controller: AcmeDemoBundle:Welcome:index } _demo_secured: resource: "@AcmeDemoBundle/Controller/SecuredController.php" type: annotation _demo: resource: "@AcmeDemoBundle/Controller/DemoController.php" type: annotation prefix: /demo _assetic: resource: . type: assetic _wdt: resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" prefix: /_wdt _profiler: resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" prefix: /_profiler _configurator: resource: "@SymfonyWebConfiguratorBundle/Resources/config/routing/configurator.xml" prefix: /_configurator _main: resource: routing.yml myapp: resource: "@MyAppFilmothequeBundle/Resources/config/routing.yml" prefix: /myapp')
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Component/Yaml/Yaml.php at line 69
    3. at Yaml ::parse ('/Applications/MAMP/htdocs/Symfony2/app/config/routing_dev.yml')
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php at line 49
    4. at YamlFileLoader ->load ('/Applications/MAMP/htdocs/Symfony2/app/config/routing_dev.yml', null)
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Component/Config/Loader/DelegatingLoader.php at line 50
    5. at DelegatingLoader ->load ('/Applications/MAMP/htdocs/Symfony2/app/config/routing_dev.yml', null)
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php at line 57
    6. at DelegatingLoader ->load ('/Applications/MAMP/htdocs/Symfony2/app/config/routing_dev.yml', null)
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php at line 52
    7. at Router ->getRouteCollection ()
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Component/Routing/Router.php at line 216
    8. at Router ->getMatcher ()
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Component/Routing/Router.php at line 156
    9. at Router ->setContext (object(RequestContext))
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/EventListener/RouterListener.php at line 64
    10. at RouterListener ->onEarlyCoreRequest (object(GetResponseEvent))
    in at line
    11. at call_user_func (array(object(RouterListener), 'onEarlyCoreRequest'), object(GetResponseEvent))
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php at line 74
    12. at TraceableEventDispatcher ->doDispatch (array(array(object(RouterListener), 'onEarlyCoreRequest'), array(object(SessionListener), 'onCoreRequest'), array(object(Firewall), 'onCoreRequest'), array(object(RouterListener), 'onCoreRequest'), array(object(RequestListener), 'onCoreRequest')), 'core.request', object(GetResponseEvent))
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php at line 59
    13. at EventDispatcher ->dispatch ('core.request', object(GetResponseEvent))
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/ContainerAwareEventDispatcher.php at line 101
    14. at ContainerAwareEventDispatcher ->dispatch ('core.request', object(GetResponseEvent))
    in kernel.root_dir/bootstrap.php.cache at line 427
    15. at HttpKernel ->handleRaw (object(Request), '1')
    in kernel.root_dir/bootstrap.php.cache at line 416
    16. at HttpKernel ->handle (object(Request), '1', true)
    in /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php at line 44
    17. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 612
    18. at Kernel ->handle (object(Request))
    in /Applications/MAMP/htdocs/Symfony2/web/app_dev.php at line 20
    Logs
    1 error
    1. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.exception" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onCoreException".
    2. [2011-06-23 22:46:31] request.CRITICAL: Symfony\Component\Yaml\Exception\ParseException: A YAML file cannot contain tabs as indentation in "\/Applications\/MAMP\/htdocs\/Symfony2\/app\/config\/routing_dev.yml" at line 34 (near " resource: "@MyAppFilmothequeBundle/Resources/config/routing.yml""). (uncaught exception) at /Applications/MAMP/htdocs/Symfony2/vendor/symfony/src/Symfony/Component/Yaml/Parser.php line 70
    3. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\RouterListener::onEarlyCoreRequest".
    4. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onCoreRequest".
    5. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.request" to listener "Symfony\Component\Security\Http\Firewall::onCoreRequest".
    6. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\RouterListener::onCoreRequest".
    7. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.request" to listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onCoreRequest".
    8. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onCoreController".
    9. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onCoreController".
    10. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onCoreController".
    11. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onCoreController".
    12. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.controller" to listener "Acme\DemoBundle\ControllerListener::onCoreController".
    13. [2011-06-23 22:46:31] event.DEBUG: Notified event "core.controller" to listener "JMS\SecurityExtraBundle\Controller\ControllerListener::onCoreController".

    Merci d'avance pour votre aide ^_^

  9. #29
    Inscrit
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    319
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 319
    Points : 476
    Points
    476
    Par défaut
    Salut,

    bah il suffit de lire l'erreur non ? "A YAML file cannot contain tabs as indentation" je vois vraiment pas ce qu'on peut te dire de plus !

  10. #30
    Futur Membre du Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 3
    Points : 5
    Points
    5
    Par défaut
    Merci de ta réponse, finalement j'ai trouvé le problème (le copier coller c'est mauvais dans routing.yml...).

    En tapant le code et en utilisant des espaces à la place des tabulations tout fonctionne.



  11. #31
    Membre régulier
    Profil pro
    Inscrit en
    Novembre 2006
    Messages
    174
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 174
    Points : 80
    Points
    80
    Par défaut Probleme d'import Routing.yml
    ça me sauve d'un pb similaire

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 2 PremièrePremière 12

Discussions similaires

  1. Réponses: 4
    Dernier message: 24/02/2010, 06h37
  2. Affichage des messages d'erreur sur mon serveur
    Par philippe57460 dans le forum Langage
    Réponses: 4
    Dernier message: 25/06/2008, 08h23
  3. Affichage message d'erreur sur cellule protégé
    Par djm69 dans le forum Macros et VBA Excel
    Réponses: 2
    Dernier message: 28/01/2008, 12h08
  4. Affichage message d'erreur sur la page courante
    Par mflorisson dans le forum Struts 2
    Réponses: 1
    Dernier message: 18/12/2007, 03h24

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