Author |
Topic |
gpctexas
Junior Member
320 Posts |
Posted - 07 December 2006 : 12:24:24
|
That change may cause a prob when you turn off auto cleaning as it will fail the check and bypass the code. I will look at the code later on.< |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
|
|
billson
Starting Member
3 Posts |
Posted - 05 February 2007 : 08:44:40
|
I got the same error in the red line, when I use http://www.google.com/language_tools to translate my forum.
Function Dot2LongIP (ByVal DottedIP) Dim i, pos Dim PrevPos, num If DottedIP = "" Then Dot2LongIP = 0 Else For i = 1 To 4 pos = InStr(PrevPos + 1, DottedIP, ".", 1) If i = 4 Then pos = Len(DottedIP) + 1 End If num = Int(Mid(DottedIP, PrevPos + 1, pos - PrevPos - 1)) PrevPos = pos Dot2LongIP = ((num Mod 256) * (256 ^ (4 - i))) + Dot2LongIP Next End If End Function
Ooops. forget to show the error message
Error Message : Microsoft VBScript runtime /forum/inc_ipgate.asp Type mismatch: '[string: "132, unknown"]'< |
Edited by - billson on 05 February 2007 08:47:44 |
|
|
bozan74
Starting Member
11 Posts |
Posted - 02 April 2007 : 05:17:18
|
Hi, I have the same error of Ken Derringer:
When i try to activate the cookies option to ON, i receive this error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'Response.Cookies(...).Expires'
/forumgdr/inc_ipgate.asp, line 192
I use access DB. I'm from Italy.
Can you fix this? I think that it is a problem of date...< |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 02 April 2007 : 18:47:42
|
quote: Originally posted by bozan74
Hi, I have the same error of Ken Derringer:
When i try to activate the cookies option to ON, i receive this error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'Response.Cookies(...).Expires'
/forumgdr/inc_ipgate.asp, line 192
I use access DB. I'm from Italy.
Can you fix this? I think that it is a problem of date...
You may have an issue with the date. Are you using any mod that change the behavior of the forum date and time?< |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
|
|
bozan74
Starting Member
11 Posts |
Posted - 03 April 2007 : 04:07:40
|
quote: Originally posted by gpctexas
quote: Originally posted by bozan74
Hi, I have the same error of Ken Derringer:
When i try to activate the cookies option to ON, i receive this error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'Response.Cookies(...).Expires'
/forumgdr/inc_ipgate.asp, line 192
I use access DB. I'm from Italy.
Can you fix this? I think that it is a problem of date...
You may have an issue with the date. Are you using any mod that change the behavior of the forum date and time?
No, I have theese mod installed:
- Active Users 4.0 - Add Default Smiles - TMP J's Header Cell Image MOD 3.4 - NET IPGate Mod 2.4 - Smile Manager Plus - Zuel's Avatar Addon
The message appear only to a banned or watched user, when i set 'ban' or 'watch' in the control panel. I think it's a problem of date; it's strange because the date in the forum works great, without any problem...
My forum is here: www.gamesark.it/forum
My ASP file are here: http://bozan.interfree.it/asp_file.zip
Thanks ;)< |
Edited by - bozan74 on 03 April 2007 04:11:57 |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 03 April 2007 : 10:32:16
|
This issue has poped up a couple time before, but I've never been able to reproduce the error. I'll Look at your files and see if everything is ok.
Can you give me a print screen of your admin Ban User page. I need to see how the date is being displayed in the start and end date.< |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
Edited by - gpctexas on 03 April 2007 10:43:06 |
|
|
bozan74
Starting Member
11 Posts |
Posted - 03 April 2007 : 18:22:09
|
Ok, this is the screenshot:
< |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 03 April 2007 : 18:51:58
|
You appear to be running 2.4.3, but your config appears to not be updated for it based on files in your zip.
under alternate mod setup copy paste these new variables
[INSERT] CONFIG_NEW (C_VARIABLE,C_VALUE)#('STRIPGATESHOWRECS','25') (C_VARIABLE,C_VALUE)#('STRIPGATEAUTOCLEAN','0') [END]
edit config.asp
locate
Dim StrIPGateBan ,StrIPGateLck ,StrIPGateCok ,StrIPGateMet ,StrIPGateMsg ,StrIPGateLog ,StrIPGateTyp ,StrIPGateExp, StrIPGateCss, strIPGateVer, StrIPGateLkMsg, strIPGateNoAcMsg, StrIPGateWarnMsg
add , strIPGateshowrecs, strIPGateAutoClean
to make Dim StrIPGateBan ,StrIPGateLck ,StrIPGateCok ,StrIPGateMet ,StrIPGateMsg ,StrIPGateLog ,StrIPGateTyp ,StrIPGateExp, StrIPGateCss, strIPGateVer, StrIPGateLkMsg, strIPGateNoAcMsg, StrIPGateWarnMsg, strIPGateshowrecs, strIPGateAutoClean
locate
StrIPGateWarnMsg = Application(strCookieURL & "STRIPGATEWARNMSG")
add after that
strIPGateshowrecs = Application(strCookieURL & "STRIPGATESHOWRECS") strIPGateAutoClean = Application(strCookieURL & "STRIPGATEAUTOCLEAN")
login into ipgate admin and goto settings, select the number of records to show per page and save.< |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
Edited by - gpctexas on 03 April 2007 18:57:43 |
|
|
bozan74
Starting Member
11 Posts |
Posted - 04 April 2007 : 06:12:00
|
I've done all the change, except this:
"login into ipgate admin and goto settings, select the number of records to show per page and save"
Can you explain me this last one better?
Anyway, I've tried it (without this last change) and the problem remain the same:
Microsoft VBScript runtime error '800a000d' Type mismatch: 'Response.Cookies(...).Expires' /forum/inc_ipgate.asp, line 246
(this display on watched/banned user's PC)< |
Edited by - bozan74 on 04 April 2007 06:13:22 |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
gpctexas
Junior Member
320 Posts |
Posted - 04 April 2007 : 22:53:10
|
autoclean is used in inc_ipgate.asp in 2.4.3 in this statement: Set rs = Server.CreateObject("ADODB.Recordset") autorange = datetostr(dateAdd("d",-strIPGateAutoClean,strForumTimeAdjust)) StrSql = "DELETE FROM " & strTablePrefix & "IPLOG WHERE IPLOG_DATE < '" & autorange & "'" rs.Open StrSql, strConnString if rs.State = 1 then rs.Close< |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 04 April 2007 : 22:54:13
|
quote: Originally posted by bozan74
I've done all the change, except this:
"login into ipgate admin and goto settings, select the number of records to show per page and save"
Can you explain me this last one better?
Anyway, I've tried it (without this last change) and the problem remain the same:
Microsoft VBScript runtime error '800a000d' Type mismatch: 'Response.Cookies(...).Expires' /forum/inc_ipgate.asp, line 246
(this display on watched/banned user's PC)
There is a setting in admin_ipgate.asp that sets the number of records to display for the logs< |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
|
|
gpctexas
Junior Member
320 Posts |
Posted - 04 April 2007 : 23:17:54
|
This is the function in question with the error happening with Response.Cookies(trim(cookiename)).Expires = cookiedate with the cookiedate causing the error
sub writethecookie (cookietype, cookiedate) if strIPGateCok = 1 then Response.Cookies(trim(cookiename))=cookietype Response.Cookies(trim(cookiename)).Expires = cookiedate end if
end sub
I have no way to test, but please try to change in inc_ipgate.asp Response.Cookies(trim(cookiename)).Expires = cookiedate
to
Response.Cookies(trim(cookiename)).Expires = chkString(cookiedate,"SQLString") < |
ipgate 2.4.4 RC3 http://www.gpctexas.net/ipgate_v244.zip |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
bozan74
Starting Member
11 Posts |
Posted - 05 April 2007 : 15:25:50
|
quote: Originally posted by gpctexas
This is the function in question with the error happening with Response.Cookies(trim(cookiename)).Expires = cookiedate with the cookiedate causing the error
sub writethecookie (cookietype, cookiedate) if strIPGateCok = 1 then Response.Cookies(trim(cookiename))=cookietype Response.Cookies(trim(cookiename)).Expires = cookiedate end if
end sub
I have no way to test, but please try to change in inc_ipgate.asp Response.Cookies(trim(cookiename)).Expires = cookiedate
to
Response.Cookies(trim(cookiename)).Expires = chkString(cookiedate,"SQLString")
Uhm... I've made the change, but the result is always the same:
Type mismatch: 'Response.Cookies(...).Expires'
< |
|
|
Topic |
|