主题 : 为啥模板一直报错,有的页面显示不出来
级别: 秀才
UID: 111065
积分:68 加为好友
威望: 12 精华: 0
主题:12 回复:34
注册时间:2017-03-01
在线时长:0
1#   发表于:2017-03-01 18:37:04  IP:211.178.*.*
严重: Servlet.service() for servlet [JeeCmsFront] in context with path [/jeecms] threw exception [Request processing failed; nested exception is freemarker.core._TemplateModelException: An error has occurred when reading existing sub-variable "url"; see cause exception! The type of the containing value was: extended_hash+string (com.jeecms.cms.entity.main.Channel wrapped into f.e.b.StringModel)

----
FTL stack trace ("~" means nesting-related):
- Failed at: ${c.url}  [in template "WEB-INF/t/cms/www/default/include/nav.html" at line 20, column 26]
- Reached through: @cms_channel_list  [in template "WEB-INF/t/cms/www/default/include/nav.html" at line 2, column 6]
- Reached through: #include "../include/nav.html"  [in template "WEB-INF/t/cms/www/default/include/header.html" at line 19, column 5]
- Reached through: #include "../include/header.html"  [in template "WEB-INF/t/cms/www/default/index/index.html" at line 28, column 1]
----] with root cause
java.lang.NullPointerException
级别: 秀才
UID: 111065
积分:68 加为好友
威望: 12 精华: 0
主题:12 回复:34
注册时间:2017-03-01
在线时长:0
2#   发表于:2017-03-01 18:49:15  IP:211.178.*.*
回人呢人呢复第1楼
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
3#   发表于:2017-03-02 08:38:17  IP:115.78.*.*
WEB-INF/t/cms/www/default/include/nav.html
你这模板上的标签有问题
1
级别: 秀才
UID: 111065
积分:68 加为好友
威望: 12 精华: 0
主题:12 回复:34
注册时间:2017-03-01
在线时长:0
4#   发表于:2017-03-02 13:54:53  IP:211.178.*.*
回复第3楼标签什么的完全没改动
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
5#   发表于:2017-03-02 13:57:19  IP:115.78.*.*
@cms_channel_list  [in template "WEB-INF/t/cms/www/default/include/nav.html" at line 2, column 6] 
你这标签怎么写的,发出来看下
1
1 共1页