Forums de discussion
Freemarker theme error Unable to process template xxx-theme_SERVLET_CONTEXT
Etienne Roy, modifié il y a 9 années.
Freemarker theme error Unable to process template xxx-theme_SERVLET_CONTEXT
Regular Member Publications: 114 Date d'inscription: 08/08/13 Publications récentes
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 ?
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, modifié il y a 9 années.
RE: Freemarker theme error Unable to process template xxx-theme_SERVLET_CON
Regular Member Publications: 114 Date d'inscription: 08/08/13 Publications récentes
I forgot to say that I was using the version 6.2 CE ga2
Etienne Roy, modifié il y a 9 années.
RE: Freemarker theme error Unable to process template xxx-theme_SERVLET_CON
Regular Member Publications: 114 Date d'inscription: 08/08/13 Publications récentes
I found the mistake in portal_normal.ftl file
By default you have this code to show site name
Change line 4
for this line
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>">
${site_name}
<!--#if-->
Change line 4
<span class="site-name" title="<@liferay.language_format objects=" ${site_name}" key="go-to-x"></span>">
for this line
<span class="site-name" title="<@liferay.language_format arguments=" ${site_name}" key="go-to-x"></span>">
Juan Gonzalez, modifié il y a 9 années.
RE: Freemarker theme error Unable to process template xxx-theme_SERVLET_CON
Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
Ola Torres, modifié il y a 7 années.
RE: Freemarker theme error Unable to process template xxx-theme_SERVLET_CON
New Member Publications: 17 Date d'inscription: 06/02/17 Publications récentes
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..
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)
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..
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)