变量未定义: 'cachetemplate' 急急急急需要帮助

baoxiaohua 2008-06-14 10:42:06
错误类型:
Microsoft VBScript 运行时错误 (0x800A01F4)
变量未定义: 'cachetemplate'
/OA/admin_login.ASP, 第 10 行

文件名是:admin_login.asp
<!--#include file="conn.asp"-->
<!--#include file="inc/const.asp"-->
<!-- #include file="md5.asp" -->
<%
stats="论坛管理登陆"
dim username
dim password
dim ip
templateused=templateused & "Forum_adminlogin"
cachetemplate templateused,0
call head_var(1)
if not founduser then
Errmsg="<li>您不是系统管理员!"
call Dvbbs_error(1)
else
if request("action")="chklogin" then
call chklogin()
if founderr then call Dvbbs_error(1)
else
dim num1
dim rndnum
Randomize
Do While Len(rndnum)<4
num1=CStr(Chr((57-48)*rnd+48))
rndnum=rndnum&num1
loop
session("verifycode")=rndnum
endtime=timer()
response.write eval(""""&gettemplate("Forum_adminlogin",126)&"""")
end if
end if
call activeonline()
call footer()
sub chklogin()
username=trim(replace(request("username"),"'",""))
password=md5(trim(replace(request("password"),"'","")))
if request("verifycode")="" then
errmsg=errmsg+"<br>"+"<li>请返回输入确认码。"
founderr=true
elseif session("verifycode")="" then
errmsg=errmsg+"<br>"+"<li>请不要重复提交,如需重新登陆请返回登陆页面。"
founderr=true
elseif session("verifycode")<>trim(request("verifycode")) then
errmsg=errmsg+"<br>"+"<li>您输入的确认码和系统产生的不一致,请重新输入。"
founderr=true
end if
session("verifycode")=""
if username="" or password="" then
founderr=true
Errmsg=Errmsg+"<br>"+"<li>请输入您的用户名或密码。"
end if
if founderr then exit sub
ip=Request.ServerVariables("REMOTE_ADDR")
set rs=conn.execute("select * from admin where username='"&username&"' and adduser='"&membername&"'")
if rs.eof and rs.bof then
rs.close
set rs=nothing
founderr=true
Errmsg=Errmsg+"<br>"+"<li>您输入的用户名和密码不正确或者您不是系统管理员。<br><li>请<a href=admin_login.asp>重新输入</a>您的密码。"
exit sub
else
if trim(rs("password"))<>password then
founderr=true
Errmsg=Errmsg+"<br>"+"<li>您输入的用户名和密码不正确或者您不是系统管理员。<br><li>请<a href=admin_login.asp>重新输入</a>您的密码。"
exit sub
else
if isnull(rs("flag")) or rs("flag")="" then
rs.close
set rs=nothing
founderr=true
Errmsg=Errmsg+"<br>"+"<li>您没有权限进入管理页面。"
exit sub
else
session("flag")=rs("flag")
session.timeout=45
conn.execute("update admin set LastLogin=Now(),LastLoginIP='"&ip&"' where username='"&username&"'")
rs.close
set rs=nothing
response.write "<script>location.href='admin_main.asp'</script>"
end if
end if
end if
end sub
%>


出现这个错误是什么原因,请大侠们指导一下!
...全文
136 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
jiyi30215 2009-03-11
  • 打赏
  • 举报
回复
UP UP
我也遇到这一模一样的问题,如果把cachetemplate定义后。

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

类型不匹配: 'cachetemplate'

/qy/bbs/bbs/bbs/admin_login.asp,行10

有谁知道的不。
ice241018 2008-06-16
  • 打赏
  • 举报
回复
你这是一个OA系统吧
不是dvbbs,dv里没有组件
rankisky 2008-06-16
  • 打赏
  • 举报
回复
cachetemplate templateused,0 一般函数都会是

cachetemplate (templateused,0) 这样

或 cachetemplate "&templateused&",0 这样..
rankisky 2008-06-16
  • 打赏
  • 举报
回复
估计是个函数

cachetemplate templateused,0 其中

templateused 是来路
0 是登录类型

可能该函数会根据所提交的数据,返回不同的web内容。或提示。

如果是函数的话,估计1种是没加载函数库,一种就是少代码,少function 这块。
baoxiaohua 2008-06-15
  • 打赏
  • 举报
回复
第10行是这句:cachetemplate templateused,0

请高手解答
baoxiaohua 2008-06-15
  • 打赏
  • 举报
回复
这个论坛里面有个DV_FileSaveAs.dll文件,可是放到system32目录下注册不成功
说什么:已经加载这个文件,可是无法找到输入点,无法注册这个文件
baoxiaohua 2008-06-15
  • 打赏
  • 举报
回复
谢谢楼上两位了,终于有热心的人了!
楼上的兄弟,先谢谢了,我用动网先锋的论坛!
不会叫你白研究的!
baoxiaohua 2008-06-14
  • 打赏
  • 举报
回复
分不够可以再给!希望有高手告诉我这是怎么会事!
baoxiaohua 2008-06-14
  • 打赏
  • 举报
回复
其实我也去BAIDU中去查过,发现还满多人出现过这个问题,不过似乎都没解决!
不然也不敢打捞大家!

(1)有人说是:程序没有更新..更新一下程序
下载 原7.1sp1专用升级文件包就可以了吧

可是我下载了,发现没有用,不知道是不有别的更高版本

(2)也有人说是cachetemplate templateused,0
不光变量未定义 你的这句也存在问题。
变量未定义 说明你得conn.asp里面声明所有的变量必须定义才可以使用。

而你的cachetemplate templateused,0 这句有错误,没有这种写法。
系统只会认为 cachetemplate这是一个变量。

可是如果错了,应该怎么写呢

(3)还有说是找一个同版本的空数据库或者你以前备份的数据库,把基本设置那个表替换到你的数据库中去,清理一下缓存,论坛应该就可以打开了吧?

不过这样要重新进行基本设置。

请高手帮我一下
jnwentao 2008-06-14
  • 打赏
  • 举报
回复
用的什么论坛,找我吧,我给你研究一下,QQ365555208
ice241018 2008-06-14
  • 打赏
  • 举报
回复
cachetemplate是个函数吧
是不是少了一个包含文件
就是缓存函数和类

cachetemplate从名称看是缓存模版
baoxiaohua 2008-06-14
  • 打赏
  • 举报
回复
跪求了,兄弟们!
给点回复吗?

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧