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

empty Image FieldType triggers twig_error_runtime

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Low
    • Resolution: Fixed
    • 2014.07, 5.3.2.1, 5.4-dev
    • 5.4.0-beta1, 5.3.4
    • Platform stack

    Description

      the problem: one of my images got out of sync with my server. so, i didn't really has the image on my var folder, but the image was present on the DB. now, i get this big twig_error_runtime:

      Impossible to access an attribute ( "uri" ) on a NULL variable ( "" ) in EzPublishCoreBundle::content_fields.html.twig at line 416

      this is how i render the image:
      {{ ez_render_field(content, 'image', {'parameters': { 'alias': 'link' }}) }}

      Note: This issue will only be reproduced as described on 5.3, not on master due to changes in Image alias generation.
      For master, another issue is present: EZP-23534

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              juanolon Juan Pablo Stumpf
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: