Author |
Topic  |
|
gstoker1
Starting Member
9 Posts |
Posted - 13 May 2007 : 03:30:01
|
Hi, I wonder if anyone can help me. I've just installed Private Messages 3.5 mod (onto Snitz 3.4.06). It is working absolutely perfectly, however in the process, I have managed to kill the previously successfully working Active Users 4.0.18 mod. Here's some of the detials:
It all seems to stem around the following line in default. asp <!--#include file="inc_activeusers.asp"--> With that line in, the site partially crashes (a black bar on the default page including this message): Microsoft VBScript runtime error '800a000d' Type mismatch: 'chkAUPermissions'
/inc_activeusers.asp, line 39
The point at which this line appears is next to the other edit I had to make to the default default.asp to get the active users mod to work. Here's the section:
end if
if strPMStatus = "1" then %> <!--#INCLUDE FILE="privatemess.asp"--> <% end if
if strShowStatistics = "1" then WriteStatistics end if
In the original file before I added any mods, it went from the endif at the top to the if strShowStatistics line. So with the active users mod in, it was just like this:
end if %> <!--#INCLUDE FILE="inc_activeusers.asp"--> <% if strShowStatistics = "1" then WriteStatistics end if
So i've tried the additional include in a variety of places - seems to work fine, however whatever else i may have done means that now no matter where i put the original include, i get the error.
The error, by the way, refers to a file that i have not changed at all in adding the new functionality. The offending section referred to in the error message is:
bolOverride = chkAUPermissions(strAUAnonOverride) bolPanel = chkAUPermissions(strAUPAllow) bolAUPage = chkAUPermissions(strAUAllow)
Only other thing i can mention is that i can no longer access the admin page for the original active users mod, i get:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'checkRadio'
/admin_config_activeusers.asp, line 71
This refers to another file i've not changed during this mod install, the detailed line is:
response.write " <form action=""admin_config_activeusers.asp"" method=""post"" id=""Form1"" name=""Form1"">" & VBNewLine & _ " <input type=""hidden"" name=""Method_Type"" value=""Write_Configuration"">" & VBNewLine & _ " <table border=""0"" cellspacing=""0"" cellpadding=""0"" align=center>" & VBNewLine & _ " <tr>" & VBNewLine & _ " <td bgcolor=""" & strPopUpBorderColor & """>" & VBNewLine & _ " <table border=""0"" cellspacing=""1"" cellpadding=""4"">" & VBNewLine & _ " <tr valign=""top"">" & VBNewLine & _ " <td bgcolor=""" & strHeadCellColor & """ colspan=""2""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor &
Help!!!!!!!! I'm not at all experienced with ASP (or programming at all) and have simply been trying to carefully follow the instructions in modifying the code etc. Thanks in advance for anyone's suggestions.
Graeme. |
|
Hermes
Junior Member
 
Croatia
113 Posts |
Posted - 13 May 2007 : 04:54:36
|
qstoker, I am not asp programmer but have both mod implemented successfully
part with include file goes like this:
next '## Next Forum end if next '## Next Category end if if strPMStatus = "1" then %> <!--#INCLUDE FILE="privatemess.asp"--> <% end if %> <!--#include file="inc_activeusers.asp"--> <% if strShowStatistics = "1" then WriteStatistics end if Response.Write " </table>" & vbNewline & _ " </td>" & vbNewline & _ " </tr>" & vbNewline & _ " <tr>" & vbNewline & _
The other part, I think that you maybe mess something in admin_home.asp
If this upper those not help, post .txt files of default.asp and admin_home.asp
btw. which database do you using?
|
ASP Snitz Forum Upute za instalaciju http://www.kairos.com.hr http://www.hermetizam.com Forum
not so newbie any more :) |
 |
|
gstoker1
Starting Member
9 Posts |
Posted - 13 May 2007 : 05:18:20
|
Hi, thanks for the help. Tried amending the script to what you have, but I get the same error. So maybe the problem's elsewhere?
Files as requested are here:
www.radiodxer.co.uk/txt/default.asp.txt www.radiodxer.co.uk/txt/admin_home.asp.txt
Thanks |
 |
|
Hermes
Junior Member
 
Croatia
113 Posts |
|
gstoker1
Starting Member
9 Posts |
Posted - 13 May 2007 : 05:27:28
|
OK thanks for the tip - will do that in future (sorry i'm new to this). Language - just the standard English only, thx. |
 |
|
Hermes
Junior Member
 
Croatia
113 Posts |
Posted - 13 May 2007 : 05:51:28
|
In default.txt that you put, you didn’t include code in my above post. I hope that you check it in your default.asp
Well I check the code in both this files and it seems ok. Logic tells that you mess something with private message mod, since active users worked before.
Best wait for senior members. They will locate problem more accurately than me.
|
ASP Snitz Forum Upute za instalaciju http://www.kairos.com.hr http://www.hermetizam.com Forum
not so newbie any more :) |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 13 May 2007 : 06:01:33
|
Make sure you haven't messed up anything in inc_func_common.asp. Many times type mismatch errors result from the function being called not being defined in any file. In this case chkAUPermissions and checkRadio should be defined in inc_func_common.asp. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
gstoker1
Starting Member
9 Posts |
Posted - 13 May 2007 : 06:16:16
|
quote: Originally posted by ruirib
Make sure you haven't messed up anything in inc_func_common.asp. Many times type mismatch errors result from the function being called not being defined in any file. In this case chkAUPermissions and checkRadio should be defined in inc_func_common.asp.
Thanks for this, they seem to be there but then I dont really know what i'm looking for - file attached below.
Hermes - yes sorry the file i attached is the presently working one (ie PM working fine and not calling the activeusers inc, so no errors. See default2.txt below, this generates the errors i said in my original post.
www.radiodxer.co.uk/txt/default2.txt www.radiodxer.co.uk/txt/inc_func_common.txt
thanks |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
Hermes
Junior Member
 
Croatia
113 Posts |
|
gstoker1
Starting Member
9 Posts |
Posted - 13 May 2007 : 10:25:22
|
Thanks for this, i'll post these files when I get home tonight, thanks again for everyone's help, it's really apprecaited. |
 |
|
gstoker1
Starting Member
9 Posts |
Posted - 13 May 2007 : 16:30:11
|
OK, forgot to say before, database is Access. Files now uploaded as requested: www.radiodxer.co.uk/txt/inc_header.txt www.radiodxer.co.uk/txt/inc_activeusers.txt www.radiodxer.co.uk/txt/admin_config_activeusers.txt www.radiodxer.co.uk/txt/config.txt
Thanks |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 13 May 2007 : 16:43:48
|
Your inc_header.asp is missing some code, AFAIK:
'*************** AU Mod **************
select case Request.Form("Method_Type")
case "login"
if strLoginStatus = 1 then
AUHandleLoging()
end if
case "logout"
AUHandleLoging()
end select
ActiveUserTracker()
'*************** End AU **************
This shouldn't cause the errors you're experiencing, but you definitely need this.
I see no other problems...add this and let us know if it helps in any way. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
gstoker1
Starting Member
9 Posts |
Posted - 13 May 2007 : 17:12:21
|
BINGO!!! 
That looks like being it! I have absolutely no idea where that little bit of code went, clearly finger trouble on my part though. I'm just gonna test it now, but all being well that's sorted it.
I am so grateful to you both, Hermes and Ruirib, for your time, patience and expertise. |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
Hermes
Junior Member
 
Croatia
113 Posts |
|
|
Topic  |
|