Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Error with add.cgi in 1.11

Quote Reply
Error with add.cgi in 1.11
Have upgraded from 1.1 to 1.11 (with mods) and now complete install the 1.11 again, but i cant run add.cgi:

[Sun Dec 26 05:03:21 1999] HTML_Templates.pm: [Sun Dec 26 05:03:21 1999] HTML_Templates.pm: Undefined subroutine &Links: BSQL::get_date called at admin/Links/HTML_Templates.pm line 57. BEGIN failed--compilation aborted at /usr/local/httpd/cgi-bin/hwf_links/add.cgi line 35.

Someone understand this? The sub get_date is in dbsql - why would it be not found?

Robert
Quote Reply
Re: Error with add.cgi in 1.11 In reply to
I had a look to the code in html_templates in 1.1. There is written:

date=> \&Links: BSQL::get_date,

in 1.11

date=> \&Links: BSQL::get_date(),

May someone tell me, why Alex use the (),
is it simple wrong or has it a special meaning calling a sub with empty ()?
Quote Reply
Re: Error with add.cgi in 1.11 In reply to
did you figure out what was wrong? Or is this
still a problem for you?

------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/







Quote Reply
Re: Error with add.cgi in 1.11 In reply to
the bug is..

in add.cgi.. move

Code:
use Links::DBSQL;

below:

Code:
use Links;

the () is in case you want to send in a date i'm guessing..

jerry


[This message has been edited by widgetz (edited December 27, 1999).]
Quote Reply
Re: Error with add.cgi in 1.11 In reply to
I should really wait a day before downloading the next version :-)
Quote Reply
Re: Error with add.cgi in 1.11 In reply to
The backwards compatibility is for the templates near as I can figure. Two other known changes were date/Add_Date and term/query.

I've wondered why those have been retained, but it's probably more of a development issue needing clean up, and it's better to upgrade the templates all at once, then get bitten by a legacy bug at a later date.

------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/







Quote Reply
Re: Error with add.cgi in 1.11 In reply to
Hi,

You should remove the () from get_date and get_time in the globals() section. This is a bug. I had actually fixed that up two or three hours after I put 1.11 up, and silently switched it. =)

The backward compatibility is so you can use Links 2.0 templates with Links SQL. Links 2.0 templates will have NAME="Contact Name" and NAME="Contact Email" everywhere on the forms, so this is just so people don't need to change it.

Cheers,

Alex
Quote Reply
Re: Error with add.cgi in 1.11 In reply to
same goes for user.cgi..

also.. To Alex:

I don't understand what the

# Backward compatibility

stuff in add.cgi and modify.cgi are.. it seems like you just did that if someone types Contact Name or Email without the _.. ?? Smile

jerry

[This message has been edited by widgetz (edited December 28, 1999).]