Gossamer Forum
Home : Products : Links 2.0 : Discussions :

non-template build problem

Quote Reply
non-template build problem
I'm trying to convert from the templates to the coded build, I've been very careful to put the html in the proper places, but obviously I have missed something.

I get this error:

Error including libraries: In string, @staff now must be written as \@staff at /opt2/home3/my_domain/public_html/cgi/links/admin/site_html.cgi line 145, near "@staff"
Compilation failed in require at /home3/my_domain/public_html/cgi/links/admin/nph-build.cgi line 33.

Make sure they exist, permissions are set properly, and paths are set correctly.


What does this mean?

Line 145 of site_html.cgi is $output = qq~


sub site_html_home {
# --------------------------------------------------------
# This routine will build a home page. It is not meant to have any
# links on it, only subcategories.
#
# $category : The list of subcategories.
# $time : The current time.
# $date : The current date.
# $grand_total : The total number of links.
#

my ($output);

$output = qq~
<$dtd>

<html>

<head>

Quote Reply
Re: non-template build problem In reply to
Try reading the error properly......it give a big enough hint doesn't it?

Find where it says @staff and escape it so it reads \@staff

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: non-template build problem In reply to
Try reading my post and looking at the code I provide.

There is no "@staff" at that particular line of code, nor near it.

Thank you, have a nice day.



Quote Reply
Re: non-template build problem In reply to
I did read your post and look at your code.

If the error says that @staff needs to be escaped then that is what you have to do!

Find where it says @staff and change it to \@staff like I said.

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: non-template build problem In reply to
Look, I don't need your smart answer.

I've already searched for "@staff", and it doesn't exist in the code, certainly not near line 145.

If you haven't something useful to say, why waste your time?

Quote Reply
Re: non-template build problem In reply to
....and I don't need to help you if you continue to speak like that.

It wasn't a "smart" answer.....it was what you need to do to fix the error!!

I have told you the answer twice....I don't know what else you want me to do or say.

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: non-template build problem In reply to
Paul, thanks for your input, but as I *said*, I have...

1) Checked the code around line 145.
2) Checked the code for the entire script.

And, as it happens, I've checked ALL the code for ALL the scripts, and not found "@staff".

So you see, I thank you for your input, but it *does not* answer the question.

J

Quote Reply
Re: non-template build problem In reply to
If you have telnet access try checking the syntax of the script and see what it says.

There must be an @staff somewhere in the script...you may have over looked it.

If you send me a copy of the script I will have a look for you.

Paul Wilson.
new - http://www.wiredon.net