[ https://issues.apache.org/jira/browse/OFBIZ-4899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Crum closed OFBIZ-4899. ------------------------------ Resolution: Fixed Assignee: Adrian Crum Fixed, rev 1342852. Thanks Mohamed! > langDir is unavailable in ecommerce > ----------------------------------- > > Key: OFBIZ-4899 > URL: https://issues.apache.org/jira/browse/OFBIZ-4899 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/ecommerce > Affects Versions: SVN trunk > Reporter: Mohamed Amine AZZI > Assignee: Adrian Crum > Priority: Minor > Fix For: SVN trunk > > > When the ecommerce theme contains an rtl style sheet the condition is true > and the ftl tries to compare the value of langDir. > langDir is unavailable in the context so an exception is thrown. > Expression langDir is undefined on line 48, column 56 in > component://ecommerce/webapp/ecommerce/includes/headerHead.ftl. The > problematic instruction: ---------- ==> if > layoutSettings.VT_RTL_STYLESHEET?has_content && langDir == "rtl" [on line 48, > column 3 in component://ecommerce/webapp/ecommerce/includes/headerHead.ftl] > ---------- Java backtrace for programmers: ---------- > freemarker.core.InvalidReferenceException: Expression langDir is undefined on > line 48, column 56 in > component://ecommerce/webapp/ecommerce/includes/headerHead.ftl. at > freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125) at > freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:121) at > freemarker.core.AndExpression.isTrue(AndExpression.java:68) at > freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77) at > freemarker.core.Environment.visit(Environment.java:221) at > freemarker.core.MixedContent.accept(MixedContent.java:92) at > freemarker.core.Environment.visit(Environment.java:221) at > freemarker.core.Environment.process(Environment.java:199) at > org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) > at > org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:225) at > org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:270) > at > org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:130) at > org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:915) > at > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) > at > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) > at > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) > at > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) > at > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396) > at > org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216) > at > org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580) > at > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) > at > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) > at > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396) > at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) at > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) at > org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104) > at > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:864) > at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:612) > at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) at > javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at > javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > at > org.ofbiz.content.content.ContentUrlFilter.doFilter(ContentUrlFilter.java:106) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > at > org.ofbiz.product.category.CatalogUrlFilter.doFilter(CatalogUrlFilter.java:336) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > at > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) > at > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) > at > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:680) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira