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

admin2 children-fetch throws errors if images attribute isn't set

    XMLWordPrintable

    Details

      Description

      When viewing a node (Full view) with admin2 design, the children will be fetched and shown.
      For that ezpublish tries to generate thumbnail-previews if the object has an ezimage-attribute.
      if the ezimage-attribute is not filled/used the following errors occurs for each ezimage attribute.

      [ Jul 14 2011 16:19:52 ] [127.0.0.1] Timing Point: Module start 'ezjscore'
      [ Jul 14 2011 16:19:52 ] [127.0.0.1] eZImageManager::createImageAlias:
      The reference alias original file does not exist
      [ Jul 14 2011 16:19:52 ] [127.0.0.1] :
      Original alias does not exist, cannot create other aliases without it
      [ Jul 14 2011 16:19:52 ] [127.0.0.1] eZImageManager::createImageAlias:
      Failed creating the referenced alias reference, cannot create alias small

      I investigated that problem and found out that ezjscAjaxContent::simplify forget to check, if the image-attribute is filled.

      I created a patch. Please verify my attached patch.

      a node whose childrren has image attributes

      Steps to reproduce

      1. Create an image without filling the ezimage attribute
      2. node/view/full the parent node
      3. view the error.log

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dp@ez.no Damien Pobel (eZ)
              Reporter:
              unknown unknown
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: