Gossamer Forum
Home : Products : DBMan : Customization :

Elliot - records.cgi

Quote Reply
Elliot - records.cgi
I am trying to impliment your records.cgi mod and I am getting a 500 error. The error message is "can't locate /cgi-bin/team/reports/reports.cfg"

The full path to the reports directory is
/home/httpd/virtual-domains/fishhoo/cgi-bin/team/reports
I pasted that path directly from my ftp client. That is the directory that all my DBMan files reside in. It makes no difference if I use the full path or the abreviated path that shows in the error. I still get the 500 error.

Please take a look at the script. You can see it at www.fishhoo.com/records.txt

Maybe you can spot the problem. I was sure hoping to use this mod. It could save me a lot of hand coding.

Thanks lots,

------------------
Will
Webmaster
FishHoo! Search index for Fishermen
www.fishhoo.com


[This message has been edited by willdeb (edited January 19, 2000).]
Quote Reply
Re: Elliot - records.cgi In reply to
You need to use the full absolute path and the file name of the config file in the require line.

That is the only thing that I see that could be causing problems.

You did change the permission of the file to 755,right? And you have the correct Perl Path in the first line, right?

Wink

Best of luck,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: Elliot - records.cgi In reply to
 
Code:
$db_file_name = $db_script_path . "/name_of_database_file.db";

The only place $db_script_path is defined is in db.cgi (at least in an original default setup). Therefore the MOD as posted WILL NOT WORK, I REPEAT, WILL NOT WORK unless someone declares the variable $db_script_path other than in db.cgi which your MOD makes no reference to. I stand by my original premise that records.cgi does not work as posted.




------------------
Regards,
jheath1@home.com
Quote Reply
Re: Elliot - records.cgi In reply to
Never could get this thing to work. Guess I'll have to do it the hard way.

------------------
Will
Webmaster
FishHoo! Search index for Fishermen
www.fishhoo.com
Quote Reply
Re: Elliot - records.cgi In reply to
Very odd, indeed. All I did was copy the codes that Carol (JPDeni) provided for other DBMAN users. Then I added some global variables to make it easier to configure.

I don't see the problem.

Sorry.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: Elliot - records.cgi In reply to
I tried the server path, the url path and that abbreviated path. Nothing worked. I just finished doing it the hard way. http://www.fishhoo.com/..._fishing_reports.htm That took about 2 hours. I'm going to have another question a little later. Not over joyed at the way this is working.

Thanks for your help.

------------------
Will
Webmaster
FishHoo! Search index for Fishermen
www.fishhoo.com
Quote Reply
Re: Elliot - records.cgi In reply to
Will,

I am sorry it is not working. Let me think about what you have done and see what can be changed to make it even more easy for you and others to use.

BTW: If you think that I just threw up codes for the heck of it, just to make a Mod, it does work on my UNIX server...go here:

www.anthrotech.com/cgibin/career/ads/records.cgi

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: Elliot - records.cgi In reply to
I would never think that. I know you better. Heck, I'm one of your biggest fans Wink too.

BTW, it looks good. Just what I was hoping for. Too bad it didn't work on my Unix box.

------------------
Will
Webmaster
FishHoo! Search index for Fishermen
www.fishhoo.com
Quote Reply
Re: Elliot - records.cgi In reply to
 
Code:
$db_script_path = '/absolute/path/to/your/dbman/directory';

Insert the above line into the records.txt MOD up near the top where he declares the rest of the variables. THEN and ONLY THEN will it work.


------------------
Regards,
jheath1@home.com
Quote Reply
Re: Elliot - records.cgi In reply to
Thank you for pointing that out. However, if you notice I am using the variable $db_file_name to open the database file. This is defined in the default.cfg, which IS the required file stated in the records.cgi file.

The codes work fine on my server as the codes are written in the Mod in the Resource Center!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------







[This message has been edited by Eliot (edited January 20, 2000).]
Quote Reply
Re: Elliot - records.cgi In reply to
Thank you. I now realize the problem...That is that I do not use db_script_path in my default.cfg file.

That explains some other glitches users have encountered with my other scripts.

Apologize for the earlier doubt.

But your shouting and personal attacks do nothing, but fuel the fire!

Smile

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------







[This message has been edited by Eliot (edited January 20, 2000).]
Quote Reply
Re: Elliot - records.cgi In reply to
I'm glad you guys are sweet on each other again.



------------------
Will
Webmaster
FishHoo! Search index for Fishermen
www.fishhoo.com
Quote Reply
Re: Elliot - records.cgi In reply to
 
Quote:
Thank you. I now realize the problem...That is that I do not use db_script_path in my default.cfg file.

That explains some other glitches users have encountered with my other scripts.

Apologize for the earlier doubt.

But your shouting and personal attacks do nothing, but fuel the fire!

No problem Eliot, just wanted to set things straight for the other users who might've been having a problem



------------------
Regards,
jheath1@home.com