Gossamer Forum
Quote Reply
OOPS!
Hi all, I hope someone can help. All was running great until I added a new category.

Now I get this message...

Error including libraries: syntax error at /home/mygaston/public_html/cgi-bin/links/admin/links.cfg line 22, near "/home/mygaston"
In string, @db_referers now must be written as \@db_referers at /home/mygaston/public_html/cgi-bin/links/admin/links.cfg line 42, near "$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers"

I have been sitting here for 2 hours trying to figure this out trying to make it work. I have de-protected the admin dir. to see if that was a problem. It wasnt- The only thing I can think of is I accidentally uploaded a revised version of links.cfg which may not have been ASCII- because I had seen the error before. I uploaded a fresh (non revised) links.cfg again, and made sure it was ASCII and still got this error.

I have tried for 2 hours to change this string several times to what it's asking for and keep getting the same message. (although one instance asked to change the email to \@mygastom for some reason- I put that in and got no other error for that line)

Doing a search for this error doesnt work because I am pulling threads within irrelavant information.

When the scripts were working perfectly the string was set to @db_referers = (); and I had no problem at all!

I know what the error is telling me to do but its not working! Frown


Quote Reply
Re: OOPS! In reply to
You need to use the following EXAMPLE for the @db_referers = (); array...

Code:

@db_referers = ('domain.com','www.domain.com');


Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: OOPS! In reply to
ok, well I tried that. And I still get the same result.
any suggestions on which domains I should use ie my "homepage"?

what's with the \@db_referers What's the slash have anything to do with?
Ive tried example ('\@domain.com','...) , ('domain... ), (\@'domain...), (\@domain...),

I still get the same error.

Quote Reply
Re: OOPS! In reply to
I dont know how or why I didnt think of this before

# Referers -- which hosts are allowed to add to your database.
@db_referers = ('\@www.domain.com','\@domain.com/'); This was not working at all.

So I changed to

\@db_referers = ();

and now we're back to normal! Does anyone know what might have happened? I never touched any of this part!


Quote Reply
Re: OOPS! In reply to
Why have you got @'s in the domain name within the array??? Frown

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: OOPS! In reply to
1) domain.com is an EXAMPLE
2) You are NOT using the EXAMPLE I gave
3) DO NOT include the @ sign in the array

DO not know how to make this more clear to you...why don't you try using examples given in the forum rather than stubbornly putting your own bad codes?

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: OOPS! In reply to
I dont know why I have the @ there. I dont have a clue.

Error including libraries: syntax error at /home/mygaston/public_html/cgi-bin/links/admin/links.cfg line 22, near "/home/mygaston"
In string, @db_referers now must be written as \@db_referers at /home/mygaston/public_html/cgi-bin/links/admin/links.cfg line 42, near "$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers"

I did try to use EXAMPLE in the code. It didnt like them any way I put them in there - with/without "\ and @" symbol. Anyway I did it, it didnt like the code, no matter what domain name I put there. I was simply under the impression the error was asking for the referrer to be changed to the

As far as improvising- I wouldnt call it that. Above in the error it simply says...
In string, @db_referers now must be written as \@db_referers at /home/mygaston/public_html/cgi-bin/links/admin/links.cfg line 42, near...blah blah...
So I did what it said- I changed line 42 to
\@db_referers ();. Without the example- back to what it was before.

And all is back to how it was before. Working ~PERFECT~
I appreciate your help with this, but you didnt have to get snappy- or at least I took it that way. I did use your EXAMPLE and it was VERY CLEAR what you said to do, but it didnt work- if it is bad code- why does it work?

Quote Reply
Re: OOPS! In reply to
Hi,

The error telling you to escape @db_referers means you have an error further up the code. Check for missing ', " and ;

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: OOPS! In reply to
Thank You! Smile

I had already figured that part out because I was missing some " on the db_script path. But thanks anyway!