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

Error in Syntax??

Quote Reply
Error in Syntax??
Below is the error I recieved:

Error including libraries: syntax error at links.cfg line 184, near "# This routine is for printing a nicer date format on the what's new page. I"
(Might be a runaway multi-line II string starting on line 136)

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

Anyone have any ideas, they would be very appreciated.
Quote Reply
Re: Error in Syntax?? In reply to
Do you have this line before,

Code:
sub long_date {

if the { is missing you will get that error message.
chmod
Quote Reply
Re: Error in Syntax?? In reply to
Copy and paste the line, 184 here.
Quote Reply
Re: Error in Syntax?? In reply to
Copy and Paste the line? The problem is that line 184 is already there? I must not understand what you ment?
Quote Reply
Re: Error in Syntax?? In reply to
What Eddie meant is that you should copy line 184 in your script, and then paste it in this Thread, so that he and others can see the line you are referring to. Smile

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Error in Syntax?? In reply to
Ok here is line 184 and down.

# --------------------------------------------------------
# This routine is for printing a nicer date format on the what's new page. It should
# take in a date in your current format and return a new one.
my $time = shift;
$time = &date_to_unix ($time);
my ($sec, $min, $hour, $day, $mon, $year, $dweek, $dyear, $tz) = localtime $time;
my @months = qw!January February March April May June July August September October November December!;
my @days = qw!Sunday Monday Tuesday Wednesday Thursday Friday Saturday!;
$year = $year + 1900;
return "$days[$dweek], $months[$mon] $day $year";
}

Here is the error message I get when I try to go to the admin.cgi page.

Error including libraries: syntax error at links.cfg line 184, near "# This routine is for printing a nicer date format on the what's new page. I"
(Might be a runaway multi-line II string starting on line 136)

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