Gossamer Forum
Home : Products : Others : Fileman :

Switch to text does not work

Quote Reply
Switch to text does not work
I just installed fileman 2.0.0 and tried to edit a file (index.html)

File Editor: index.html -

I hit the Switch to Text button and get the following error:

A fatal error has occured:

GT::FileMan::Commands: Unable to autoload function: cmd_editor. Reason: Global symbol "$old" requires explicit package name at (eval 8) line 56.


Please enable debugging in setup for more details.

I can't find how to turn on debugging and not sure what it is looking for here.

Thanks

Tom
Quote Reply
Re: [tcooke] Switch to text does not work In reply to
Hi,

Could you move the command at row 918 to 915 in Commands.pm, it should be:
...
my $old = $self->{cgi}->{fileold};
my $msg = _valid_name_check($filename);
($msg) and return $self->cmd_show({msg => $msg, old => $old});

$self->{cgi}->{content} = $self->{in}->html_escape($data);

my $file = $self->_safe_file($filename,{ fullfile => 1, exist => 1});
....


Cheers,
TheStone.




B.

Last edited by:

TheStone: Dec 18, 2001, 2:45 PM
Quote Reply
Re: [TheStone] Switch to text does not work In reply to
That worked but for me it was line 896 moving to 893.
Quote Reply
Re: [tcooke] Switch to text does not work In reply to
Just thought I'd weigh in: Same problem; solution worked, but with the amended line numbers.Crazy

Thanks, all.
Quote Reply
Re: [bonwag] Switch to text does not work In reply to
same for me... 896 to 893 solved Switch to Text and Switch to HTML problems.. Thanks!

Soil
Quote Reply
Re: [tcooke] Switch to text does not work In reply to
Smile YEAH...It worked!!! Moved line 896 to line 893... Wink Thanks a lot!

Tommy Evans Cool
Victory Heights Baptist Church