Forum Counter (Site Statistic) - problem

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/58820?pagenum=1
05 November 2025, 08:47

Topic


hans_
Forum Counter (Site Statistic) - problem
09 July 2005, 07:26


I tried to install this MOD http://www.snitzbitz.com/mods/details.asp?Version=All&mid=110 This topic about this MOD is lockedhttp://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=38997&whichpage=11sad And I have the similar problem. I want to use Use Snitz Database. I tried setting the SiteStats mod to use the forum database instead of the text file to store data - the system seemed to still require that I specify a path to a text file for some reason. How can I solve it please?
The statistic is not displayed and I have this error:
Code:

Microsoft VBScript runtime error '800a0005' 

Invalid procedure call or argument

/2004/v_01/forum/inc_sitestat.asp, line 367

On line 367 i found this code:
Code:
    set file = fso.OpenTextFile(strCounterTxtPath,1,true)
I need to use Snitz Database.
Please help.<

 

Replies ...


modifichicci
09 July 2005, 15:04


I have put the file in the upload dir, and choosing instead the database option. It works properly using database and the text link is ineffective, but necessary to the code.<
hans_
10 July 2005, 02:32


Thank you for tip, I tried it also.
But problem is, that the forum has a problem: "The Path you have specified for the storage place, does not include the file!"
I tried to put the same path of the field Path of the sitestat.txt: directly in the adress field in the browser and the content of the file sitestat.txt is displayed correctly. Where can be the problem? Thanks<
modifichicci
10 July 2005, 15:08


Try writing just sitestat.txt in the request field and put a copy of the file in the main forum dir and another copy in your upload dir. That is what i have done and it works<
hans_
10 July 2005, 16:22


I will try it thank you for tip!<
hans_
10 July 2005, 16:36


I tried it and I have the same error on the default site:

Code:
Microsoft VBScript runtime error '800a0005' 

Invalid procedure call or argument

/2004/v_01/forum/inc_sitestat.asp, line 367
If I set the Admin Options the "Use Snitz Database: ON", than is the "Configuration Posted!" but on the site default.asp is still the error, what I posted. The path is just sitestat.txt.
Where could be the problem?
Thanks<
modifichicci
11 July 2005, 08:03


I haven't my file with me, i am on vacation... Check the table and the fields value in db, i remember i had to insert something by hand, but now i cannot verify it.. <
hans_
11 July 2005, 09:55


Thank You modifichicci for you answer. I will try it today evening.
If am I not sucesfull, can you help me later?
Bell' vacanza!wink

Originally posted by modifichicci
I haven't my file with me, i am on vacation... Check the table and the fields value in db, i remember i had to insert something by hand, but now i cannot verify it..
<
modifichicci
11 July 2005, 14:54


Yes I'll try! Thank you!<
hans_
14 July 2005, 04:39


Must I have FSO (FileSystemObject) enabled for tis MOD? I dont have it on webserver. Why can´t use I the Admin Options the "Use Snitz Database: ON" ? sad Or exist any other MOD for Forum Counter (Site Statistic)?
Thanks<
modifichicci
14 July 2005, 07:49


Yes you need FSO to use txt file, but not with db. Try to comment the lines after the else, and look what happens.(fro 361 to 400)<
hans_
19 July 2005, 12:54


I tried to set i on Snitz dtb and sitestat.asp has following error:
Code:
ADODB.Field error '800a0bcd' 

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/2004/v_01/forum/inc_sitestat.asp, line 309

Can you help me please?
<
hans_
19 July 2005, 15:32


I see numbers now, it looks, that is finaly works! [^]
Originally posted by hans_
I solved the problem with the error. The problem was with FSO and bad path to the TXT file. Now runs the counter over TXT, because with Snitz dtb displayed the page some errors. Now I have the sitecount on the page. But instead numbers I see character #
Is it OK?

Thanks



<
modifichicci
19 July 2005, 17:18


Glad you have solved!!<
hans_
20 July 2005, 03:48


Finally! thank you for your unselfish help modifichicci!<
jamesdavis
11 August 2005, 19:52


The real issue that is easily and quickly addressed is that the filename provided in the distribution has 'sitestat.txt' misspelled. (It comes preconfigured to use 'sitetstat.txt' and because it is misspelled the config code will not complete. Just change the spelling using the admin program. (The test is made whether or not you use db or text file.
At least one page must be opened by a user in order to populate the db. (That happens when any page is looked at and inc_header.asp is executed from within the page code.)

By commenting out the error test you<
PPSSWeb
01 May 2006, 14:30


Does anyone have a link to the most recent version of this mod? The above referenced links are not working.
Thanks<
Classicmotorcycling
01 May 2006, 15:10


Try clicking on this: http://www.snitzbitz.com/mods/details.asp?Version=All&mid=110 (the first link) I just did and then clicked on the link to Download at Snitzbitz.com and it worked for me, it is still there and working.<
© 2000-2021 Snitz™ Communications