Gossamer Forum
Home : Products : Links 2.0 : Customization :

Problem with Multi Cat Mod.

Quote Reply
Problem with Multi Cat Mod.
Hi I’m trying to install the Multiple category mod I found (here)

I followed all the instructions and it goes wrong when I put in this part of the code:

my $ext = ".html";
if ($cat_template) {
$cattemplate = "$cat_template$ext";
}
else {
$cattemplate = 'category.html';
}

I have given all the categories "category" as a template in the database.

So it should be category.html
It actually is.
But the file can't be found according to this error i keep getting.
CGI ERROR ========================================== Error Message : fatal error: Template: Can't find template: /home/fmwebgid/public_html/cgi-bin/admin/templates/category .html at /home/fmwebgid/public_html/cgi-bin/admin/Template.pm line 41.

(which is:
-e $file or (&error('NOTEMPLATE', $file) and return undef);
The NOTEMPLATE error as far as I can see)

If I replace "$cat_template$ext" with "category.html" it works as normal.

Can anybody help me solve the problem?
I looked all over the forum and I didn't see similar problems.

Thanks!

Last edited by:

max sonnen: Jun 14, 2005, 12:02 PM
Quote Reply
Re: [max sonnen] Problem with Multi Cat Mod. In reply to
Looking at your error message, notice: category .html

There should not be a space between 'category' and '.html'. See if you can track down where that gap is coming from...


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Problem with Multi Cat Mod. In reply to
Thanks that is sorted out now.

I found out what is going wrong.
(I didn't install the script myself I'm just making some upgrades myself)

When I use the build all function. The template category.html used is not in the
/public_html/cgi-bin/admin/template directory

But somehow it is shortcutted to the
/public_html/cgi-bin directory instead


(so installing a script that has problems finding a file while it can't even use the file doesn't make sense)


Is this a setting and where can I change it back to the good directory?

Last edited by:

max sonnen: Jun 14, 2005, 2:45 PM
Quote Reply
Re: [max sonnen] Problem with Multi Cat Mod. In reply to
Not quite sure what you're saying. All the paths are defined in links.cfg, take a look in there.


Leonard
aka PerlFlunkie