Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Error using different template

Quote Reply
Error using different template
Hello all,

I just make a template folder for php and named it as "jp_php".

I call the like this:

http://www.site.com/page.php?t=jp

But there is an error messgae on top of the page.

Warning: extract() [function.extract]: First argument should be an array in /path/admin/Links/PHP/Links.inc.php on line 201

Does any body know what's going wrong? I can't use different tempalte for php?

Thanks for any comments.
Quote Reply
Re: [maxbear] Error using different template In reply to
It looks like the error is happening on this line:
Code:
extract($TPL_GLOBALS[$template_set]);
Which from the previous few lines, should only error if you don't have a globals.txt. You should be able to fix it by either creating an empty globals.txt file, or by changing the above line to:
Code:
if (isset($TPL_GLOBALS[$template_set])) {
extract($TPL_GLOBALS[$template_set]);
}

Adrian