主题 : 大神帮忙看看留言板是什么问题
级别: 秀才
UID: 84899
积分:55 加为好友
威望: 10 精华: 0
主题:10 回复:65
注册时间:2016-01-18
在线时长:0
1#   发表于:2016-01-28 15:04:07  IP:116.233.*.*
SEVERE: Servlet.service() for servlet [JeeCmsFront] in context with path [/javaweb] threw exception [Request processing failed; nested exception is freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> tag_bean  [in template "WEB-INF/t/cms/www/default/include/right4.html" at line 44, column 50]

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[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction (print stack trace for 2 more):
==> ${tag_bean.url}  [in template "WEB-INF/t/cms/www/default/include/right4.html" at line 44, column 48]] with root cause
FreeMarker template error:
The following has evaluated to null or missing:
==> tag_bean  [in template "WEB-INF/t/cms/www/default/include/right4.html" at line 44, column 50]

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[/#if]. (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):
----------
==> ${tag_bean.url}  [in template "WEB-INF/t/cms/www/default/include/right4.html" at line 44, column 48]
    @cms_channel id="14"  [in template "WEB-INF/t/cms/www/default/include/right4.html" at line 44, column 17]
    #include "../include/right4.html"  [in template "WEB-INF/t/cms/www/default/special/guestbook_index.html" at line 152, column 5]
----------
报这个错. 没有头绪
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
2#   发表于:2016-01-28 15:05:36  IP:182.12.*.*
[@cms_channel id="14"]
这个id和后台的不匹配,改下就可以了
1
级别: 秀才
UID: 84899
积分:55 加为好友
威望: 10 精华: 0
主题:10 回复:65
注册时间:2016-01-18
在线时长:0
3#   发表于:2016-01-28 15:16:21  IP:116.233.*.*
回复第2楼这个值在后台怎么找?  后台留言板是空的
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
4#   发表于:2016-01-28 15:17:05  IP:182.12.*.*
WEB-INF/t/cms/www/default/include/right4.html
这个模板里啊,留言板只是引用了这个页面,报错信息都说了这个模板
1
级别: 秀才
UID: 84899
积分:55 加为好友
威望: 10 精华: 0
主题:10 回复:65
注册时间:2016-01-18
在线时长:0
5#   发表于:2016-01-28 15:21:11  IP:116.233.*.*
回复第4楼代码我知道在哪里  但是这个[@cms_channel id='14'] 里面的ID 该怎么改,.什么规则
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
6#   发表于:2016-01-28 15:21:55  IP:182.12.*.*
后台栏目管理里随便找个就可以了,配置-栏目管理
1
级别: 秀才
UID: 84899
积分:55 加为好友
威望: 10 精华: 0
主题:10 回复:65
注册时间:2016-01-18
在线时长:0
7#   发表于:2016-01-28 15:36:40  IP:116.233.*.*
回复第6楼没懂
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
8#   发表于:2016-01-28 15:38:12  IP:182.12.*.*
这里随便找个id替换那个14就可以了
1
1 共1页