Page 1 of 1

All ccount links are gone!

Posted: Tue Nov 06, 2007 4:26 pm
by Magda
Script URL: ccount
Version of script: 1.2
Hosting company: private host
URL of phpinfo.php: dont have
URL of session_test.php:dont have
What terms did you try when SEARCHING for a solution: nothing

Write your message below:
I recognized the error when I tried to download something from my site, it showed up: "The ID doesn't exist"

I opened the php click counter panel, and all my 160 ids were gone, I haven't backed up them , because there was no need for it. Was there recently between 31.october and 2.november a problem with phpjunkyard or ccount. my 3 friends also lost all ids! I worry a bit, because I had over 160!

Posted: Tue Nov 06, 2007 6:15 pm
by Klemen
Well even if there was a problem with PHPjunkyard (none that I know of) it wouldn't have any effect on scripts installed on other servers.

Are you sure you're running version 1.2? Did you upgrade from 1.1 or is it a clean install?

You are probably victim of this problem:
viewtopic.php?t=124

For counting many links or clicks (for example more than 100 links or if you get a lot of clicks) you should get a script with MySQL database, text databases are not powerful or secure enough.

Posted: Tue Nov 06, 2007 8:12 pm
by Magda
sorry, I have version 1.1.

no I didn't do anything! Well I think I have to reinstall it again

edit: I installed and overwrited 1.1. to version 1.2.

now I tried to add a link and got this problem

An error occured:

Can't write to the IDs file (ids.txt)! Make sure PHP scripts have permission to write to this file (CHMOD it to 666 on LINUX machines!)


how I can check or be sure, that the php scripts have permission?

thx

Posted: Wed Nov 07, 2007 3:09 pm
by Klemen
Version 1.2 has better protection against file corruption (it employs file locking) so it's possible you won't experience this again.

How to chmod? See this:
http://www.phpjunkyard.com/ftp-chmod-tutorial.php

IDs all disappear

Posted: Tue Mar 18, 2008 12:23 am
by gjmoes
I have been using v1.2 (clean install first time) for about three weeks. Every week, at some point, all the IDs I have linked disappear. I have only 18 links/IDs and the volume of clickthroughs is low (under 50 average). So the problems with high volume and high numbers of links doesn't seem to fit my situation. I've made sure there are no empty lines at the bottom of "click.txt". I've made backups, but when I restore them, the backup file is blank.

Posted: Tue Mar 18, 2008 3:06 pm
by Klemen
Hard to say what's wrong, post the URL of the script here and link to PHPinfo (http://www.phpjunkyard.com/extras/phpinfo.zip).

Posted: Tue Mar 18, 2008 4:21 pm
by gjmoes
The script is located at www.firenuggets.com/ccount/

Forgive my ignorance but I'm not sure what you mean by "link to phpinfo". I've downloaded the file phpinfo.php and placed it in the same directory. Is that what you mean?

Posted: Wed Mar 19, 2008 4:49 pm
by Klemen
Seems fine. Not sure what is wrong, but if this keeps happening I'd recommend you try to find a MySQL based script as your clicks file is obviously being emptied.

Posted: Mon Mar 24, 2008 3:42 pm
by djraven
I have the same problem

look:
http://www.djraven.pl/ccount/phpinfo.php

I have 800 link over.
Suddenlly I have 400 link or 200 links

Posted: Mon Mar 24, 2008 8:34 pm
by Klemen
If you read any old posts you would know that such a number of links is way too much for a text database, you should find a MySQL script instead.

Posted: Tue Mar 25, 2008 11:38 am
by djraven
Klemen, just tell me one thing.
I make 2 ccount

mydomain.com/ccount
mydomain.com/ccount1

and the ccount work perfect.

but i cant create
mydomain.com/ccount2, because the ccount doesn't count the click, it's the same number of clicks.
I have change the code in ftp like in ccount1 to ccount2 and other, but it don't work, what is the reason?

Posted: Tue Mar 25, 2008 3:57 pm
by Klemen
It should work fine in any directory and no matter how may times installed on a domain. The only reason could be you did something wrong in the domain.com/ccount2 (forgot to chmod, maybe using the wrong click.php URL, ...)

But if you are counting clicks on 800 links I recommend that you stop using CCount and find some MySQL based script because you will have more problems sooner or later.