Author |
Topic  |
|
matrixxx
Starting Member
USA
19 Posts |
Posted - 18 May 2003 : 13:49:03
|
Hello,
after installing the site statistic mod and selecting modes, ect....I checked use snitz database, but when i submit it keeps telling me:
There Was A Problem With Your Details
The Filename has to be sitestat.txt
any ideas? |
Thanks,
Howard www.vcstechs.com |
Edited by - matrixxx on 18 May 2003 22:07:02 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 18 May 2003 : 14:29:25
|
not familiar with this mod, but it sounds like there should be a file named sitestat.txt present. maybe you need to manually create this file before it can update it. |
|
 |
|
matrixxx
Starting Member
USA
19 Posts |
Posted - 18 May 2003 : 15:18:28
|
i got the site stat forum counter (site statistic) mod at http://www.snitzbitz.com/mods/default.asp
according to the snitzbitz, snitz is the support site. Oh well
I tried what you suggested but for some reason its not finding the file. the example was looking for a virtual path ie.. c:\wwwroot\sitestat.txt and its not excepting my path /data/sitestat.txt not matter what way I put it.
I have some ASP knowledge(very little) and I can not find anything wrong with the.
Oh well, I must be missing something.
thanks |
Thanks,
Howard www.vcstechs.com |
Edited by - matrixxx on 18 May 2003 20:34:02 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 18 May 2003 : 15:31:30
|
if the path in the file is c:\wwwroot\sitestat.txt then that is not a virtual path. you are trying to point to /data/sitestat.txt so you would need to add a Server.MapPath
Server.MapPath("data\sitestat.txt")
What is your actual absolute path to this file on your server? |
|
 |
|
matrixxx
Starting Member
USA
19 Posts |
Posted - 18 May 2003 : 16:24:26
|
Dayve, I alwalys get virtual/absolute confused. if i were to use server.mapPath("data\sitestat.txt") would be the path. I am not sure if www/data/sitestat is absolute or not. but I dont see how server.mapPath can be used in the following code, because it should never get past the first if, becasue i checked use DB, so the value should = 1 and end;
If Request.Form("strCounterDB")="0" then 'We check if the file exists in the path specified set fso = server.createobject("Scripting.FileSystemObject") If fso.FileExists(Request.Form("strCounterTxtPath")) then Else Err_Msg = Err_Msg & "<li>The Path you have specified for the storage place, does not include the file!</li>" End If set file = nothing: set fso = nothing
here is the code for radio button:
<tr valign=""middle"">" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Use Snitz Database:</b> <br>If Off a TXT file will be used </font></td>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _ " On:<input type=""radio"" class=""radio"" name=""strCounterDB"" value=""1""" & chkRadio(strCounterDB,0,false) & "> " & vbNewLine & _ " Off:<input type=""radio"" class=""radio"" name=""strCounterDB"" value=""0""" & chkRadio(strCounterDB,0,true) & ">" & vbNewLine & _ " </td>" & vbNewLine & _
'We check if the Attribute of the file is Read set fso = server.createobject("Scripting.FileSystemObject") If fso.FileExists(Request.Form("strCounterTxtPath")) then set file = fso.GetFile(Request.Form("strCounterTxtPath")) FileAttrinute = file.Attributes set file = nothing: set fso = nothing If FileAttribute = 1 then Err_Msg = Err_Msg & "<li>The Path you have specified for the storage place has the file property Read,<br> " &_ Err_Msg = Err_Msg & "It needs to be Read & Write!!</li>" End If End If End If If Not Right(Request.Form("strCounterTxtPath"),12)="sitestat.txt" then Err_Msg = Err_Msg & "<li>The Filename has to be sitestat.txt</li>" End if
thanks for your help
"the more i learn the less i know" not sure who said it first |
Thanks,
Howard www.vcstechs.com |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 18 May 2003 : 17:07:28
|
Absolute Path is the actual file path to your document. For example:
c:\inetpub\wwwroot\mysite\data\somefile.txt
Virtual Path is a reference to a directory relative to your parent directory. For example, if your website was in a directory called mysite with a data directory below that, the virtual path would be:
/mysite/data/somefile.txt
quickly looking at the code you posted, it appears that the path is being passed through a form request. since I am not familiar with this mod, I can't help very much without seeing all the files (please don't post all the files here!). I may download this mod just to look at it briefly. |
|
 |
|
matrixxx
Starting Member
USA
19 Posts |
Posted - 18 May 2003 : 18:16:19
|
no problem...btw, thanks for reminding me of the difference between absolute and relative paths.
thanks |
Thanks,
Howard www.vcstechs.com |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 18 May 2003 : 19:20:55
|
If you are using the database instead for a textfile, you should not specify any path at all. Try again but leave out the path to the textfile in the form. |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
 |
|
matrixxx
Starting Member
USA
19 Posts |
Posted - 18 May 2003 : 20:20:59
|
thanks masterao,
when i did that, it brought to the admin logon screen and after i logged on it, returned me to the site statistic admin screen with all the default values. I thought i was just going in circles. after reading your post, i decided to go to the main forum page and i now received the following error:
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
/forum/inc_sitestat.asp, line 367
set fso = server.createobject("Scripting.FileSystemObject") set file = fso.OpenTextFile(strCounterTxtPath,1,true) <--------------------- 367 lines = split(file.readall(), vbCrLf) file.close: set file = nothing: set fso = nothing
thanks again
|
Thanks,
Howard www.vcstechs.com |
 |
|
matrixxx
Starting Member
USA
19 Posts |
Posted - 18 May 2003 : 20:32:26
|
the name of the mod is forum counter (site statistic) at www.snitzbitz.com
my goof |
Thanks,
Howard www.vcstechs.com |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 19 May 2003 : 04:51:39
|
Can you change the sitestat config at all, or are you always redirected to the admin logon screen when you leave the path empty? Also, what is the default value for using db, yes or no? |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
 |
|
matrixxx
Starting Member
USA
19 Posts |
Posted - 19 May 2003 : 09:13:17
|
1. not sure you what you mean change the site config, but yes, i am always redirected to admin logon screen.
2. 0 = off
I hope thats what you wanted to know. |
Thanks,
Howard www.vcstechs.com |
 |
|
Sherm
Starting Member
18 Posts |
Posted - 31 May 2003 : 21:01:49
|
I'm getting the same error ...
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
/forum/inc_sitestat.asp, line 367
Did anyone resolve this?
TIA, Shermy
|
 |
|
nickw
Junior Member
 
Ireland
193 Posts |
Posted - 02 June 2003 : 16:19:47
|
Guys
I had the same problem.... until I copied in the 1.11 update...
Then my problem went away...
Cheers,
|
Nick |
 |
|
nickw
Junior Member
 
Ireland
193 Posts |
Posted - 02 June 2003 : 16:20:51
|
Sorry...
Also, I had to turn off the txt file option, but still put the name "sitestat.txt" in that box.
Cheers,
|
Nick |
 |
|
|
Topic  |
|