Gossamer Forum
Quote Reply
internal server error
Hi,

I installed the favorites.cgi

http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=250441#250441

When I run this I get an internal server error.

Error log is here
-----------------
[Wed Sep 10 19:08:17 2003] [error] [client 213.84.144.67] malformed header from
script. Bad header=Can't return outside a subrout: /usr/cgiwrap/cgiwrap.

I am on a cobalt.

thanks,
ron

BlushSmile
Quote Reply
Re: [rsahertian] internal server error In reply to
Code looks like it is messed up. Looks like its doing something like;

... rest of script

return $val;

.. with the 'return' being outside a subroutine, which would cause it not to work. I doubt it has anything to do with the fact you are on a cobalt though :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [rsahertian] internal server error In reply to
O, try changing;

if (!$USER) {print $IN->redirect( Links::redirect_login_url);return;}

to

if (!$USER) {print $IN->redirect( Links::redirect_login_url); exit;}

Not quite sure why a return was being called there. You could probably even get away without the 'exit', but I'd leave it in there just for safe measure.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] internal server error In reply to
amazing, really amazing...

works now!!!!!

you're so fast with a proper solution Andy...

Thanks,
Ron
Quote Reply
Re: [rsahertian] internal server error In reply to
Glad to hear it :) I'm amazing it worked on anyones sites before Crazy

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!