曼波中国
曼波社区
曼波知识库
曼波搜索

查看完整版本: 发不了文章

stmadman 2007-10-16 15:06

发不了文章

在IE6 下面  写完文章 然后点提交
   提交的时候  系统提示:


[quote]
这是以系统的对话框的形式反馈给我的错误信息


---------------------------
Microsoft Internet Explorer
---------------------------
moscontent::store failed <br />Field 'urls' doesn't have a default value SQL=INSERT INTO mos_content ( `id`,`title`,`title_alias`,`introtext`,`fulltext`,`state`,`sectionid`,`mask`,`catid`,`created`,`created_by`,`created_by_alias`,`images`,`attribs`,`version`,`ordering`,`metakey`,`metadesc`,`access` ) VALUES ( '0','这是我写的文章内容','1','2','0','3','2007-10-16 07:01:08','62','','','pageclass_sfx=
back_button=
item_title=1
link_titles=
introtext=1
section=0
section_link=0
category=0
category_link=0
rating=
author=
createdate=
modifydate=
pdf=
print=
email=
keyref=','1','0','','','0' )
---------------------------
确定   
---------------------------

[/quote]


我再用FF2试了一下   显示该页无法访问到。(安装没有问题。)

lang3 2007-10-16 15:49

是mysql5约束高引起的,它要求非空字段一定有默认值,而 urls 是 text 类型的

stmadman 2007-10-16 16:57

狼三老大  介样的问题如何解决呢?  那我是不是要在URLS的字段里面添加一个默认值?

lang3 2007-10-16 23:13

好像 text 类型不能设置默认值,你可把 urls 设置为可空

stmadman 2007-10-17 08:44

ok非常感谢。

sangern 2007-10-23 09:08

向高手学习

hjxs88 2008-3-30 15:17

我也出现同样的题

我也出现了同样的问题,困扰了我很长时间,看老的回答后问题解决了,我很高兴。谢谢!

looktoronto 2008-6-16 03:52

[quote]原帖由 [i]lang3[/i] 于 2007-10-16 23:13 发表 [url=http://bbs.mambochina.net/redirect.php?goto=findpost&pid=60385&ptid=15744][img]http://bbs.mambochina.net/images/common/back.gif[/img][/url]
好像 text 类型不能设置默认值,你可把 urls 设置为可空 [/quote]

管理员,佩服你!
你弱弱的几个字解决了我的大问题,谢谢!
页: [1]
查看完整版本: 发不了文章