手机
当前位置:查字典教程网 >CMS教程 >其它cms >downplus中的无效使用 Null: ‘replace’错误的解决方法
downplus中的无效使用 Null: ‘replace’错误的解决方法
摘要:错误全部文本如下:MicrosoftVBScript运行时错误错误'800a005e'无效使用Null:'replace'/XXX/inc_...

错误全部文本如下:

Microsoft VBScript 运行时错误 错误 '800a005e'

无效使用 Null: 'replace'

/XXX/inc_function.asp,行 764

于是乎.咱们来看看这段错误的代码,找到后台的inc_function.asp.找到760行附近的语句,代码如下:

复制代码代码如下:

sPath = DownLoad_FileSavePath

sPath = Replace(sPath,"","/")

sPath = Replace(sPath,"{YYYY}",Year(SoftInsertDate),1,-1,1)

sPath = Replace(sPath,"{YYY}",Year(SoftInsertDate),1,-1,1)

sPath = Replace(sPath,"{YY}",right(Year(SoftInsertDate),2),1,-1,1)

sPath = Replace(sPath,"{Y}",right(Year(SoftInsertDate),2),1,-1,1)

sPath = Replace(sPath,"{MM}",Month(SoftInsertDate),1,-1,1)

sPath = Replace(sPath,"{M}",Month(SoftInsertDate),1,-1,1)

sPath = Replace(sPath,"{DD}",Day(SoftInsertDate),1,-1,1)

sPath = Replace(sPath,"{D}",Day(SoftInsertDate),1,-1,1)

sPath = Replace(sPath,"{ClassID}",SoftClassID,1,-1,1)

sPath = Replace(sPath,"{FileName}",SoftFrontStr&softid&"."&FileExtensionName,1,-1,1)

GetSoftUrl = SystemUrl&SoftFolderName&"/"&sPath

其中上面说的是第764行是这条语句;

sPath = Replace(sPath,"{ClassID}",SoftClassID,1,-1,1)

一看错误就知道了,原来是有个分类的ID是空的,但是我们使用

SELECT * FROM dp_softlist WHERE softclassid = NULL;

却查不到空的记录,于是乎,哥着急了,想了个笨办法,将今天添加的软件的ID全部拿过去,一起查询,语句如下:

SELECT * FROM dp_softlist WHERE softid

IN (1986,1983,1982,1981,1611,1980,843,1979,1978,1133,937,1976,1984,1975,1973,1845)

嘎嘎.找到了那2条空的记录,于是乎,咱们

DELETE dp_softlist WHERE softid IN(1984,1985)

重新生成.oh yeah!错误解决!~~

最后事实证明,空的记录是可以用is null来查询的.下面这条语句比上面用笨办法查ID的简单多了

SELECT * FROM dp_softlist WHERE softcreatedate IS NULL;

今天就说这么多…嘎嘎,有问题希望大家指出!!

【downplus中的无效使用 Null: ‘replace’错误的解决方法】相关文章:

关于网站设计中网页情景化设计的方法介绍(图)

aspcms后台美化删除版权信息等等

08cms汽车版v2 无法通过UCenter1.6版整合DISCUZ X2的解决方法

记事狗微博整合ucenter同步登录 同步退出解决方案

SHOPEX网店系统安装图文教程

几乎所有支付通道的通知系统设计(PDT与IPN)

最土团购功能修改技巧整理

齐博CMS整合DZ论坛后标签无法显示论坛图片的解决方法

jeecms评论修改成默认审核状态方法

帝国V6.0支持png透明度水印

精品推荐
分类导航