Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Why do I get a SYNTAX error when there isn't one?

Quote Reply
Why do I get a SYNTAX error when there isn't one?
Okay guys....I'm ready to slit a knife under the skin of my face and peel it all off....As soon as I add this line...

"recip => [14, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp']"

to my "links.def" file, the whole Links administration utility refuses to load and gives me this message....

CGI ERROR
==========================================
Error Message : fatal error: syntax error at /home/porncrawl/cgi-bin/links/admin/links.def line 37, near "recip"

Script Location : /home/porncrawl/cgi-bin/links/admin/admin.cgi
Perl Version : 5.00503

I HAVE COMPLETELY FOLLOWED ALL THE INSTRUCTIONS FROM
http://www.uv-ray.com/recip_mod/



Quote Reply
Re: Why do I get a SYNTAX error when there isn't one? In reply to
1. Is it the 14th field in your links.def/db?
2. Does the one above it end with a ,

Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Quote Reply
Re: Why do I get a SYNTAX error when there isn't one? In reply to
Obviously not.

"recip => [14, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp']"

should be....

recip => [14, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp']

I like the description of what you are about to do to yourself. Myself and others often feel like that when answering the same questions over and over. LOL



Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Why do I get a SYNTAX error when there isn't one? In reply to
Bah...still doesn't work....added it exactly as you said...

Quote Reply
Re: Why do I get a SYNTAX error when there isn't one? In reply to
I'm sure it will work if you have done it correctly which you must not have done.

ONLY the last field has no trailing comma the rest do.....

Telling us the error you are getting would help!

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Why do I get a SYNTAX error when there isn't one? In reply to
Fixed it....

BUT...

My Reciprocal LINKS mod is still giving me 500 errors....can't seem to establish what the problem is...

Quote Reply
Re: Why do I get a SYNTAX error when there isn't one? In reply to
Post the last 3 field definitions exactly as you have them in links.def (without quotation marks round them!)...

Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Quote Reply
Re: Why do I get a SYNTAX error when there isn't one? In reply to
Shouldn't give 500 errors. Check that you haven't uploaded it in binary. That you've given it the right permissions.

Also make sure you changed:

require "/path/to/links.cfg";
require "/path/to/db_utils.pl";

To the correct paths



If still not working check the code used.

(also in the future any questions on mods are best posted in the customisation forum)

Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml