www.uburst.com www.uburst.com

"ushop_cgiscript.pl generating server error"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"ushop_cgiscript.pl generating server error"
Posted by Henry on Apr-12-00 at 05:50 AM (EST)
Hello,

I'm new to uShop doing my first steps - although
having some experience with other cgi-scripts running on this server.

I have generated the ushop_cgiscript.pl with the
CGI-Wizard and uploaded it as ASCII to the cgi
directory, chmod 755 to it.
Yes the #! is in front of the /cgi/bin/perl
Yes the \ is in front of the mails address @
The sendmail path is like in my other cgi-scripts.
The cgitest.pl is working just fine.

I have generated the orders directory, but
I have not uploaded any other uShop-files so far.
Are there other files needed to do the cgi test ?

I have 2 other working cgi script on www.stgt.net
test.pl and forum.pl the later also use sendmail.

Any help is appreciated

Henry

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: ushop_cgiscript.pl generating s..., Bill Weiner, Apr-12-00, (1)
Re: Sever error in CGI script, henry, Apr-12-00, (2)
Re: Sever error in CGI script, Henry, Apr-12-00, (3)
Re: Sever error in CGI script, Bill Weiner, Apr-12-00, (4)
Re: Sever error in CGI script, Henry, Apr-12-00, (5)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: ushop_cgiscript.pl generating server error"
Posted by Bill Weiner on Apr-12-00 at 08:00 AM (EST)
It sounds like you have done everything right and the fact that you have other CGI scripts running on your server also eliminates some possible problems.

When do you see the "server error"? When just trying to get the copyright page....or not until you actually try placing an order? That is, when you go to the URL of the script on your server, do you successfully get the "uShop Copyright" page similar to when you go to the URL of the script on our site:

http://www.uburst.com/cgi-bin/ushop_cgiscript.pl

Or is that when the server error is generated?

What I think the problem may be is the version of Perl being used. We wrote the uShop CGI script in Perl 4 in anticipation that Perl 5 would be backwards-compatitible...which Perl 5 is supposed to be...however, we have seen some versions of Perl 5 cause problems. (Usually such a problem is indicated by an "incomplete set of headers" error).

In anycase, if possible try using Perl 4 and see if that corrects the problem.

Note that most web hosting providers will provide two paths to Perl...one to Perl 4 and one to Perl 5. For example:

The path to Perl 4 may be:
/usr/bin/perl

While the path to Perl 5 may be:
/usr/local/bin/perl

You can check with your web hosting provider.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Re: Sever error in CGI script"
Posted by henry on Apr-12-00 at 09:12 AM (EST)
Hello Bill,

the error is with the "uShop Copyright" page.
On this Server PERL5 is used. There is no PERL4
available anymore. The old PERL file is also linked to PERL5.

So, you think I have to look for a different server ?

Thanks,
Henry

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "Re: Sever error in CGI script"
Posted by Henry on Apr-12-00 at 09:27 AM (EST)
Bill,

I have installed the ushop_cgiscript.pl on a different server - there it works. So what is
it that does not work with PERL5 (if this is the
reason)?

Henry

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "Re: Sever error in CGI script"
Posted by Bill Weiner on Apr-12-00 at 09:58 AM (EST)
We're not exactly sure. Perl 5 is supposed to be backwards compatible with Perl 4 ... and with some versions of Perl 5, that appears to be true. (Ie. the script does run fine on some servers with Perl 5). The ushop_cgiscript doesn't use any special libraries and the functions that it uses itself are pretty basic and were not deprecated in Perl 5.

In fact, the only thing in the script that I am aware of that is "Perl version-specific" is the use of "my" instead of "local" in one of the subroutines. "my" is new to Perl 5 and can be used in place of "local" to limit the scope of variables. Again, this is new to Perl 5, so if anything, I would have guessed that it would work in Perl 5 but not Perl 4.

In any case, we did try removing the remaining use of "my" and replacing it with "local"....however, it didn't correct the Perl 5 problem....and the Perl 4 version seems to work whether the "my"s are in or out. (Probably because the function calls are never more than one level deep).

So in other words, why some versions of Perl 5 have a problem with the script....I'm not sure.

Perl 4 always seems to work.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
5 . "Re: Sever error in CGI script"
Posted by Henry on Apr-12-00 at 11:15 AM (EST)
Bill,

thanks for the information. I think I just
run the cgi script on a PERL4 server.

I realy appreciate the fast response to
my question.

Thanks again
Henry

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.