主题 : X1.5版本静态化配置 |
级别: 贡士
|
14# 发表于:2021-05-14 10:00:35 IP:211.168.*.*
回复第12楼之前已经设置了,现在还有两个问题,一个是移动端访问静态页内容显示的是pc端的静态页,一个是有些文章不知道为什么还是生成不了静态页
生成静态内容列表页数设置了1000 |
||
---|---|---|---|
级别: 贡士
|
17# 发表于:2021-05-14 10:30:29 IP:211.168.*.*
<script type="text/javascript">
Cms.siteFlow("${base}", location.href, document.referrer, "${site.config.flowSwitch?string}"); </script> 这里的${site.config.flowSwitch?string}报错了 |
||
---|---|---|---|
级别: 贡士
|
18# 发表于:2021-05-14 10:31:57 IP:211.168.*.*
FreeMarker template error:
The following has evaluated to null or missing: ==> site.config.flowSwitch [in template "WEB-INF/t/cms/www/mobile/index/index.html" at line 20, column 74] ---- 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: ${site.config.flowSwitch?string} [in template "WEB-INF/t/cms/www/mobile/index/index.html" at line 20, column 72] ---- Java stack trace (for programmers): ---- freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134) at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:85) at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:48) at freemarker.core.BuiltInsForMultipleTypes$stringBI._eval(BuiltInsForMultipleTypes.java:707) at freemarker.core.Expression.eval(Expression.java:83) at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:100) at freemarker.core.DollarVariable.accept(DollarVariable.java:63) at freemarker.core.Environment.visit(Environment.java:330) at freemarker.core.Environment.visit(Environment.java:336) at freemarker.core.Environment.process(Environment.java:309) at freemarker.template.Template.process(Template.java:384) at com.jeecms.content.service.impl.ContentStaticPageServiceImpl.index(ContentStaticPageServiceImpl.java:801) at com.jeecms.content.service.impl.ContentStaticPageServiceImpl.index(ContentStaticPageServiceImpl.java:734) at com.jeecms.content.service.impl.ContentStaticPageServiceImpl$$FastClassBySpringCGLIB$$70f4f83d.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.jeecms.content.service.impl.ContentStaticPageServiceImpl$$EnhancerBySpringCGLIB$$c69a8553.index(<generated>) at com.jeecms.system.job.CronTypeIndexJob.execute(CronTypeIndexJob.java:40) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) |
||
---|---|---|---|