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

Error with the ez_render_field if a custom tag xsl stylesheet is not properly loaded

    XMLWordPrintable

    Details

      Description

      Hello there,

      I had a bug with the ez_render_field in my twig file described here : http://share.ez.no/forums/ez-publish-5-platform/display-xml-block

      After some digging in the vendors, I found the source of its misbehavior.
      The thing is happening in vendor\ezsystems\ezpublish-kernel\eZ\Publish\Core\FieldType\XmlText\Converter\Html5.php in the getXSLTProcessor function.

      In fact, if the foreach try to load a nonexistent customTag.xsl listed in the ezpublish.yml, all the ez_render_field will fail all the render.

      So, I think it could be a good point to put a condition to check if the stylesheet exists or not just before making your magic.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davelopper Lopper Dave
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: