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

Unable to view article on platform site with clean data

    XMLWordPrintable

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            vidar.langseid@ibexa.co Vidar Langseid
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: