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".
Partager