Gossamer Forum
Home : Products : DBMan : Installation :

Internal Server Error -- Put text up for help

Quote Reply
Internal Server Error -- Put text up for help
I had my database working well until I tried to add a new field (added to bottom, #52 I think, in the default.cfg file), then I added what I thought would be the correct HTML in the two sections of the html.pl file. I got the server error so I tried backing out what I'd added -- but I still get the same server error. I'm afraid I've got something wrong in my code but I can't see it. Can someone look and see if they see anything wrong?

http://www.thoroughbredchampions.com/html.txt
http://www.thoroughbredchampions.com/default.txt

Thanks!






Quote Reply
Re: Internal Server Error -- Put text up for help In reply to
Hi Victoria, it looks as though the error is in this area of html.pl.

Code:
print qq||;
if ($rec{'Highlights'}) {
print qq|
<TR><TD VALIGN="TOP" COLSPAN=6> <TEXTAREA NAME="Highlights" ROWS="5" COLS="60" WRAP="VIRTUAL" MAXLENGTH="2000">$rec{'Highlights'}</TEXTAREA></TD></TR>
</TABLE>
|;
}
Essentially, what has happened here is that you have closed the if statement but you haven't closed the entire routine. You still need a closing } (right curly bracket) and in reality, you should move your closing table tag outside of the if statement (you need the closing table tag regardless of whether there is text added in the Highlights field.)
Code:
print qq||;
if ($rec{'Highlights'}) {
print qq|
<TR><TD VALIGN="TOP" COLSPAN=6> <TEXTAREA NAME="Highlights" ROWS="5" COLS="60" WRAP="VIRTUAL" MAXLENGTH="2000">$rec{'Highlights'}</TEXTAREA></TD></TR>
|;
}
print qq|</TABLE>|;
}
Also, Victoria, these entries in your html.pl file, print qq||; are the result of an unsolved bug in the configurator. You can safely remove the snippets from your file and reduce all those added lines in your code. Those lines are stating, begin printing (print qq|) and then stop printing (|;) over and over again.


Hope this helps.