Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Logo question.....

Quote Reply
Logo question.....
When the users send a Logo attacched to liks, if the logo have this format: logo image.gif and not logo_image.gif or logoimage.gif, I've this error:
Can't open file: /home/mysite/images/logos/6/46-logo image.gif (No such file or directory) at /home/mysite/cgi-bin/admin/GT/SQL/File.pm line 725.
How I can do?
Unimpressed


Thanks in Advance
Bye From Italy

Last edited by:

fabio: Sep 13, 2001, 8:18 AM
Quote Reply
Re: [fabio] Logo question..... In reply to
Someone can Help me????


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] Logo question..... In reply to
Please be patient, you only posted the original question an hour or two ago.

The problem is because the script is looking for /home/mysite/images/logos/6/46-logo due to the space

You should avoid spaces in file names.

If you really want spaces, in File.pm in sub new, under

my ( $pkg, $file, $opt ) = @_;


Try adding.......

$file =~ s/ /%20/g;

Last edited by:

PaulWilson: Sep 13, 2001, 10:45 AM
Quote Reply
Re: [PaulWilson] Logo question..... In reply to
Thanks PaulWilson, but on File.pm there isn't
my ( $pkg, $file, $opt ) = @_;
?????????????????????????????


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] Logo question..... In reply to
There is in the copy Im looking at.

About line 715

What version do you have?
Quote Reply
Re: [PaulWilson] Logo question..... In reply to
My version is 2.5


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] Logo question..... In reply to
Shocked OOPS! That bug snuck in.

Ok. To fix, do the following.

In admin/GT/SQL/File.pm, look for line 525.

You will see one or two calls to the function _file_full_path.

At the last parameter, where it says,

Code:
$fcols{$name}->{file_save_scheme}

Just add a ",1" so that it becomes

Code:
$fcols{$name}->{file_save_scheme},1

Hope this helps,
Aki
Quote Reply
Re: [Aki] Logo question..... In reply to
Thanks Aki now It's all right !!!!!!!
SmileWinkSmile


Thanks in Advance
Bye From Italy