Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Problem when transferring web host service
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

willy303
Starting Member

Philippines
8 Posts

Posted - 26 August 2005 :  23:42:22  Show Profile
Hi.

I will be tranferring my forum to another web hosting service. My Snitz forum just uses a Microsoft Access database, so I guess transferring should be no problem. I'm currently testing the new web server. I already transferred all the forums files and database. The problem I encountered is I get this error message at the forum's default page:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] The search key was not found in any record.
/forums/inc_func_common.asp, line 255

I don't get that error when viewing topics or any other section of the forum. It only comes out at the default page. The old web server runs Windows 2000 Server, and new server I'm transferring to runs Windows 2003 Server.

Does anybody have any idea what's causing that error message?

----- update ----
I checked the source code where the error occurs, and found out that it looks like the Activeusers MOD is the one having the problem. Here is the partial source code of inc_func_common.asp


quote:
function chkAURecord(intTotalActiveUsers)
if cInt(intTotalActiveUsers) > cInt(intAURecord) then 'We have a new record!!! :)
'Check to see if it *Really* is a record, or if Application varaibles just got reset
strSql = "SELECT C_VALUE FROM " & strTablePrefix & "CONFIG_NEW WHERE C_VARIABLE = 'intAURecord'"
set rs = my_conn.execute (strSql)
intOldRecord = cint(rs("C_VALUE"))
rs.close
set rs = nothing
if cInt(intOldRecrod) > cInt(intTotalActiveUsers) then
'Oopsi, this was a false alarm
strSql = "SELECT C_VALUE FROM " & strTablePrefix & "CONFIG_NEW WHERE C_VARIABLE = 'strAURecordDate'"
set rs = my_conn.execute (strSql)
strOldDate = rs("C_VALUE")
rs.close
set rs = nothing
Application(strCookieURL & "INTAURECORD") = intOldRecord
Application(strCookieURL & "STRAURECORDDATE") = strOldDate
intAURecord = intOldRecord
strAURecordDate = strOldDate
else
my_conn.execute ("UPDATE " & strTablePrefix & "CONFIG_NEW SET C_VALUE = '" & cstr(intTotalActiveUsers) & "' WHERE C_VARIABLE = 'intAURecord'")
my_conn.execute ("UPDATE " & strTablePrefix & "CONFIG_NEW SET C_VALUE = '" &DateToStr(strForumTimeAdjust) & "' WHERE C_VARIABLE = 'strAURecordDate'")
intAURecord = intTotalActiveUsers
strAURecordDate = DateToStr(strForumTimeAdjust)
Application(strCookieURL & "INTAURECORD") = intTotalActiveUsers
Application(strCookieURL & "STRAURECORDDATE") = DateToStr(strForumTimeAdjust)
end if
end if
end function

sub deleteInactiveUsers()
strAUTimedOut = DateToStr(DateAdd("n",-strAUTimeout,strForumTimeAdjust))
strSql = "DELETE FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_LASTACTIVETIME < '" & strAUTimedOut & "'"
my_conn.execute (strSql)
end sub



line 255: my_conn.execute (strSql)


To the moderators, I apologize if I posted this problem in this area. I just found out an installed MOD is the one causing the database error. Please do transfer it to the proper section.

Edited by - ruirib on 28 August 2005 05:43:29

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 August 2005 :  05:44:40  Show Profile  Send ruirib a Yahoo! Message
Are you using the same set of files, database included? Did you run setup.asp?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

willy303
Starting Member

Philippines
8 Posts

Posted - 30 August 2005 :  11:08:53  Show Profile
Hello.

Already solved the problem. There was an error transferring the file from the old web server, damaging the database. I just downloaded the database again, and the error message did not showed up again.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 August 2005 :  11:20:42  Show Profile  Send ruirib a Yahoo! Message
Glad you fixed it :).


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07