Migrate Theme Liferay GeneratorMigrate Theme Liferay Generatorhttps://liferay.dev/c/message_boards/find_thread?p_l_id=119785333&threadId=1215207272024-03-29T15:44:55Z2024-03-29T15:44:55ZMigrate Theme Liferay GeneratorSamuel Peñahttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1215207262022-09-21T15:47:49Z2022-09-21T03:55:19Z<p>We try to make a new Liferay CE 7.3 project using NPM and the Liferay
Theme Generator, we include a CE 7.1 version Theme project folder,
however we get the following error:</p>
<p>Caused by: freemarker.core.InvalidReferenceException: The following
has evaluated to null or missing:<i>==>
freeMarkerPortletPreferences.setValue [in template
"afp-confia-theme_SERVLET_CONTEXT</i>/templates/navigation.ftl"
at line 10, column 57]__----<i>Tip: It's the step after the last dot
that caused this error, not those before it.</i>----<i>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 <#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)??</i>----__----<i>FTL stack trace ("~"
means nesting-related):</i> - Failed at: #assign VOID =
freeMarkerPortletPrefe... [in template
"afp-confia-theme_SERVLET_CONTEXT_/templates/navigation.ftl"
at line 10, column 41]_ - Reached through: #include
"${full_templates_path}/navi... [in template
"afp-confia-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl"
at line 44, column 9]_---- [Sanitized]</p>Samuel Peña