Gossamer Forum
Home : Products : Gossamer Links : Discussions :

See this? Corrupt file?

Quote Reply
See this? Corrupt file?
Anyone know what this means;

A fatal error has occured:GT::SQL::Table (3177): Unknown method 'get_categories' called at (eval 22) line 42.
Please enable debugging in setup for more details.

I'm assuming it is something to do with the GT::SQL module. I got debuggin on, but it doesn't seem to be helping much Frown Anyone had this before?

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] See this? Corrupt file? In reply to
Hi Andy,

The 'get_categories' function is in Links::Link. You should re-check your subclass in the file prefix_Links.def . It should look like this:

Code:
'table' => {
'prefix_Links' => 'Links::Link'
}

Cheers,
jean@gossamer-threads.com
Quote Reply
Re: [jean] See this? Corrupt file? In reply to
this is the file in question... where is it causing the error?

{
'index' => {
'stndx' => [
'Status'
],
'popndx' => [
'isPopular'
],
'userndx' => [
'LinkOwner'
],
'newndx' => [
'isNew'
],
'urlndx' => [
'URL'
],
'valndx' => [
'isValidated'
]
},
'subclass' => {
'table' => {
'links_Links' => 'Links::Link'
},
'html' => {
'links_Links' => 'Links::Link::HTML'
}
},
'cols' => {
'Title' => {
'type' => 'VARCHAR',
'pos' => '2',
'form_type' => 'TEXT',
'binary' => '0',
'default' => '',
'weight' => '3',
'form_display' => 'Title',
'not_null' => '1',
'size' => '100',
'form_size' => '20'
},
'Date_Checked' => {
'form_display' => 'Date Checked',
'type' => 'DATETIME',
'pos' => '16',
'not_null' => '0',
'form_type' => 'DATE',
'default' => '',
'form_size' => '20'
},
'Status' => {
'type' => 'SMALLINT',
'pos' => '15',
'form_type' => 'TEXT',
'default' => '0',
'zerofill' => '0',
'form_display' => 'Status',
'regex' => '^\-?\d+$',
'not_null' => '1',
'unsigned' => '0',
'form_size' => '10'
},
'Description' => {
'type' => 'TEXT',
'pos' => '7',
'form_type' => 'TEXTAREA',
'default' => '',
'weight' => '1',
'form_display' => 'Description',
'not_null' => '0',
'form_size' => '30'
},
'Rating' => {
'type' => 'FLOAT',
'pos' => '13',
'form_type' => 'TEXT',
'default' => '0.00',
'display' => '12',
'zerofill' => '0',
'form_display' => 'Rating',
'regex' => '^\d+\.?\d*$',
'not_null' => '1',
'form_size' => '10',
'decimal' => '2'
},
'isChanged' => {
'values' => [
'No',
'Yes'
],
'form_display' => 'isChanged',
'type' => 'ENUM',
'pos' => '10',
'not_null' => '1',
'form_type' => 'SELECT',
'default' => 'No'
},
'isNew' => {
'values' => [
'No',
'Yes'
],
'form_display' => 'isNew',
'type' => 'ENUM',
'pos' => '9',
'not_null' => '1',
'form_type' => 'SELECT',
'default' => 'No'
},
'Add_Date' => {
'form_display' => 'Add Date',
'type' => 'DATE',
'pos' => '5',
'not_null' => '1',
'form_type' => 'DATE',
'default' => '0000-00-00',
'form_size' => '20'
},
'Impression' => {
'file_save_scheme' => 'HASHED',
'type' => 'TEXT',
'pos' => '21',
'file_save_in' => '',
'form_type' => 'TEXT',
'default' => '',
'weight' => '',
'form_display' => 'Impressions',
'regex' => '',
'not_null' => '0',
'form_size' => '12'
},
'isValidated' => {
'values' => [
'No',
'Yes'
],
'form_display' => 'isValidated',
'type' => 'ENUM',
'pos' => '12',
'not_null' => '1',
'form_type' => 'SELECT',
'default' => 'Yes'
},
'Contact_Name' => {
'type' => 'VARCHAR',
'pos' => '18',
'form_type' => 'TEXT',
'binary' => '0',
'default' => '',
'form_display' => 'Contact Name',
'not_null' => '0',
'size' => '255',
'form_size' => '20'
},
'ID' => {
'type' => 'INT',
'pos' => '1',
'form_type' => 'TEXT',
'default' => '',
'zerofill' => '0',
'form_display' => 'ID',
'regex' => '^\d+$',
'not_null' => '1',
'unsigned' => '1',
'form_size' => '10'
},
'AffilLink' => {
'file_save_scheme' => 'HASHED',
'type' => 'TEXT',
'pos' => '20',
'file_save_in' => '',
'form_type' => 'TEXT',
'default' => '',
'weight' => '',
'form_display' => 'Affiliate Image',
'regex' => '',
'not_null' => '0',
'form_size' => '12'
},
'Votes' => {
'type' => 'SMALLINT',
'pos' => '14',
'form_type' => 'TEXT',
'default' => '0',
'zerofill' => '0',
'form_display' => 'Votes',
'regex' => '^\d+$',
'not_null' => '1',
'unsigned' => '1',
'form_size' => '10'
},
'Contact_Email' => {
'type' => 'VARCHAR',
'pos' => '19',
'form_type' => 'TEXT',
'binary' => '0',
'default' => '',
'form_display' => 'Contact Email',
'not_null' => '0',
'size' => '255',
'form_size' => '20'
},
'URL' => {
'type' => 'VARCHAR',
'pos' => '3',
'form_type' => 'TEXT',
'binary' => '0',
'default' => 'http://',
'weight' => '1',
'form_display' => 'URL',
'regex' => '^\w+:',
'not_null' => '1',
'size' => '255',
'form_size' => '20'
},
'Timestmp' => {
'type' => 'TIMESTAMP',
'pos' => '17',
'form_type' => 'DATE',
'default' => '',
'form_display' => 'Timestamp',
'not_null' => '0',
'time_check' => '1',
'form_size' => '20'
},
'Hits' => {
'type' => 'SMALLINT',
'pos' => '8',
'form_type' => 'TEXT',
'default' => '0',
'zerofill' => '0',
'form_display' => 'Hits',
'regex' => '^\d+$',
'not_null' => '1',
'unsigned' => '0',
'form_size' => '10'
},
'LinkOwner' => {
'type' => 'VARCHAR',
'pos' => '4',
'form_type' => 'TEXT',
'binary' => '0',
'default' => 'admin',
'form_display' => 'LinkOwner',
'not_null' => '1',
'size' => '50',
'form_size' => '20'
},
'view' => {
'file_save_scheme' => 'HASHED',
'type' => 'TEXT',
'pos' => '22',
'file_save_in' => '',
'form_type' => 'TEXT',
'default' => '',
'weight' => '',
'form_display' => 'Number of Impressions',
'regex' => '',
'not_null' => '0',
'form_size' => '12'
},
'Mod_Date' => {
'form_display' => 'Mod Date',
'type' => 'DATE',
'pos' => '6',
'not_null' => '1',
'form_type' => 'DATE',
'default' => '0000-00-00',
'form_size' => '20'
},
'isPopular' => {
'values' => [
'No',
'Yes'
],
'form_display' => 'isPopular',
'type' => 'ENUM',
'pos' => '11',
'not_null' => '1',
'form_type' => 'SELECT',
'default' => 'No'
}
},
'fk' => {
'Links_Users' => {
'LinkOwner' => 'Username'
},
'links_Users' => {
'LinkOwner' => 'Username'
}
},
'ai' => 'ID',
'fk_tables' => [
'Links_Changes',
'Links_CatLinks',
'Links_Verify',
'links_Changes',
'links_CatLinks',
'links_Verify'
],
'pk' => [
'ID'
],
'unique' => {}
};
Quote Reply
Re: [jean] See this? Corrupt file? In reply to
Is this the part you are refering to;

'subclass' => {
'table' => {
'links_Links' => 'Links::Link'
},
'html' => {
'links_Links' => 'Links::Link::HTML'
}
},
'unique' => {}
};


Unimpressed

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] See this? Corrupt file? In reply to
Can you post the stack trace part of the debug?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] See this? Corrupt file? In reply to
Don't worry. Got it fixed. Just had to overwrite it with a backup .def file.

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!