主题 : 后台管理器内容显示错误
级别: 举人
UID: 75313
积分:168 加为好友
威望: 27 精华: 0
主题:29 回复:157
注册时间:2015-05-11
在线时长:0
1#   发表于:2015-09-30 14:09:27  IP:14.198.*.*
请问大神,下面这个问题怎么解决? 
FreeMarker template error: The following has evaluated to null or missing: ==> content.title [in template "jeecms_sys/content/list.html" at line 338, column 71] Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (FTL stack trace): ---------- ==> @text_cut s=content.title?html len=25... [in template "jeecms_sys/content/list.html" at line 338, column 58] #nested [in template "ftl/jeecms/ui/table-column.ftl" in macro "column" at line 15, column 127] #else [in template "ftl/jeecms/ui/table-column.ftl" in macro "column" at line 14, column 1] @p.column code="content.title" [in template "jeecms_sys/content/list.html" at line 331, column 9] #nested row row_index row_has_next [in template "ftl/jeecms/ui/table.ftl" in macro "table" at line 17, column 72] @p.table value=pagination [in template "jeecms_sys/content/list.html" at line 326, column 1] ---------- Java stack trace (for programmers): ---------- freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98) at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:382) at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115) at freemarker.core.StringBuiltins$StringBuiltIn._eval(StringBuiltins.java:87) at freemarker.core.Expression.eval(Expression.java:111) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:129) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.visit(Environment.java:487) at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.IfBlock.accept(IfBlock.java:84) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Macro$Context.runMacro(Macro.java:209) at freemarker.core.Environment.visit(Environment.java:694) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.visit(Environment.java:487) at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visitByHiddingParent(Environment.java:286) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193) at freemarker.core.Environment.visitIteratorBlock(Environment.java:509) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:103) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Macro$Context.runMacro(Macro.java:209) at freemarker.core.Environment.visit(Environment.java:694) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.process(Environment.java:243) at freemarker.template.Template.process(Template.java:277) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.processTemplate(FreeMarkerView.java:366) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.doRender(FreeMarkerView.java:283) at 
级别: 总版主
UID: 10736
积分:148381 加为好友
威望: 205 精华: 42
主题:287 回复:126139
注册时间:2010-09-08
在线时长:15.55
2#   发表于:2015-09-30 14:11:41  IP:115.65.*.*
jeecms_sys/content/list.html" at line 338, column 71]你这是不是改了后台的这个list模板
路漫漫其修远兮,吾将上下而求索!
级别: 举人
UID: 75313
积分:168 加为好友
威望: 27 精华: 0
主题:29 回复:157
注册时间:2015-05-11
在线时长:0
3#   发表于:2015-09-30 14:19:18  IP:14.198.*.*
回复第2楼  没有修改过 jeecms_sys/content/list.html。我修改了 jc_content_channel 里面的 channel_id,想把新闻内容分开。该怎么解决
级别: 总版主
UID: 10736
积分:148381 加为好友
威望: 205 精华: 42
主题:287 回复:126139
注册时间:2010-09-08
在线时长:15.55
4#   发表于:2015-09-30 14:20:39  IP:115.65.*.*
这肯定和你改数据库有关了,自己二次开发的不在我们服务范围
路漫漫其修远兮,吾将上下而求索!
级别: 举人
UID: 75313
积分:168 加为好友
威望: 27 精华: 0
主题:29 回复:157
注册时间:2015-05-11
在线时长:0
5#   发表于:2015-09-30 14:29:20  IP:14.198.*.*
回复第4楼  好吧
级别: 总版主
UID: 10736
积分:148381 加为好友
威望: 205 精华: 42
主题:287 回复:126139
注册时间:2010-09-08
在线时长:15.55
6#   发表于:2015-09-30 14:35:35  IP:115.65.*.*
路漫漫其修远兮,吾将上下而求索!
1 共1页