Gossamer Forum
Home : Products : DBMan : Customization :

Mod Problems Topic #2 with Seperate txt files!

Quote Reply
Mod Problems Topic #2 with Seperate txt files!
::Mod Problems Post #2 w/ seperate text files!
OK, for those ppl that need to have everything:
I get a "Internal DBMan Script" Message.
Debug doesn't work, even if I move it higher.
All files are CHMOD'ed properly.
All files are uploaded as ASCII.
::Files
=>http://battlestar.net-games.com/db.txt
=>http://battlestar.net-games.com/default.txt
=>http://battlestar.net-games.com/html.txt
::Questions
=>Why doesn't it work?
=>Can you help me?
::Thanks
=>MaGmA
Quote Reply
Re: Mod Trouble Part 2 Please Help =/ In reply to
Now, what Mod have you installed? And how is this Thread different from the earlier one you posted? It would be very helpful if you would simply provide links to text copies of your files in a publicly accessible directory in your web server. It is difficult to read a long set of codes in these forums. Wink

Regards,

Eliot Lee
Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
OK, I did what you asked.

Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
Try the following:

1) Check the Perl Path in the db.cgi file.
2) Change the following variable config in the db.cgi file:

Code:

$db_script_path = ".";


to the following:

Code:

$db_script_path = "/absolute/path/to/cgi-bin/dbman";


Change /absolute/path/to/ to your ABSOLUTE PATH.

3) Check the syntax of your db.cgi script via telnet:

a) Connect to the directory where the db.cgi file is located:

Code:

cd /cgi-bin/dbman


b) Check the syntax of the db.cgi file:

Code:

perl -c db.cgi


4) Check your Perl error log.

IMHO, this seems more like an Installation problem than a "customization" or "modification" issue. Wink

Regards,

Eliot Lee
Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
Hi Magma - this is definitely a modification/customization issue and not an installation issue. Please do not repost in the installation forum.

You have not properly defined things in your default.cfg file. In your other post, I had suspected something along that line but not having access to view the entire file rather than just the snippet provided, couldn't say for sure that was the problem.

In your field definitions, you have included the options but you have not defined those options further down in the file. You need to modify the following areas of your file to reflect your field options:

# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
Category => 'General,Configuration Management,Project Management,Process Improvement,Standards,Testing & Quality Assurance',
Type => 'Web,Newsgroup,Mailing List,FTP,Gopher'
);

# Radio fields. Field name => comma seperated list of radio buttons.
%db_radio_fields = ( Validated => 'Yes,No' );

# Checkbox fields. Field name => Checkbox value.
%db_checkbox_fields = ( Popular => 'Yes' );

~ Karen

Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
Hmmm, I edited those fields Karen, but it still doesn't work. I have uploaded the new default.cfg as a txt, just use the same link as above in first post.

Thanks for you help - Magma

Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
Getting somewhat closer Magma :-) You've listed options for the selects under %db_select_fields but you're calling the options via &build_checkbox_field in html.pl. Try changing one or the other.


After making the changes, please save a fresh copy of each of the three files and upload them again to the same file location where they can be viewed.
Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
Well, I changed those, but it still doesn't work.
I uploaded the knew txt files too.

ThanX for the help - Magma

Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
Hi Magma, I was able to get your files working on a test server by adding the missing single quote on the date field.

LastLogged => [12, 'date', 40, 255, 0, '&get_date', '']

With that correction, you should be on your way.

Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
LoL, I saw that too, but didn't think it mattered because thats how it was in the demo =/. Oh well. Thanks for all the help, BUT one more thing:
When I click on "add", the date isn't automatically inserted, instead it says &get_date.

Thankx For All The Help! - Magma

Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
Magma, by removing the single quotes, I am able to get the date displayed in the add record function.
LastLogged => [12, 'date', 40, 255, 0, &get_date, '']

Sent you a note by private message too. Check private by using the options at the top of the forum display.
Quote Reply
Re: Mod Problems Topic #2 with Seperate txt files! In reply to
OK Karen! It works!
Thanx alot!
-Magma