Gossamer Forum
Home : Products : DBMan : Customization :

Errors in html.pl when html is fine. :(

Quote Reply
Errors in html.pl when html is fine. :(
Hi,

Since finding DBMan, I've set up lots of demos of it so I can get used to it. I've just set up another (an attempt to get work to use it for some of our day to day functions - it's cheaper than what they were proposing) but it won't work. I've looked at the logs and I get the following errors:

Bareword found where operator expected at ./html.pl line 135, near "<P><CENTER><FONT FACE"
(Missing operator before ACE?)
Bareword found where operator expected at ./html.pl line 135, near ""Times New Roman" size"
(Missing operator before size?)
Bareword found where operator expected at ./html.pl line 135, near "2 COLOR"
(Missing operator before COLOR?)
Scalar found where operator expected at ./html.pl line 135, near "<b>$html_title"
(Missing operator before $html_title?)
Bareword found where operator expected at ./html.pl line 135, near "/b></font"
(Missing operator before font?)
Bareword found where operator expected at ./html.pl line 136, near "</td"
(Might be a runaway multi-line // string starting on line 135)
(Missing operator before td?)
Bareword found where operator expected at ./html.pl line 141, near "</TD"
(Might be a runaway multi-line // string starting on line 140)
(Missing operator before TD?)
Bareword found where operator expected at ./html.pl line 158, near "<title>$html_title: Error! $page_title</title"
(Might be a runaway multi-line // string starting on line 143)
(Missing operator before title?)


But the HTML is fine, with no lose pipes or any errors in the HTML, so I can't see a problem. Can anyone give any suggestions?

Thanks in advance!
Quote Reply
Re: [Manawydan] Errors in html.pl when html is fine. :( In reply to
How are you printing? Sounds like you're doing:

print "<P><FONT FACE="arial">";

If so the quotations are causing the problem, try changing to this

print qq|<P><FONT FACE="arial">|;

or

print "<P><FONT FACE='arial'>";

Post your html.pl file here as an attachment if none of these solutions work.
Quote Reply
Re: [Watts] Errors in html.pl when html is fine. :( In reply to
Hi Watts

In Reply To:
How are you printing? Sounds like you're doing:

print "<P><FONT FACE="arial">";

If so the quotations are causing the problem, try changing to this

print qq|<P><FONT FACE="arial">|;

or

print "<P><FONT FACE='arial'>";

Post your html.pl file here as an attachment if none of these solutions work.

I've changed the HTML slightly so that the print qq| and |;'s are around the effected area, but that still doesn't resolve it. I've attached the file to this post.

Apologies for the late response and thanks for looking at this for me.

Cheers!
Quote Reply
Re: [Manawydan] Errors in html.pl when html is fine. :( In reply to
Check this line:

$html_title = 'Pool Manager's Faults';

change it to:

$html_title = "Pool Manager's Faults";

or to:

$html_title = 'Pool Manager\'s Faults';

see if that helps any...
Quote Reply
Re: [Watts] Errors in html.pl when html is fine. :( In reply to
Hi Watts, you wrote:

In Reply To:
Check this line:

$html_title = 'Pool Manager's Faults';

change it to:

$html_title = "Pool Manager's Faults";

or to:

$html_title = 'Pool Manager\'s Faults';

see if that helps any...

That fixes it! Thank you so much for taking the time to look through it - I was really looking in the wrong place!

Thanks again - it's appreciated!