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

An error occurred when processing the Wiki template

    Details

      Description

      Steps to reproduce:

      1. Login with admin.
      2. Navigate to Application Display Template, add a Wiki template with attached file (adt_wiki_social.ftl).
      3. Navigate to welcome page.
      4. Add a Wiki portlet.
      5. Add a test Wiki.
      6. Configure the display template to created in step 2, then save.

      Expected behavior:
      No errors when processing the Wiki template.

      Actual behavior:
      An error occurred when processing the Wiki template, and see the following error in console:

      06:37:32,841 ERROR [http-nio-8080-exec-8][runtime:60] Error executing FreeMarker template
      FreeMarker template error:
      The following has evaluated to null or missing:
      ==> wikiPortletInstanceOverriddenConfiguration  [in template "20116#20152#36922" at line 241, column 14]
      
      ----
      Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
      ----
      
      ----
      FTL stack trace ("~" means nesting-related):
      	- Failed at: #if wikiPortletInstanceOverriddenConf...  [in template "20116#20152#36922" in macro "getRatings" at line 241, column 9]
      	- Reached through: @getRatings cssClass="page-ratings" e...  [in template "20116#20152#36922" at line 49, column 9]
      ----
      
      Java stack trace (for programmers):
      ----
      freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
      	at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:131)
      	at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:77)
      
      

        Attachments

        1. 7.0 pass.png
          7.0 pass.png
          35 kB
        2. adt_wiki_social.ftl
          7 kB
        3. issue.jpg
          issue.jpg
          64 kB
        4. master pass.png
          master pass.png
          29 kB

          Issue Links

            Activity

              People

              • Assignee:
                steven.gao Steven Gao (Inactive)
                Reporter:
                steven.gao Steven Gao (Inactive)
                Participants of an Issue:
                Recent user:
                Jason Pince
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 20 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.X EE
                  7.1.X
                  Master