Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Unknown method 'as_url'

Quote Reply
Unknown method 'as_url'
Hi,

I have moved my links installation to a new server.
When I want to display the page of a categoryI have this message:
GT::SQL::Table (5175): Unknown method 'as_url' called at Links::Build::build_category line 622.

line 622 is this one:
my $clean_name = $cat_db->as_url($category->{Full_Name});

I have searched on my prevous installation and the function as_url is not inside GT::SQL::Table but in Links/Table/category.pm

Anybody has an idea?
Quote Reply
Re: [vercyb] Unknown method 'as_url' In reply to
Your Category table def file is probably missing the subclass lines which set up that up. You should have something like this near the end of your Category.def file:
Code:
'subclass' => {
'html' => {
'<prefix>Category' => 'Links::HTML::Category'
},
'table' => {
'<prefix>Category' => 'Links::Table::Category'
}
},

Adrian
Quote Reply
Re: [brewt] Unknown method 'as_url' In reply to
in category.def this piece of code was already present.
I must say that problem is notonly with categoruies but also with links

In Reply To:
Your Category table def file is probably missing the subclass lines which set up that up. You should have something like this near the end of your Category.def file:
Code:
'subclass' => {
'html' => {
'<prefix>Category' => 'Links::HTML::Category'
},
'table' => {
'<prefix>Category' => 'Links::Table::Category'
}
},
Quote Reply
Re: [vercyb] Unknown method 'as_url' In reply to
If you send me admin panel access, I can take a look at it for you.

Adrian