Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Can't call method "File_RelativePath" Picture Error

Quote Reply
Can't call method "File_RelativePath" Picture Error
Hello,

I've switched servers again and now I'm having trouble with uploading pictures. No matter what I seem to try, I get this:

Can't call method "File_RelativePath" on an undefined value at (eval 30) line 3.


In my globals, I'm using this:

sub {
my $tags = shift;
my $file = $DB->table('Links')->file_info('ColumnName', $tags->{ID}) or return "Link ID $tags->{ID} does not have a file attached.";
return $file->File_RelativePath();
}


In the Link Table, I have a column name as MainPic, Form type is File, Save Method is Simple, and the Save Path is an Absolute Path which it does recognize in during the link setup properties. I had this working before, so the codes should work ok still, even on a new server....or so I thought.

Any help on this would be Greatly Appreciated!
Perl Hopefull
Subject Author Views Date
Thread Can't call method "File_RelativePath" Picture Error stilton 6045 Jun 10, 2002, 2:51 PM
Thread Re: [stilton] Can't call method "File_RelativePath" Picture Error
Andy 6009 Jun 11, 2002, 1:58 AM
Thread Re: [Andy] Can't call method "File_RelativePath" Picture Error
Paul 5897 Jun 11, 2002, 2:06 AM
Thread Re: [Paul] Can't call method "File_RelativePath" Picture Error
stilton 5905 Jun 11, 2002, 5:35 AM
Thread Re: [stilton] Can't call method "File_RelativePath" Picture Error
Paul 5900 Jun 11, 2002, 6:15 AM
Thread Re: [Paul] Can't call method "File_RelativePath" Picture Error
stilton 5967 Jun 12, 2002, 4:58 PM
Thread Re: [stilton] Can't call method "File_RelativePath" Picture Error
stilton 5881 Jun 21, 2002, 1:50 PM
Thread Re: [stilton] Can't call method "File_RelativePath" Picture Error
courierb 5792 Nov 7, 2002, 7:42 PM
Thread Re: [courierb] Can't call method "File_RelativePath" Picture Error
Nomada 5320 Feb 22, 2004, 7:22 AM
Thread Re: [Nomada] Can't call method "File_RelativePath" Picture Error
afinlr 5323 Feb 22, 2004, 7:50 AM
Thread Re: [afinlr] Can't call method "File_RelativePath" Picture Error
Nomada 5361 Feb 22, 2004, 10:20 AM
Post Re: [Nomada] Can't call method "File_RelativePath" Picture Error
afinlr 5370 Feb 22, 2004, 10:23 AM
Thread Re: [Nomada] Can't call method "File_RelativePath" Picture Error
Payooo 5341 Feb 22, 2004, 11:22 AM
Thread Re: [Payooo] Can't call method "File_RelativePath" Picture Error
Karen 5371 Feb 22, 2004, 11:44 AM
Post Re: [Karen] Can't call method "File_RelativePath" Picture Error
Payooo 5357 Feb 22, 2004, 1:08 PM