Fórum

Freemarker theme error Unable to process template xxx-theme_SERVLET_CONTEXT

Etienne Roy, modificado 9 Anos atrás.

Freemarker theme error Unable to process template xxx-theme_SERVLET_CONTEXT

Regular Member Postagens: 114 Data de Entrada: 08/08/13 Postagens Recentes
Hi,

I create a custom freemarker theme, when I create a new site with this theme all work perfectly
but if I change the page theme for classic and i come back to my custom theme I have this error

An unexpected system error occurred.
javax.servlet.jsp.JspException: com.liferay.portal.kernel.template.TemplateException: Unable to process template xxx-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl

If I use VM theme I don't have this error

someone already seen this problem ?
Etienne Roy, modificado 9 Anos atrás.

RE: Freemarker theme error Unable to process template xxx-theme_SERVLET_CON

Regular Member Postagens: 114 Data de Entrada: 08/08/13 Postagens Recentes
I forgot to say that I was using the version 6.2 CE ga2
Etienne Roy, modificado 9 Anos atrás.

RE: Freemarker theme error Unable to process template xxx-theme_SERVLET_CON

Regular Member Postagens: 114 Data de Entrada: 08/08/13 Postagens Recentes
I found the mistake in portal_normal.ftl file

By default you have this code to show site name

<#if show_site_name>
<#if show_site_name>
	<span class="site-name" title="<@liferay.language_format objects=" ${site_name}" key="go-to-x"></span>"&gt;
		${site_name}
	
<!--#if-->


Change line 4
<span class="site-name" title="<@liferay.language_format objects=" ${site_name}" key="go-to-x"></span>"&gt;

for this line


<span class="site-name" title="<@liferay.language_format arguments=" ${site_name}" key="go-to-x"></span>"&gt;
thumbnail
Juan Gonzalez, modificado 9 Anos atrás.

RE: Freemarker theme error Unable to process template xxx-theme_SERVLET_CON

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
It's a kown bug, solved in master branch:

https://issues.liferay.com/browse/LPS-47408
Ola Torres, modificado 7 Anos atrás.

RE: Freemarker theme error Unable to process template xxx-theme_SERVLET_CON

New Member Postagens: 17 Data de Entrada: 06/02/17 Postagens Recentes
Hi I am a newbie in liferay. I am using Portal LR7 CE GA3 .
I tried both using Velocity and Freemarker.
Velocity is working however there is a known bug LPS-67225.
I used the Freemarker and I am still having this issue.

Please help.. emoticon emoticon

com.liferay.portal.kernel.template.TemplateException: Unable to process template theme-freemarker-custom-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl
com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:85)
com.liferay.taglib.util.ThemeUtil.doIncludeFTL(ThemeUtil.java:283)
com.liferay.taglib.util.ThemeUtil.doDispatch(ThemeUtil.java:157)
com.liferay.taglib.util.ThemeUtil.includeFTL(ThemeUtil.java:100)
com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:82)
com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:34)
org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:759)emoticonemoticonemoticonemoticon