Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22642

Exception when previewing an object in eZ Demo

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.3-dev
    • Labels:
      None
    • Environment:

      Operating System: Debian7
      PHP Version: 5.4.4
      Database and version: MySQL 5.5
      Browser (and version): Firefox 28

      Description

      Hi,

      When i try to preview an object in ez Demo admin interface, i get an exception

      Steps to reproduce:
      – Login into ezdemo_site_admin siteaccess
      – Create an article (fill in only the title and summary)
      – Click the preview

      An exception has been thrown during the rendering of a template ("When generating an UrlAlias route, either 'location' or 'locationId must be provided.") in eZDemoBundle::page_head.html.twig at line 21.
      

      The stack trace is:

      [1] Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("When generating an UrlAlias route, either 'location' or 'locationId must be provided.") in "eZDemoBundle::page_head.html.twig" at line 21.
          at n/a
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 293
       
          at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252
       
          at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30
       
          at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)))
              in /var/www/ezpublish5/ezpublish/cache/dev/twig/0a/1e/633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392.php line 49
       
          at __TwigTemplate_0a1e633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278
       
          at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252
       
          at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30
       
          at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
              in /var/www/ezpublish5/ezpublish/cache/dev/twig/9a/b2/5d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5.php line 24
       
          at __TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278
       
          at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252
       
          at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'), array())
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30
       
          at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 263
       
          at Twig_Template->render(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 53
       
          at Symfony\Bridge\Twig\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 83
       
          at Symfony\Bundle\TwigBundle\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php line 52
       
          at Symfony\Bundle\TwigBundle\Debug\TimedTwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Templating/DelegatingEngine.php line 50
       
          at Symfony\Component\Templating\DelegatingEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 335
       
          at eZ\Publish\Core\MVC\Symfony\View\Manager->renderContentView(object(ContentView), array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 278
       
          at eZ\Publish\Core\MVC\Symfony\View\Manager->renderLocation(object(Location), 'full', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 405
       
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->renderLocation(object(Location), 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 129
       
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->viewLocation(null, 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
              in /var/www/ezpublish5/vendor/ezsystems/demobundle/EzSystems/DemoBundle/Controller/DemoController.php line 104
       
          at EzSystems\DemoBundle\Controller\DemoController->showArticleAction(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true))
              in  line 
       
          at call_user_func_array(array(object(DemoController), 'showArticleAction'), array(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true)))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117
       
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '2')
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61
       
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '2', true)
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62
       
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '2')
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 92
       
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('60', '1', 'eng-GB', 'ezdemo_site')
              in  line 
       
          at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('60', '1', 'eng-GB', 'ezdemo_site'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117
       
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61
       
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62
       
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187
       
          at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67
       
          at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
              in /var/www/ezpublish5/web/index.php line 77
       
      [2] InvalidArgumentException: When generating an UrlAlias route, either 'location' or 'locationId must be provided.
          at n/a
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Routing/UrlAliasRouter.php line 216
       
          at eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter->generate('ez_urlalias', array('locationId' => null), false)
              in /var/www/ezpublish5/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php line 229
       
          at Symfony\Cmf\Component\Routing\ChainRouter->generate('ez_urlalias', array('locationId' => null), false)
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/RoutingExtension.php line 45
       
          at Symfony\Bridge\Twig\Extension\RoutingExtension->getPath('ez_urlalias', array('locationId' => null))
              in /var/www/ezpublish5/ezpublish/cache/dev/twig/19/09/a2194e1c41e6599bc5cf4e42f79ff88d7d8bde900dc342a60f4a49d920c4.php line 47
       
          at __TwigTemplate_1909a2194e1c41e6599bc5cf4e42f79ff88d7d8bde900dc342a60f4a49d920c4->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278
       
          at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252
       
          at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30
       
          at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)))
              in /var/www/ezpublish5/ezpublish/cache/dev/twig/0a/1e/633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392.php line 49
       
          at __TwigTemplate_0a1e633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278
       
          at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252
       
          at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30
       
          at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
              in /var/www/ezpublish5/ezpublish/cache/dev/twig/9a/b2/5d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5.php line 24
       
          at __TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278
       
          at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252
       
          at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'), array())
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30
       
          at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 263
       
          at Twig_Template->render(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 53
       
          at Symfony\Bridge\Twig\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 83
       
          at Symfony\Bundle\TwigBundle\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php line 52
       
          at Symfony\Bundle\TwigBundle\Debug\TimedTwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Templating/DelegatingEngine.php line 50
       
          at Symfony\Component\Templating\DelegatingEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 335
       
          at eZ\Publish\Core\MVC\Symfony\View\Manager->renderContentView(object(ContentView), array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 278
       
          at eZ\Publish\Core\MVC\Symfony\View\Manager->renderLocation(object(Location), 'full', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 405
       
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->renderLocation(object(Location), 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 129
       
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->viewLocation(null, 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
              in /var/www/ezpublish5/vendor/ezsystems/demobundle/EzSystems/DemoBundle/Controller/DemoController.php line 104
       
          at EzSystems\DemoBundle\Controller\DemoController->showArticleAction(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true))
              in  line 
       
          at call_user_func_array(array(object(DemoController), 'showArticleAction'), array(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true)))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117
       
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '2')
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61
       
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '2', true)
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62
       
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '2')
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 92
       
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('60', '1', 'eng-GB', 'ezdemo_site')
              in  line 
       
          at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('60', '1', 'eng-GB', 'ezdemo_site'))
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117
       
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61
       
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62
       
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
              in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187
       
          at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
              in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67
       
          at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
              in /var/www/ezpublish5/web/index.php line 77
      
      

      Note: this issue is different than EZP-22669

        Activity

        Paulo Nunes (Inactive) created issue -
        Paulo Nunes (Inactive) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Confirmed [ 10037 ]
        Paulo Nunes (Inactive) made changes -
        Description Hi,

        When i try to preview an object in ez Demo admin interface, i get an exception

        Steps to reproduce:
        -- Login into ezdemo_site_admin siteaccess
        -- Create an article (fill in only the title and summary)
        -- Click the preview

        {noformat}
        An exception has been thrown during the rendering of a template ("When generating an UrlAlias route, either 'location' or 'locationId must be provided.") in eZDemoBundle::page_head.html.twig at line 21.
        {noformat}

        The stack trace is:
        {noformat}
        [1] Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("When generating an UrlAlias route, either 'location' or 'locationId must be provided.") in "eZDemoBundle::page_head.html.twig" at line 21.
            at n/a
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 293

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/0a/1e/633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392.php line 49

            at __TwigTemplate_0a1e633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/9a/b2/5d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5.php line 24

            at __TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'), array())
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 263

            at Twig_Template->render(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 53

            at Symfony\Bridge\Twig\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 83

            at Symfony\Bundle\TwigBundle\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php line 52

            at Symfony\Bundle\TwigBundle\Debug\TimedTwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Templating/DelegatingEngine.php line 50

            at Symfony\Component\Templating\DelegatingEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 335

            at eZ\Publish\Core\MVC\Symfony\View\Manager->renderContentView(object(ContentView), array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 278

            at eZ\Publish\Core\MVC\Symfony\View\Manager->renderLocation(object(Location), 'full', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 405

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->renderLocation(object(Location), 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 129

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->viewLocation(null, 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in /var/www/ezpublish5/vendor/ezsystems/demobundle/EzSystems/DemoBundle/Controller/DemoController.php line 104

            at EzSystems\DemoBundle\Controller\DemoController->showArticleAction(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in line

            at call_user_func_array(array(object(DemoController), 'showArticleAction'), array(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true)))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117

            at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '2')
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61

            at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '2', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62

            at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '2')
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 92

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('60', '1', 'eng-GB', 'ezdemo_site')
                in line

            at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('60', '1', 'eng-GB', 'ezdemo_site'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117

            at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61

            at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62

            at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187

            at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67

            at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
                in /var/www/ezpublish5/web/index.php line 77

        [2] InvalidArgumentException: When generating an UrlAlias route, either 'location' or 'locationId must be provided.
            at n/a
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Routing/UrlAliasRouter.php line 216

            at eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter->generate('ez_urlalias', array('locationId' => null), false)
                in /var/www/ezpublish5/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php line 229

            at Symfony\Cmf\Component\Routing\ChainRouter->generate('ez_urlalias', array('locationId' => null), false)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/RoutingExtension.php line 45

            at Symfony\Bridge\Twig\Extension\RoutingExtension->getPath('ez_urlalias', array('locationId' => null))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/19/09/a2194e1c41e6599bc5cf4e42f79ff88d7d8bde900dc342a60f4a49d920c4.php line 47

            at __TwigTemplate_1909a2194e1c41e6599bc5cf4e42f79ff88d7d8bde900dc342a60f4a49d920c4->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/0a/1e/633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392.php line 49

            at __TwigTemplate_0a1e633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/9a/b2/5d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5.php line 24

            at __TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'), array())
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 263

            at Twig_Template->render(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 53

            at Symfony\Bridge\Twig\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 83

            at Symfony\Bundle\TwigBundle\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php line 52

            at Symfony\Bundle\TwigBundle\Debug\TimedTwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Templating/DelegatingEngine.php line 50

            at Symfony\Component\Templating\DelegatingEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 335

            at eZ\Publish\Core\MVC\Symfony\View\Manager->renderContentView(object(ContentView), array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 278

            at eZ\Publish\Core\MVC\Symfony\View\Manager->renderLocation(object(Location), 'full', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 405

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->renderLocation(object(Location), 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 129

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->viewLocation(null, 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in /var/www/ezpublish5/vendor/ezsystems/demobundle/EzSystems/DemoBundle/Controller/DemoController.php line 104

            at EzSystems\DemoBundle\Controller\DemoController->showArticleAction(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in line

            at call_user_func_array(array(object(DemoController), 'showArticleAction'), array(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true)))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117

            at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '2')
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61

            at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '2', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62

            at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '2')
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 92

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('60', '1', 'eng-GB', 'ezdemo_site')
                in line

            at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('60', '1', 'eng-GB', 'ezdemo_site'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117

            at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61

            at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62

            at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187

            at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67

            at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
                in /var/www/ezpublish5/web/index.php line 77

        {noformat}
        Hi,

        When i try to preview an object in ez Demo admin interface, i get an exception

        Steps to reproduce:
        -- Login into ezdemo_site_admin siteaccess
        -- Create an article (fill in only the title and summary)
        -- Click the preview

        {noformat}
        An exception has been thrown during the rendering of a template ("When generating an UrlAlias route, either 'location' or 'locationId must be provided.") in eZDemoBundle::page_head.html.twig at line 21.
        {noformat}

        The stack trace is:
        {noformat}
        [1] Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("When generating an UrlAlias route, either 'location' or 'locationId must be provided.") in "eZDemoBundle::page_head.html.twig" at line 21.
            at n/a
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 293

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/0a/1e/633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392.php line 49

            at __TwigTemplate_0a1e633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/9a/b2/5d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5.php line 24

            at __TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'), array())
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 263

            at Twig_Template->render(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 53

            at Symfony\Bridge\Twig\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 83

            at Symfony\Bundle\TwigBundle\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php line 52

            at Symfony\Bundle\TwigBundle\Debug\TimedTwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Templating/DelegatingEngine.php line 50

            at Symfony\Component\Templating\DelegatingEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 335

            at eZ\Publish\Core\MVC\Symfony\View\Manager->renderContentView(object(ContentView), array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 278

            at eZ\Publish\Core\MVC\Symfony\View\Manager->renderLocation(object(Location), 'full', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 405

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->renderLocation(object(Location), 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 129

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->viewLocation(null, 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in /var/www/ezpublish5/vendor/ezsystems/demobundle/EzSystems/DemoBundle/Controller/DemoController.php line 104

            at EzSystems\DemoBundle\Controller\DemoController->showArticleAction(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in line

            at call_user_func_array(array(object(DemoController), 'showArticleAction'), array(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true)))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117

            at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '2')
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61

            at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '2', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62

            at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '2')
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 92

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('60', '1', 'eng-GB', 'ezdemo_site')
                in line

            at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('60', '1', 'eng-GB', 'ezdemo_site'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117

            at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61

            at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62

            at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187

            at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67

            at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
                in /var/www/ezpublish5/web/index.php line 77

        [2] InvalidArgumentException: When generating an UrlAlias route, either 'location' or 'locationId must be provided.
            at n/a
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Routing/UrlAliasRouter.php line 216

            at eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter->generate('ez_urlalias', array('locationId' => null), false)
                in /var/www/ezpublish5/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php line 229

            at Symfony\Cmf\Component\Routing\ChainRouter->generate('ez_urlalias', array('locationId' => null), false)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/RoutingExtension.php line 45

            at Symfony\Bridge\Twig\Extension\RoutingExtension->getPath('ez_urlalias', array('locationId' => null))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/19/09/a2194e1c41e6599bc5cf4e42f79ff88d7d8bde900dc342a60f4a49d920c4.php line 47

            at __TwigTemplate_1909a2194e1c41e6599bc5cf4e42f79ff88d7d8bde900dc342a60f4a49d920c4->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/0a/1e/633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392.php line 49

            at __TwigTemplate_0a1e633781bafb0251690e749f458a2803c327a3bfa4843087f9cbddb6db3392->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array('content' => array(object(__TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5), 'block_content')))
                in /var/www/ezpublish5/ezpublish/cache/dev/twig/9a/b2/5d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5.php line 24

            at __TwigTemplate_9ab25d5a1aa87f0e19a6d790d0c00aee13a9daf6a1650c55bdae10aa6e3147c5->doDisplay(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 278

            at Twig_Template->displayWithErrorHandling(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'ezpublish' => object(GlobalHelper), 'app' => object(GlobalVariables)), array())
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 252

            at Twig_Template->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'), array())
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php line 30

            at eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate->display(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/twig/twig/lib/Twig/Template.php line 263

            at Twig_Template->render(array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 53

            at Symfony\Bridge\Twig\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 83

            at Symfony\Bundle\TwigBundle\TwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php line 52

            at Symfony\Bundle\TwigBundle\Debug\TimedTwigEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Templating/DelegatingEngine.php line 50

            at Symfony\Component\Templating\DelegatingEngine->render('eZDemoBundle:full:article.html.twig', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false, 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig'))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 335

            at eZ\Publish\Core\MVC\Symfony\View\Manager->renderContentView(object(ContentView), array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php line 278

            at eZ\Publish\Core\MVC\Symfony\View\Manager->renderLocation(object(Location), 'full', array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true, 'noLayout' => false))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 405

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->renderLocation(object(Location), 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php line 129

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController->viewLocation(null, 'full', true, array('showSummary' => true, 'showImage' => true, 'content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in /var/www/ezpublish5/vendor/ezsystems/demobundle/EzSystems/DemoBundle/Controller/DemoController.php line 104

            at EzSystems\DemoBundle\Controller\DemoController->showArticleAction(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true))
                in line

            at call_user_func_array(array(object(DemoController), 'showArticleAction'), array(null, 'full', true, array('content' => object(Content), 'location' => object(Location), 'isPreview' => true)))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117

            at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '2')
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61

            at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '2', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62

            at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '2')
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 92

            at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('60', '1', 'eng-GB', 'ezdemo_site')
                in line

            at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('60', '1', 'eng-GB', 'ezdemo_site'))
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117

            at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61

            at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62

            at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187

            at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
                in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67

            at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
                in /var/www/ezpublish5/web/index.php line 77

        {noformat}

        *Note*: this issue is different than EZP-22669
        Bertrand Dunogier made changes -
        Status Confirmed [ 10037 ] InputQ [ 10001 ]
        Bertrand Dunogier made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ]
        Bertrand Dunogier made changes -
        Status Development [ 3 ] Documentation done [ 10011 ]
        Marcos Loureiro (Inactive) made changes -
        Status Documentation done [ 10011 ] QA [ 10008 ]
        Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ] Marcos Loureiro [ marcos.loureiro@ez.no ]
        Marcos Loureiro (Inactive) made changes -
        issue.field.resolutiondate 2014-05-08 09:51:07.0 2014-05-08 09:51:07.324
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 30 minutes [ 1800 ]
        Worklog Id 48080 [ 48080 ]
        Marcos Loureiro (Inactive) made changes -
        Assignee Marcos Loureiro [ marcos.loureiro@ez.no ]
        Status QA [ 10008 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 62765 ] EZ* Development Workflow [ 84945 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 84945 ] EZEE Development Workflow [ 123661 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Paulo Nunes (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 30 minutes
              30m