主题 : 后台修改新闻内容
级别: 秀才
UID: 118143
积分:77 加为好友
威望: 3 精华: 0
主题:6 回复:35
注册时间:2017-11-20
在线时长:0
1#   发表于:2018-12-27 15:05:12  IP:59.76.*.*
Servlet.service() for servlet [JeeGovAdmin] in context with path [/] threw exception [Request processing failed; nested exception is freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> ths" valu  [in template "jeecms_sys/content/edit.html" at line 661, column 88]

----
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 be 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: ${p.imgPath}  [in template "jeecms_sys/content/edit.html" at line 661, column 86]
~ Reached through: #nested  [in template "ftl/jeecms/ui/td.ftl" in macro "td" at line 16, column 1]
~ Reached through: @p.td label=item.label colspan="2" no...  [in template "jeecms_sys/content/edit.html" at line 651, column 1]
~ Reached through: #nested  [in template "ftl/jeecms/ui/form.ftl" in macro "form" at line 25, column 1]
~ Reached through: @p.form id="jvForm" action="o_update...  [in template "jeecms_sys/content/edit.html" at line 335, column 1]
----] with root cause
FreeMarker template error:
The following has evaluated to null or missing:

新闻数据是直接把数据导入到数据库表里面的。

这个${p.imgPath}是哪个字段里的数据? JC_CONTENT_PICTURE这个表里的数据是都有的,没有不为null的数据,是不是别的表里面的数据有遗漏?
级别: 版主
UID: 121385
积分:34048 加为好友
威望: 0 精华: 0
主题:0 回复:32073
注册时间:2018-03-20
在线时长:0
2#   发表于:2018-12-27 15:06:33  IP:182.12.*.*
回复第1楼您好,您的是哪个版本的系统?
世间没有一种具有真正价值的东西,可以不经过艰苦辛勤劳动而能够得到的。
级别: 秀才
UID: 118143
积分:77 加为好友
威望: 3 精华: 0
主题:6 回复:35
注册时间:2017-11-20
在线时长:0
3#   发表于:2018-12-27 15:07:31  IP:59.76.*.*
v8的
级别: 版主
UID: 121385
积分:34048 加为好友
威望: 0 精华: 0
主题:0 回复:32073
注册时间:2018-03-20
在线时长:0
4#   发表于:2018-12-27 15:08:59  IP:182.12.*.*
回复第3楼您好,您那边插入数据的时候有报错吗?
世间没有一种具有真正价值的东西,可以不经过艰苦辛勤劳动而能够得到的。
级别: 秀才
UID: 118143
积分:77 加为好友
威望: 3 精华: 0
主题:6 回复:35
注册时间:2017-11-20
在线时长:0
5#   发表于:2018-12-27 15:11:53  IP:59.76.*.*
回复第4楼 没有报错,前台页面是可以显示出新闻内容,后台点击修改页面就这样了。
级别: 秀才
UID: 118143
积分:77 加为好友
威望: 3 精华: 0
主题:6 回复:35
注册时间:2017-11-20
在线时长:0
6#   发表于:2018-12-27 15:13:37  IP:59.76.*.*
回复第4楼 这些数据是我从别的数据库里的表拿来 分别导入到Jc_Content_Picture,Jc_Content_Count,Jc_Content_Ext,Jc_Content_Txt,Jc_Content这几张表里面的。
级别: 版主
UID: 121385
积分:34048 加为好友
威望: 0 精华: 0
主题:0 回复:32073
注册时间:2018-03-20
在线时长:0
7#   发表于:2018-12-27 15:14:03  IP:182.12.*.*
回复第6楼那个字段我这边查不到。
世间没有一种具有真正价值的东西,可以不经过艰苦辛勤劳动而能够得到的。
级别: 秀才
UID: 118143
积分:77 加为好友
威望: 3 精华: 0
主题:6 回复:35
注册时间:2017-11-20
在线时长:0
8#   发表于:2018-12-27 15:16:58  IP:59.76.*.*
回复第7楼
级别: 版主
UID: 121385
积分:34048 加为好友
威望: 0 精华: 0
主题:0 回复:32073
注册时间:2018-03-20
在线时长:0
9#   发表于:2018-12-27 15:19:46  IP:182.12.*.*
回复第8楼这个是您那边自己添加的还是默认的?
世间没有一种具有真正价值的东西,可以不经过艰苦辛勤劳动而能够得到的。
级别: 秀才
UID: 118143
积分:77 加为好友
威望: 3 精华: 0
主题:6 回复:35
注册时间:2017-11-20
在线时长:0
10#   发表于:2018-12-27 15:21:43  IP:59.76.*.*
回复第9楼 没改过,原来就有的。
1 2 > >| 共2页