Gossamer Forum
Home : Products : Gossamer Links : Discussions :

$TPL was imported by Links, but is no longer used

Quote Reply
$TPL was imported by Links, but is no longer used
What does this message mean and how can I get rid of it?

I get it every time when Links builds the home page and the what's new index page.
I'd like to do builds via cron and pipe the script's output to a logfile instead of let the cron daemon mail it to me, because I dont't wish to receive a mail on every build.
But because of this error message I do get the mails.

I looked at the templates involved but couldn't find which of the tags may the reason for the message...

Any ideas?
Thank you

Andreas
http://www.archaeologie-online.de
Quote Reply
Re: $TPL was imported by Links, but is no longer used In reply to
This is a change GT made, and which drove me a bit crazy too. Alex has a fix for it, and may have to release '204b' version. Some of the changes make life easier for links users, as Links talks-back a little better.

$TPL is an internal configuration variable, and some tweaks were made to config set ups. $TPL was an odd object, I never quite understood when it was required and when it wasn't <G>



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: $TPL was imported by Links, but is no longer used In reply to
Hi,

You shouldn't see $TPL anywhere in your code except for in Links.pm and that warning. I've just fixed up a few remaining places it was being referenced. Basically just deleting it wherever you see it will fix things.

$TPL was a global template object that is no longer used as it would cause problems when a template ran a function that parsed something else.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: $TPL was imported by Links, but is no longer used In reply to
Alex, $TPL is imported in the days old plugin. I should update that as soon as possible.

Quote Reply
Re: $TPL was imported by Links, but is no longer used In reply to
Hi,

it is used in some other plugins, too.
Also when I commented out the line in Links.pm where $TPL is referenced, in the Admin -> Plugins I got lots of error messages on the uninstalled plugins list (it said that Install.pm couldn't be parsed or something - don't remember that exactly because I immediately removed the comment sign from that line in Links.pm).


Andreas
http://www.archaeologie-online.de
Quote Reply
Re: $TPL was imported by Links, but is no longer u In reply to
I'm finding $TPL in a bunch of places, including:
Browser.cgi, mailer.cgi, db.cgi, Template.pm, Browser.pm, Tools.pm, Template.html

I don't understand why it's in all those places since I'm running 2.0.4. I just now looked at my error.log and it's filled with that error. What is the process to track it down and eliminate it?

I can't imagine commenting it out in the more than 60 places it occurs...

Bryan

Quote Reply
Re: $TPL was imported by Links, but is no longer u In reply to
GT is in the process of cleaning it up, but you can get rid of the error message by editing the top of Links.pm, and just emptying out the {} so it does nothing, rather than print a warning.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Plugins:http://LinkSQL.com/plugin
Quote Reply
Re: $TPL was imported by Links, but is no longer u In reply to
Hi,

browser.cgi, db.cgi, and mailer.cgi are no longer used. It's all using admin.cgi. I've noticed a couple spots that are still using $TPL, and we'll remove those asap.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: $TPL was imported by Links, but is no longer u In reply to
Alex,

This brings up something.... for those of us using this since the 1.0 version, what files can we get rid of now?

Windows clutter is bad enough... I don't want to start getting into Unix clutter :)

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Plugins:http://LinkSQL.com/plugin