| View previous topic :: View next topic |
| Author |
Message |
R_Simmonds
Joined: 10 Jun 2004
Posts: 2
Location: UK
|
| Posted: Thu Jun 10, 2004 4:08 pm Post subject: PHPSiteStats Log File |
|
|
Can anyone help - I have installed PHPSiteStats and keep getting this error message when trying to view the stats ---
'Warning: fopen("../gallery/index.log", "r") - No such file or directory in c:\apache\htdocs\stats\inc.func.php on line 436
could not open ../gallery/index.log'
--- I thought I did everything right but perhaps not! Can anyone suggest a remedy?
Thanks |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 303
|
| Posted: Thu Jun 10, 2004 9:16 pm Post subject: |
|
|
| make sure index.log exists and that it is accessible by the http server ,( that is if its's under htdocs or under a site alias ) and that ../gallery/ is the corect path to it |
|
| Back to top |
|
R_Simmonds
Joined: 10 Jun 2004
Posts: 2
Location: UK
|
| Posted: Fri Jun 11, 2004 11:30 am Post subject: |
|
|
| Where can I find an index.log file as mine obviously doesnt work? |
|
| Back to top |
|
jer2665
Joined: 13 Jul 2004
Posts: 5
Location: Connecticut
|
| Posted: Tue Jul 13, 2004 7:40 pm Post subject: |
|
|
trying to figure out this problem to help this guy, I found a bug. When you change your db or flatfile configs, it doesn't erase "$cfg_dlogs[..." in inc.conf.php it just keeps adding other ones. I had tried to add a log file to test out how to tell him how to set it up, and it couldn't find it, then i tried to go back to database and it kept trying to connect to that log file. I understand the reason for that, so that you can have multiple databases or flat files I assume, but it gets screwed up when you try to enter multiple ones that are incorrect.
an idea might be to not have the program die() on an error, let it go through and show you the rest of the logs, and possibly add a little function to either edit or delete the database file that it's having trouble with. That'd be pretty simple to add. Let me know if you think I'm barking up the right tree there. |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 303
|
| Posted: Tue Aug 03, 2004 3:46 pm Post subject: |
|
|
Quote: When you change your db or flatfile configs
please be more exact and define "change"
when editing a entry with the pen icon the entry is edited (changed)
a new one is not adeed
so you must have meant something else |
|
| Back to top |
|
jer2665
Joined: 13 Jul 2004
Posts: 5
Location: Connecticut
|
| Posted: Tue Aug 03, 2004 4:23 pm Post subject: |
|
|
hrm, this was a while ago, i dont' really remeber but what I think I meant was when you click on the clog icon to add a new database, or flat file config. I added a new flat file, and must have given it a bad path, because I don't know if you want it from the phpsitestats folder or wherever. "ex, index.log or ../index.log"
I added a new flat file database, and it must have been the wrong path, because I got the error when trying to access it. I still had my table, saved normally, and it was saved in inc.conf.php so it still should have come up, but I think because you used "die()" it stops at the bad flat file. I'm thinking if you don't use die, but have it print out the error message so you can't use it, and it keeps going on with the db's that do work, that'd keep it going. then you can edit or delete the item from the main page, like edit the log, which yo ucan't do because it makes the program die if there's a problem.
I was wrong about the edit and delete thing, because I noticed after that you do have those things available, i merely wasn't able to click them, because after running into an incorrect db or flat file it dies.
i hope that makes sense, if not, let me know, and i'll edit the script on my site so i can show you what I mean. |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 303
|
| Posted: Tue Aug 03, 2004 10:06 pm Post subject: |
|
|
yes i understand perfectly now , so your problem is the termination of the execution on error
well i was unable to find a pacticall solution to this without affecting other thing so for now just be carefull what data you enter , but i will do something about this eventually |
|
| Back to top |
|
| |