Migrate Theme Liferay Generator

Jamie Sammons, modified 3 Years ago. New Member Posts: 4 Join Date: 8/13/20 Recent Posts

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:

Caused by: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:==> freeMarkerPortletPreferences.setValue  [in template "afp-confia-theme_SERVLET_CONTEXT/templates/navigation.ftl" at line 10, column 57]__----Tip: It's the step after the last dot that caused this error, not those before it.----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)??----__----FTL stack trace ("~" means nesting-related):  - 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]