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

Unable to view article on platform site with clean data

    Details

      Description

      Viewing an article on a "clean" site generates a "500 Internal Server Error".
      There seems to be some references to "Landing page" in the system, a content type which do not exists in clean data

      The following is displayed in log:

      [2015-11-19 12:40:34] app.NOTICE: Siteaccess not matched against configuration, returning default siteaccess. [] []
      [2015-11-19 12:40:34] app.DEBUG: Router eZ\Bundle\EzPublishCoreBundle\Routing\DefaultRouter was not able to match, message "" [] []
      [2015-11-19 12:40:34] app.INFO: UrlAlias matched location #60. Forwarding to ViewController [] []
      [2015-11-19 12:40:34] request.INFO: Matched route "ez_urlalias". {"route_parameters":{"_route":"ez_urlalias","_controller":"ez_content:viewAction","contentId":58,"locationId":"60","viewType":"full","layout":true},"request_uri":"http://localhost:8080/Folder/New-article"} []
      [2015-11-19 12:40:34] security.DEBUG: Read existing security token from the session. {"key":"_security_ezpublish_front"} []
      [2015-11-19 12:40:34] security.DEBUG: User was reloaded from a user provider. {"username":"admin","provider":"eZ\\Publish\\Core\\MVC\\Symfony\\Security\\User\\Provider"} []
      [2015-11-19 12:40:34] app.DEBUG: Router eZ\Bundle\EzPublishCoreBundle\Routing\DefaultRouter was unable to generate route. Reason: 'Route 'ez_urlalias' not found': Unable to generate a URL for the named route "ez_urlalias" as such route does not exist. [] []
      [2015-11-19 12:40:34] app.ERROR: Couldn't find any SiteAccess with 'eng-GB' as main language. [] []
      [2015-11-19 12:40:34] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Could not find 'eZ\Publish\SPI\Persistence\Content\Type' with identifier 'ID: landing_page, Status: 0'" at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/ExceptionListener.php line 51 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Could not find 'eZ\\Publish\\SPI\\Persistence\\Content\\Type' with identifier 'ID: landing_page, Status: 0' at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/ExceptionListener.php:51, eZ\\Publish\\Core\\Persistence\\Legacy\\Exception\\TypeNotFound(code: 404): Could not find 'eZ\\Publish\\SPI\\Persistence\\Content\\Type' with identifier 'ID: landing_page, Status: 0' at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php:247)"} []
      [2015-11-19 12:40:34] request.CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Argument '$fieldIdentifier' is invalid: 'tags' field not present on content #58 'New article'") in "eZDemoBundle:full:article.html.twig" at line 65." at /var/www/ezpublish/cache/prod/classes.php line 5158 {"exception":"[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Argument '$fieldIdentifier' is invalid: 'tags' field not present on content #58 'New article'\") in \"eZDemoBundle:full:article.html.twig\" at line 65. at /var/www/ezpublish/cache/prod/classes.php:5158, eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException(code: 0): Argument '$fieldIdentifier' is invalid: 'tags' field not present on content #58 'New article' at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Templating/Twig/Extension/FieldRenderingExtension.php:123)"} []
      [2015-11-19 12:40:34] security.DEBUG: Stored the security token in the session. {"key":"_security_ezpublish_front"} []
      

      How to reproduce:

      • install ezplatform : composer --no-interaction create-project --prefer-dist --no-progress --no-interaction ezsystems/ezplatform /var/www dev-master
      • Run setup : php ezpublish/console ezplatform:install clean; php ezpublish/console cache:clear --env=prod
      • Login to http://localhost/ez as admin
      • Create Folder, "Folder" below root
      • Create Article, "New Article" below "Folder"
      • Try to access http://localhost/Folder/New-article

        Activity

        Hide
        Paulo Nunes (Inactive) added a comment -

        The same happens in my local CentOS7 installation

        Show
        Paulo Nunes (Inactive) added a comment - The same happens in my local CentOS7 installation
        Hide
        Bertrand Dunogier added a comment -

        Hmmm, what did you expect ? Platform has been based on the demobundle since the first day. The demobundle templates expect the demobundle content, but this is nothing new.

        https://github.com/ezsystems/ezplatform/pull/65, mentioned at every daily since last week, will fix that.

        Show
        Bertrand Dunogier added a comment - Hmmm, what did you expect ? Platform has been based on the demobundle since the first day. The demobundle templates expect the demobundle content, but this is nothing new. https://github.com/ezsystems/ezplatform/pull/65 , mentioned at every daily since last week, will fix that.
        Hide
        Vidar Langseid added a comment -

        I think pr #65 will fix this issue partly.
        But AppBundle in pr #65 do not contain any templates so I guess it won't be able to view any objects at all?

        What about a default fall-back template which could display any content-type ( and field-type) in a minimalistic way ( like the "standard" templates in legacy, but just "simpler". maybe with more-or-less the same look as "plain" in legacy ) ?

        Show
        Vidar Langseid added a comment - I think pr #65 will fix this issue partly. But AppBundle in pr #65 do not contain any templates so I guess it won't be able to view any objects at all? What about a default fall-back template which could display any content-type ( and field-type) in a minimalistic way ( like the "standard" templates in legacy, but just "simpler". maybe with more-or-less the same look as "plain" in legacy ) ?
        Hide
        Bertrand Dunogier added a comment -

        This is what the kernel PR related to #65 is about: https://github.com/ezsystems/ezpublish-kernel/pull/1496.

        It ain't finished yet, but it adds support for default view templates, meaning that (almost) any content can be viewed without any template.

        The AppBundle is meant for project developers / creators, and shouldn't contain anything that gets in their way when getting started.

        Show
        Bertrand Dunogier added a comment - This is what the kernel PR related to #65 is about: https://github.com/ezsystems/ezpublish-kernel/pull/1496 . It ain't finished yet, but it adds support for default view templates, meaning that (almost) any content can be viewed without any template. The AppBundle is meant for project developers / creators, and shouldn't contain anything that gets in their way when getting started.
        Hide
        Vidar Langseid added a comment -

        ah.. indeed..

        so, platform #65 + ezpublish-kernel #1496 will fix this issue IMO

        Show
        Vidar Langseid added a comment - ah.. indeed.. so, platform #65 + ezpublish-kernel #1496 will fix this issue IMO
        Hide
        Bertrand Dunogier added a comment -

        As far as I know, this has been fixed by all the changes to data and installers.

        Show
        Bertrand Dunogier added a comment - As far as I know, this has been fixed by all the changes to data and installers.

          People

          • Assignee:
            Unassigned
            Reporter:
            Vidar Langseid
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: