Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-70091

Image field in a web content doesn't display

    Details

      Description

      Steps to reproduce:

      1. Navigate to Web Content admin
      2. Add a Structure with an Image field
      3. Add a Template based on the Structure
      4. Add a WC article based on the Structure
      5. Check the image field

      Actual result:
      Image field doesn't display and there is an error in console:

       07:38:49,193 ERROR [http-nio-8080-exec-5][IncludeTag:128] Current URL /group/localsite/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_journal_web_portlet_JournalPortlet_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Flocalsite%2F~%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_journal_web_portlet_JournalPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26p_p_auth%3DtIqEhLDg&_com_liferay_journal_web_portlet_JournalPortlet_mvcPath=%2Fedit_article.jsp&_com_liferay_journal_web_portlet_JournalPortlet_ddmStructureKey=35568&_com_liferay_journal_web_portlet_JournalPortlet_groupId=35512&_com_liferay_journal_web_portlet_JournalPortlet_folderId=0&p_p_auth=tIqEhLDg generates exception: com.liferay.portal.kernel.exception.PortalException: com.liferay.portal.kernel.template.TemplateException: Unable to process template com/liferay/dynamic/data/mapping/dependencies/ddm/image.ftl
      freemarker.core.ParseException: Syntax error in template "com/liferay/dynamic/data/mapping/dependencies/ddm/image.ftl" in line 4, column 9:_Encountered "<", but was expecting one of:__    <STRING_LITERAL>__    <RAW_STRING>__    "false"__    "true"__    <INTEGER>__    <DECIMAL>__    "."__    "+"__    "-"__    "!"__    "["__    "("__    "{"__    <ID> [Sanitized]
              at freemarker.core.FMParser.generateParseException(FMParser.java:5251)
              at freemarker.core.FMParser.jj_consume_token(FMParser.java:5122)
              at freemarker.core.FMParser.UnaryExpression(FMParser.java:450)
              at freemarker.core.FMParser.MultiplicativeExpression(FMParser.java:559)
              at freemarker.core.FMParser.AdditiveExpression(FMParser.java:512)
              at freemarker.core.FMParser.RangeExpression(FMParser.java:682)
              at freemarker.core.FMParser.RelationalExpression(FMParser.java:662)
              at freemarker.core.FMParser.EqualityExpression(FMParser.java:600)
              at freemarker.core.FMParser.AndExpression(FMParser.java:745)
              at freemarker.core.FMParser.OrExpression(FMParser.java:768)
              at freemarker.core.FMParser.Expression(FMParser.java:348)
              at freemarker.core.FMParser.PositionalArgs(FMParser.java:2537)
              at freemarker.core.FMParser.MethodArgs(FMParser.java:1082)
              at freemarker.core.FMParser.AddSubExpression(FMParser.java:878)
              at freemarker.core.FMParser.PrimaryExpression(FMParser.java:400)
              at freemarker.core.FMParser.UnaryExpression(FMParser.java:446)
              at freemarker.core.FMParser.MultiplicativeExpression(FMParser.java:559)
              at freemarker.core.FMParser.AdditiveExpression(FMParser.java:512)
              at freemarker.core.FMParser.RangeExpression(FMParser.java:682)
              at freemarker.core.FMParser.RelationalExpression(FMParser.java:635)
      

      Expected result:
      Image field displays.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 29 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 DXP FP11
                7.0.0 DXP SP2
                7.0.3 CE GA4
                7.1.X
                Master