| Author |  Topic  |  | 
              
                | willy303Starting Member
 
 
 
                Philippines8 Posts
 | 
                    
                      |  Posted - 26 August 2005 :  23:42:22   
 |  
                      | 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
 |  | 
              
                | ruiribSnitz Forums Admin
 
      
 
                Portugal26364 Posts
 |  | 
              
                | willy303Starting Member
 
 
 
                Philippines8 Posts
 | 
                    
                      |  Posted - 30 August 2005 :  11:08:53   
 |  
                      | 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.
 |  
                      |  |  | 
              
                | ruiribSnitz Forums Admin
 
      
 
                Portugal26364 Posts
 |  | 
              
                |  |  Topic  |  |