Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Can't open for output counter file. Reason: Is a directory

Quote Reply
Can't open for output counter file. Reason: Is a directory
I am getting this error trying to rate.CGI ERROR
==========================================
Error Message : Can't open for output counter file. Reason: Is a directory
Script Location : rate.cgi
Perl Version : 5.00404


I ve somebody can help me, would be greatfull
thanks

Quote Reply
Re: Can't open for output counter file. Reason: Is a directory In reply to
Here is what you need to check:

1) Make sure that your "ratings" directory in your links.cfg file has no trailing slash.

2) Make sure that your "rate" directory in your cgi-bin data directory is set to the following permission:

777 (drwxrwxrwx) =

Owner = Read, Write, Execute
Group = Read, Write, Execute
Everyone = Read, Write, Execute

Make sure you have an index.html file in the "rates" directory that has the following codes:

Code:
<!-- placeholder -->

Make sure that this file is set to the following permissions:

644 (r-w-r--r--) =

Owner = Read and Write
Group = Read
Everyone = Read

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Can't open for output counter file. Reason: Is a directory In reply to
I have the same problem and checked everything Eliot suggested, but the problem persists. Any more suggestions?

Could the parent dir (data) and it's chmod have anything to do with that? (data's chmod restricting rates' chmod)

thanks
Quote Reply
Re: Can't open for output counter file. Reason: Is a directory In reply to
Addition to my previous question:

Im my rates-dir there is no file except index.html . Is the script "rate.cgi" supposed to create the files at the time a link gets rated?
Quote Reply
Re: Can't open for output counter file. Reason: Is a directory In reply to
yea.. the thing is your rate.cgi is not registering the ID.. so it is trying to open the dir as a file because the path is straight to the DIR..

unless you have modded rate.cgi it shouldn't do this

jerry
Quote Reply
Re: Can't open for output counter file. Reason: Is a directory In reply to
Located at least one possible cause: cookies.

When I try to rate a link using the standard layout of the pages everything goes OK. When I use my own layout (which uses a cookie), I get the 'Can't open...'-error.

Can this cookie (used to determine if the visitor has chosen to display a JAVA-applet or not) cause the rate.cgi to malfunction? Maybe it interferes with some env-variable or cookie rate.cgi uses.

Can somebody help me out?