Gossamer Forum
Home : Products : Others : Fileman :

505 error

Quote Reply
505 error
Env:Solaris8, up to snuff patches, Iplanet portal server and gateway, just installed the newest perl5 -V "This is perl, v5.8.0 built for sun4-solaris", old perl was "This is perl, version 5.005_03 built for sun4-solaris". I get the following error when directly excuting fileman which I never heard of before this morning BTW. The guy who installed it is gone so the developers are hovering round me like vultures HELP...
I did change the line if fileman to reflect the perl change, it now reads '/usr/local/bin/perl was that the wrong way to do it, guess so cause I still get the same error.

Bareword found where operator expected at /iplanet/SUNWips/public_html/docuxp/cgi-bin/fileman.cgi line 13, near "/iplanet/SUNWips"(Missing operator before SUNWips?)
syntax error at /iplanet/SUNWips/public_html/docuxp/cgi-bin/fileman.cgi line 13, near "/iplanet/SUNWips"
Execution of /iplanet/SUNWips/public_html/docuxp/cgi-bin/fileman.cgi aborted due to compilation errors.

Thanks
Quote Reply
Re: [fist] 505 error In reply to
A 505 is "HTTP Version Not Supported" - I have never experienceed it before so have no idea what causes it. I'm tempted to say it may be something to do with your browser but I really have no idea.

When you say your perl shebang reads:

/usr/loca/bin/perl

...you have #! there too?
Quote Reply
Re: [Paul] 505 error whoops 500 nerror In reply to
It's a 500 error and yea the bangs there. Sorry for the error.

RichP
Quote Reply
Re: [fist] 505 error whoops 500 nerror In reply to
Can you post the first 20 lines of the fileman.cgi script, that might help!

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [fist] 505 error whoops 500 nerror In reply to
Yep, here it is....

#!/usr/local/bin/perl
#/usr/bin/perl
# ==================================================================
# File manager - enhanced web based file management system
#
# Website : http://gossamer-threads.com/
# Support : http://gossamer-threads.com/scripts/support/
# Revision : $Id: fileman.cgi,v 1.7 2002/05/14 23:44:37 bao Exp $
#
# Copyright (c) 2001 Gossamer Threads Inc. All Rights Reserved.
# Redistribution in part or in whole strictly prohibited. Please
# see LICENSE file for full details.
# ==================================================================
use lib /iplanet/SUNWips/public_html/docuxp/cgi-bin/private/lib;
use strict;
use GT::Base qw/:all/;
use GT::CGI;
use GT::FileMan;
$| = 1;
local $SIG{__DIE__} = \&GT::FileMan::fatal;

main();

sub main () {
#-------------------------------------------------------------------
# Main process
Quote Reply
Re: [fist] 505 error whoops 500 nerror In reply to
Your use lib line is the problem. You don't have quotes around the path.

Last edited by:

Paul: Jan 31, 2003, 11:39 AM
Quote Reply
Re: [fist] 505 error whoops 500 nerror In reply to
OK. You have to add quotes (indicated in red):
Code:
use lib '/iplanet/SUNWips/public_html/docuxp/cgi-bin/private/lib';[/quote]
Ivan
-----
Iyengar Yoga Resources / GT Plugins

Last edited by:

yogi: Jan 31, 2003, 11:44 AM
Quote Reply
Re: [yogi] 505 error whoops 500 nerror In reply to
Almost but not quite :)
Quote Reply
Re: [Paul] 505 error whoops 500 error In reply to
Thanks everyone, that fixed it. That was my first ever cgi edit Sly I have managed to stay away from the stuff so far but it looks like those days are numbered. I was happy just setting up and taking care of the pix's, routers, sun's and adic robotics, hmmmm, maybe I fixed it too quick.

How different is this cgi stuff from shell scripting, looks pretty similar, in defense I guess a trip to B&N is in order this weekend....

Again, thanks alot

RichP
Quote Reply
Re: [fist] 505 error whoops 500 error In reply to
Perl and shell code have their similarities but also their differences (that was such a crap analogy Wink)

I experimented for a while with shell code but found I kept trying to write in perl sub-consciously.

Last edited by:

Paul: Jan 31, 2003, 3:27 PM