Graphcount.php not working

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
Guest

Graphcount.php not working

Post by Guest »

I've installed graphcount.php per the instructions in readme.htm. I've set $Check-referers to 0. The hit counter does not display on preview or when I open the site online. I'm using frontpage and insert the Javascript into the HTML for my website manually. Javascript is enabled in frontpage. Any ideas what could be wrong?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Open the direct URL to graphcount.php in your browser, like this:

http://www.yourdomain.com/gcount/graphc ... ?page=test

and see if you get an error message. If it says something like "Can't open/write the log file!" you didn't set correct file permissions. See my tutorial how to do that:
http://www.phpjunkyard.com/ftp-chmod-tutorial.php

If that isn't the problem post the URL to your site / graphcount.

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Guest

Graphcount.php not working

Post by Guest »

Thanks for your help, I fixed a couple of problems and tried running the script again. It now shows the X "broken image" sign, at least the script is executing. I've checked all the paths, filenames etc, they all look ok. The script is trying to open .gif files in ../styles/web1/. Do you have any suggestions on why the .gif files won't display?
Guest

Graphcount.php not working

Post by Guest »

The script is now executing, except I get the broken image sign. I've checked paths, filenames etc they all look ok. Its trying to open gif files located in ../styles/web1/. Do you have any suggestions on what could be wrong?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

What's the URL of your installation?

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

In graphcount.php check if your $base_url is set to:

Code: Select all

$base_url = "http://www.d-esig-n.com.au/"; 
Should be the EXACT code as above. If you have /htdocs/ in the path remove it. And it must end with a /

Was this the problem?

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Guest

Graphcount.php not working

Post by Guest »

Yes, that was the problem, thanks for your help.
Guest

Re: Graphcount.php not working

Post by Guest »

Guest wrote:I've installed graphcount.php per the instructions in readme.htm. I've set $Check-referers to 0. The hit counter does not display on preview or when I open the site online. I'm using frontpage and insert the Javascript into the HTML for my website manually. Javascript is enabled in frontpage. Any ideas what could be wrong?
im having a similar problem. i cant even get the php file to open, it says the file cannot be found. the address is http://somedaypunk.brinkster.net/newdes ... page=index

i have followed the readme instructions. i also tried the basic text counter, but this does not display either. do i have to initialise any code at the beginning of the html page before the <head> command?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If the page can't be found then there is an error in your URL. Check the URL and note that everything after the domain is CaSe SeNsiTiVe (folder and files).

The Javascript code should be placed somewhere within <body> and </body> - where you want the code to display.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply