<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Error executing FreeMarker template</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121659839" />
  <subtitle>Error executing FreeMarker template</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121659839</id>
  <updated>2026-04-03T20:24:58Z</updated>
  <dc:date>2026-04-03T20:24:58Z</dc:date>
  <entry>
    <title>RE: Error executing FreeMarker template</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121660162" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121660162</id>
    <updated>2023-03-01T19:24:51Z</updated>
    <published>2023-03-01T18:39:45Z</published>
    <summary type="html">&lt;p&gt;Personally I'd avoid trying to auto-update themes.&lt;/p&gt;
&lt;p&gt;There's a big difference in themes for 7.1 and 7.4 and no upgrade
  tool is going to help you get around those changes.&lt;/p&gt;
&lt;p&gt;I'd suggest starting a new 7.4 theme and then overlay your changes
  from the 7.1 theme back in.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2023-03-01T18:39:45Z</dc:date>
  </entry>
  <entry>
    <title>Error executing FreeMarker template</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121659838" />
    <author>
      <name>JP Vásquez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121659838</id>
    <updated>2023-03-01T16:48:33Z</updated>
    <published>2023-02-28T21:17:35Z</published>
    <summary type="html">&lt;p&gt;I am migrating from Liferay Digital Experience Platform version
  7.1.10 Liferay Digital Experience Platform 7.4.13. I am migrating a
  theme as per the following link :https://help.liferay.com/hc/en-us/articles/360018162071-Liferay-Theme-Generator.&lt;/p&gt;
&lt;p&gt;I am using this version of java to generate the .jar and it is
  installed in Liferay:&lt;/p&gt;
&lt;p&gt;java version &amp;quot;1.8.0_341&amp;quot;&lt;br /&gt; Java(TM) SE Runtime
  Environment (build 1.8.0_341-b10)&lt;br /&gt; Java HotSpot(TM) 64-Bit Server
  VM (build 25.341-b10, mixed mode)&lt;br /&gt; Those that when lifting are
  throwing the following error:&lt;br /&gt; When taking the war from the theme
  it is throwing the following error:&lt;/p&gt;
&lt;p&gt;ERROR [http-nio-8080-exec-1][runtime:59] Error executing FreeMarker
  template&lt;br /&gt; freemarker.core.InvalidReferenceException: The
  following has evaluated to null or missing:&lt;br /&gt; ==&amp;gt;
  freeMarkerPortletPreferences.setValue  [in template
  &amp;quot;20099#20135#86793&amp;quot; at line 2, column 32]&lt;/p&gt;
&lt;p&gt;----&lt;br /&gt; Tip: It's the step after the last dot that caused this
  error, not those before it.&lt;br /&gt; ----&lt;br /&gt; Tip: If the failing
  expression is known to legally refer to something that's sometimes
  null or missing, either specify a default value like
  myOptionalVar!myDefault, or use &amp;lt;#if
  myOptionalVar??&amp;gt;when-present&amp;lt;#else&amp;gt;when-missing&amp;lt;/#if&amp;gt;.
  (These only cover the last step of the expression; to cover the whole
  expression, use parenthesis: (myOptionalVar.foo)!myDefault,
  (myOptionalVar.foo)??&lt;br /&gt; ----&lt;/p&gt;
&lt;p&gt;----&lt;br /&gt; FTL stack trace (&amp;quot;~&amp;quot; means
  nesting-related):&lt;br /&gt;         - Failed at: VOID =
  freeMarkerPortletPreferences.s...  [in template
  &amp;quot;20099#20135#86793&amp;quot; at line 2, column 25]&lt;br /&gt; ----&lt;/p&gt;</summary>
    <dc:creator>JP Vásquez</dc:creator>
    <dc:date>2023-02-28T21:17:35Z</dc:date>
  </entry>
</feed>
