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

Redeploy of FreeMarker theme causes error and theme to not load

    Details

      Description

      Built simple freemarker theme, adding additional javascript and css to portal_normal.ftl

      Theme deploys ok first time, but upon redeploy and access throws an exception:

      Caused by: freemarker.core.NonStringException: Error on line 49, column 67 in EDU-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl_Expecting a string, date or number here, Expression is_login_redirect_required is instead a freemarker.template.TemplateBooleanModel$1 [Sanitized]

      I didn't change anything to do with is_login_redirect_required - only added this to portal_normal.ftl:

      <script src="${javascript_folder}/highlight.pack.js"></script>
      <script>hljs.initHighlightingOnLoad();</script>
      <link rel="stylesheet" href="${css_folder}/highlight-js-styles/dark.css">

      In addition I have include-and-override=portal-developer.properties set in portal-ext.properties

        Attachments

        1. EDU-theme.zip
          2.49 MB
        2. full_dump.txt
          51 kB

          Activity

            People

            • Assignee:
              barrie.selack Barrie Selack (Inactive)
              Reporter:
              barrie.selack Barrie Selack (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 31 weeks, 5 days ago

                Packages

                Version Package
                6.2.0 CE RC6