Gossamer Forum
Home : Products : DBMan : Installation :

new install with short-long mod should be straight forward ...

Quote Reply
new install with short-long mod should be straight forward ...
Hi all,
Have installed DBMan on a number of occassions but am really tossed with JPD's Short-Long mod. I'm assuming it will 'bolt straight on' when replacing the original html.pl

Downloaded a fresh original version of DBMan and set it up and no problem runs fine. Then used the user-friendly version on html.pl and that works fine. Then get JPDs short-long mod and nothing - blank 'error' screen. Even when Debug mode is switched on, all I get is "DBMan encountered an internal error. Please enable debugging to view."

So next I get JPDs copy-n-paste Short-Long mods for Alex's original html.pl file ( http://www.jpdeni.com/dbman/Mods/short_change.txt ) - and that works fine - no problems. However this one ( http://www.jpdeni.com/dbman/Mods/short.txt ) just does not work.

What am I missing here? Are there any changes that need to be made in the 'user friendly short long' html.pl file that I am missing?

All paths and permissions are fine in the other files. All files being used are original and non customised ... HELP?
Quote Reply
Re: [chasau] new install with short-long mod should be straight forward ... In reply to
I'm not aware of anyone having problems with
http://www.jpdeni.com/dbman/Mods/short.txt

Can you check your error log to see what error message if any appears? You might also move the line in your .cfg file:

$db_debug = 0;

above the section:

# File and URL's

in case there is an error within your .cfg file

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] new install with short-long mod should be straight forward ... In reply to
Thanks for being on-board LoisC.

OK - now things are starting to happen since shifting $db_debug = 0;
to above
# File and URL's

DBMan encountered an internal error.

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Missing right curly or square bracket at ./html.pl line 816, at end of line
(Might be a runaway multi-line || string starting on line 814)
syntax error at ./html.pl line 816, at EOF

........... the last 10 lines on the html.pl mod are ....

# < -- Start page text -- >
print qq|
<$font><P>Search the database for the records you wish to modify or
<A HREF="$db_script_link_url&modify_form=1&$db_key=*">list all</a>:</p>
|;
# < -- End page text -->

print qq|
<form action="$db_script_url" method="GET" name="form1">
|;


......... any ideas????
Quote Reply
Re: [chasau] new install with short-long mod should be straight forward ... In reply to
Forgot to mention .... no clues in the error log. Just a couple of notes logging my previous successful two logins using the original html.pl.
Quote Reply
Re: [chasau] new install with short-long mod should be straight forward ... In reply to
Okay, you would just need to add a right curly bracket at the end of that sub after:

print qq|
<form action="$db_script_url" method="GET" name="form1">
|;

} # add this

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] new install with short-long mod should be straight forward ... In reply to
Ok have done that and now I get ....


DBMan encountered an internal error.

CGI ERROR
==========================================
Error Message : fatal error: Undefined subroutine &main::html_login_form called at /home/auscity.com.au/cgi-bin/dbman/db.cgi line 82.

Script Location : /home/auscity.com.au/cgi-bin/dbman/db.cgi
Perl Version : 5.006
Setup File : default.cfg

..................
Remember these are all the original files - I double checked that before I got onto the forum.
Quote Reply
Re: [chasau] new install with short-long mod should be straight forward ... In reply to
It looks like the short.txt doesn't contain all the subs for the section:

##########################################################
## Authentication ##
#########################################################

Perhaps you should compare this mod with the original html.pl file to be sure you have all the subs you will need.

I just compared with one of my files and it seems that the following are also missing:

sub html_modify_form
sub html_modify_form_record
sub html_modify_success
sub html_modify_failure
sub html_login_form
sub html_login_failure
sub html_admin_display
sub html_unauth
sub html_signup_form
sub html_signup_success
sub html_unkown_action

At one point JPDeni lost all the files on her server and perhaps when she uploaded copies people sent her this version was incomplete. I didn't realize this as I download that version a long time ago myself.

I'll attach the missing subs. Please note they may be somewhat modified for my version of the script.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/

Last edited by:

LoisC: May 14, 2002, 11:58 PM
Quote Reply
Re: [LoisC] new install with short-long mod should be straight forward ... In reply to
Thanks kindly LoisC ... I agree at this point - that must be the problem.

Now, any ideas on how I can get a recent copy of the file that works. The file being 'User Friendly html.pl with the 'short-long display' incorporated.

BTW, my email is: auscity@auscity.com.au
Quote Reply
Re: [LoisC] new install with short-long mod should be straight forward ... In reply to
Thanks for the attachmnent LoisC .... I now see them. Will let you know how I got on. Thanks again.
Quote Reply
Re: [LoisC] new install with short-long mod should be straight forward ... In reply to
S-U-C-C-E-S-S LoisC!!!

For the benefit of other readers, all I did was add a '}' at the end of the file and then pasted your attachment underneath.

Is it kool to leave the completed short.txt file available for download from our own server until JPD can make the amendments?
Quote Reply
Re: [chasau] new install with short-long mod should be straight forward ... In reply to
I sent JPDeni an email last night and she responded saying that the full file is available as:

http://www.jpdeni.com/dbman/Mods/short_html_pl.txt

She has changed the links in the Resource Center to that file and I will make any changes to the FAQ to point to the file above.

Glad you are up and running !!

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/