Foros de discusión

Freemarker theme error Unable to process template xxx-theme_SERVLET_CONTEXT

Etienne Roy, modificado hace 9 años.

Freemarker theme error Unable to process template xxx-theme_SERVLET_CONTEXT

Regular Member Mensajes: 114 Fecha de incorporación: 8/08/13 Mensajes recientes
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 hace 9 años.

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

Regular Member Mensajes: 114 Fecha de incorporación: 8/08/13 Mensajes recientes
I forgot to say that I was using the version 6.2 CE ga2
Etienne Roy, modificado hace 9 años.

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

Regular Member Mensajes: 114 Fecha de incorporación: 8/08/13 Mensajes recientes
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 hace 9 años.

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

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
It's a kown bug, solved in master branch:

https://issues.liferay.com/browse/LPS-47408
Ola Torres, modificado hace 7 años.

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

New Member Mensajes: 17 Fecha de incorporación: 6/02/17 Mensajes recientes
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