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
Uhm... I've made the change, but the result is always the same:
Type mismatch: 'Response.Cookies(...).Expires'
Im currently building a debug page for you to gather some information that ipgate uses. DO not change anything with your forum, Im am using current files.<
locate sub writethecookie (cookietype, cookiedate) if strIPGateCok = 1 then Response.Cookies(trim(cookiename))=cookietype Response.Cookies(trim(cookiename)).Expires = cookiedate end if
end sub replace with sub writethecookie (cookietype, cookiedate) if mlev >=3 then %> <p>CookieType=<%=cookietype%><br> CookieDate=<%=cookiedate%><br> CookieName=<%=cookiename%><br> </p> <% end if
if strIPGateCok = 1 then Response.Cookies(trim(cookiename))=cookietype Response.Cookies(trim(cookiename)).Expires = cookiedate end if
end sub
When it errors, give me the 3 items on the screen relating to the cookie information.<
Change your cookie name near the top of inc_ipgate.asp and see if it clears up. also while you are there, locate useautoban = 1 change to useautoban = 0 That setting whem set to 1 would generate the message if someone closely match an ip and automatically add them into the db.
Also see if anyone is setup as "watched" in admin_ipgate.asp
If that doesn't work, you can remove the section in inc_ipgate.asp locate case "watched" %> <table border="0" width="100%" id="table1" style="border-collapse: collapse"> <tr> <td align="center" <% if strIPGateCss = 1 then response.write(forumcss) else response.write(forumnocss) end if %>> <% if strIPGateCss = 0 then response.write(fontnocss)%> <b>Message: <%=StrIPGateWarnMsg%></b> <% if strIPGatecCss = 0 then response.write ("</font>") %> </td> </tr> </table> <% and remove it<
Hallo gpctexas! hope you can help me as well... i have installed your IPGate 2.4.3 Beta 2, i received an email from a user that every time he try to enter the result is this error:
Errore di run-time di Microsoft VBScript error '800a000d'
Tipo non corrispondente: '[string: "15, 192.168.200.15, "]'
/myforum/inc_ipgate.asp, line 377
the error line of inc_ipgate is: num = Int(Mid(DottedIP, PrevPos + 1, pos - PrevPos - 1))
Looks like some problem with his Ip , i receive many other visit (around 200 each day) without any problem..
Hi has anyone experienced a problem with IPGate whereby Registration activation email does not go out to the user? I notice after installing IPGate that users do not get the email (I tested this myself). Otherwise forum email (subscriptions, lost password) works. <
make sure you edited config.asp and the inc_header.asp right. Check and make sure you didnt accidently delete varaible etc from config.asp when adding ipgate vars. IPGate does not interfere with any of the email functions<