Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Problem with linksid.txt

Quote Reply
Problem with linksid.txt
Hi,

I've had a problem with a corrupted file linksid.txt and was told how to fix it. I did it and it worked excellent. But evert two or three days this file is being corrupted again. Its status (chmod) is 666, as it should be... Can I prevent it somehow? The risk is, new links will overwrite the old, if the database number starts with 1, 2, 3... instead of 7XXX, 7XX1, 7XX2 etc.

Quote Reply
Re: Problem with linksid.txt In reply to
When you "fixed" the linksid.txt file, did you put the number of the last record in your links.db file in the linksid.txt file??

Regards,

Eliot Lee
Quote Reply
Re: Problem with linksid.txt In reply to
 
Yes, of course. I even can say "I do it everytime" :-)
And it works, till ...it will no more and starts againn from the beginning.




Quote Reply
Re: Problem with linksid.txt In reply to
Well...the problem could be file flocking...

Have you set $db_use_flock variable to 1 in your links.cfg file??

Regards,

Eliot Lee
Quote Reply
Re: Problem with linksid.txt In reply to
 
Yes, it is set to "1".

Regards,

ver2

Quote Reply
Re: Problem with linksid.txt In reply to
Do you have any Mods installed in your add.cgi script? (Like Add Confirmation).

If so, there could be a problem in the way you have set up your forms.

Try using hidden fields in your add_error.html template file (and add_confirm.html if you ae using the Add Confirmation Mod):

Code:

<input type="hidden" name="ID" value="<%ID%>">


Other than that...I don't know what to tell you...

Best of luck!

Regards,

Eliot Lee