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 9217 Jun 10, 2002, 2:51 PM
Thread Re: [stilton] Can't call method "File_RelativePath" Picture Error
Andy 9108 Jun 11, 2002, 1:58 AM
Thread Re: [Andy] Can't call method "File_RelativePath" Picture Error
Paul 8972 Jun 11, 2002, 2:06 AM
Thread Re: [Paul] Can't call method "File_RelativePath" Picture Error
stilton 8976 Jun 11, 2002, 5:35 AM
Thread Re: [stilton] Can't call method "File_RelativePath" Picture Error
Paul 8977 Jun 11, 2002, 6:15 AM
Thread Re: [Paul] Can't call method "File_RelativePath" Picture Error
stilton 9049 Jun 12, 2002, 4:58 PM
Thread Re: [stilton] Can't call method "File_RelativePath" Picture Error
stilton 8958 Jun 21, 2002, 1:50 PM
Thread Re: [stilton] Can't call method "File_RelativePath" Picture Error
courierb 8872 Nov 7, 2002, 7:42 PM
Thread Re: [courierb] Can't call method "File_RelativePath" Picture Error
Nomada 8391 Feb 22, 2004, 7:22 AM
Thread Re: [Nomada] Can't call method "File_RelativePath" Picture Error
afinlr 8409 Feb 22, 2004, 7:50 AM
Thread Re: [afinlr] Can't call method "File_RelativePath" Picture Error
Nomada 8437 Feb 22, 2004, 10:20 AM
Post Re: [Nomada] Can't call method "File_RelativePath" Picture Error
afinlr 8446 Feb 22, 2004, 10:23 AM
Thread Re: [Nomada] Can't call method "File_RelativePath" Picture Error
Payooo 8429 Feb 22, 2004, 11:22 AM
Thread Re: [Payooo] Can't call method "File_RelativePath" Picture Error
Karen 8441 Feb 22, 2004, 11:44 AM
Post Re: [Karen] Can't call method "File_RelativePath" Picture Error
Payooo 8422 Feb 22, 2004, 1:08 PM