www.uburst.com www.uburst.com

"Problem with ushop_cgiscript.cgi config "

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
 
"Problem with ushop_cgiscript.cgi config "
Posted by Andy on Apr-05-00 at 08:17 PM (EST)
Hi

Although I am almost bald I am on the verge of pulling out what little hair I have left.
Having used the wizard to generate the script for me here and having had my ISP check all my permissions I have still failed to get the above script to talk to me AT ALL even calling the script directly fails to trigger the copywrite notice.
I get the dreaded 500 server error and my ISP sent me the info below..

Any help would be appreciated as the Java side of this prog is cool but my knowledge of PERL is NIL

Thanks

Andy.................scroll down for syntax stuff


The problem appears to be syntax errors in the scripts - here is the output
of a diagnostic

Unquoted string "c" may clash with future reserved word at
ushop_cgiscript.cgi line 981.
Number found where operator expected at ushop_cgiscript.cgi line 981, near
") 1997"
(Missing operator before 1997?)
syntax error at ushop_cgiscript.cgi line 981, near ") 1997"
Bareword found where operator expected at ushop_cgiscript.cgi line 986, near
"&return_error ("Unsupported"
(Might be a runaway multi-line "" string starting on line 981)
(Missing operator before Unsupported?)
Bareword found where operator expected at ushop_cgiscript.cgi line 987, near
""Server"
(Might be a runaway multi-line "" string starting on line 986)
(Missing operator before Server?)
"use" not allowed in expression at ushop_cgiscript.cgi line 987, at end of
line
Bareword found where operator expected at ushop_cgiscript.cgi line 998, near
"$value =~ s/%([\dA-Fa-f][\dA-Fa-f])/pack ("C"
(Might be a runaway multi-line "" string starting on line 987)
(Missing operator before C?)
String found where operator expected at ushop_cgiscript.cgi line 1002, near
"$FORM_DATA{$key} = join (""
(Might be a runaway multi-line "" string starting on line 998)
(Missing semicolon on previous line?)
String found where operator expected at ushop_cgiscript.cgi line 1002, near
"0", $FORM_DATA{$key}, $value);
"
(Missing operator before ", $FORM_DATA{$key}, $value);
?)
syntax error at ushop_cgiscript.cgi line 1002, near "0", $FORM_DATA{$key},
$value);
"
Execution of ushop_cgiscript.cgi aborted due to compilation errors.

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: Problem with ushop_cgiscript.cg..., Bill Weiner, Apr-06-00, (1)
"RE: Problem with ushop_cgiscr..., Andy, Apr-06-00, (2)
RE: Problem with ushop_cgiscript.cg..., Bill Weiner, Apr-06-00, (3)
"RE: Problem with ushop_cgiscr..., Andy, Apr-06-00, (4)
RE: Problem with ushop_cgiscript.cg..., Bill Weiner, Apr-06-00, (5)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Problem with ushop_cgiscript.cgi config"
Posted by Bill Weiner on Apr-06-00 at 05:09 AM (EST)
Based on the errors you described, it really sounds like you transferred the ushop_cgiscript.cgi script to your server in BINARY mode instead of ASCII mode. It is very important that when transferring the Perl script to your server, that you use ASCII or TEXT transfer mode (as opposed to BINARY or RAW mode).

Since you mentioned that you're kind of new at installing Perl scripts, however, it may pay to first try installing the very basic Perl script described at:

http://www.uburst.com/uStorekeeper/testscript.html

This test script is actually on the reference pages for one of our other products (called uStorekeeper), but the concept is the same. By following the instructions to install this very basic Perl script, you should be able to see how Perl scripts are installed/executed on your server, as well as verify that your account is setup properly to execute Perl scripts. Once you get that test script working....installing the uShop CGI script should be much easier.

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: Problem with ushop_cgiscript.cgi config""
Posted by Andy on Apr-06-00 at 05:21 AM (EST)
Thanks for the reply.

The cgi file was uploaded as text and the test file you outlined works just fine.
The ushop_cgiscript.cgi taken as the raw file
generated by the cgi wizard still fails to send anything back and just produces a server error
500.

Any other suggestions greatly appreciated.

Andy

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: Problem with ushop_cgiscript.cgi config"
Posted by Bill Weiner on Apr-06-00 at 10:18 AM (EST)
Then it may have to do with the version of Perl that your are using. If possible, try using Perl 4. Most web hosting providers will give you two paths to perl, for example:

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

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

So if possible, try using Perl 4.

Note that usually when the version of Perl is incompatible, you would normally get some "Incomplete set of headers" message. But check this anyway.


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
 
4 . ""RE: Problem with ushop_cgiscript.cgi config""
Posted by Andy on Apr-06-00 at 12:45 PM (EST)
Thanks Bill
I will try this.

I am being given the run around by the ISP people right now who seem to know less about it than I do.

The latest are some mutterings about Linux incompatibility is that possible?

Andy

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
 
5 . "RE: Problem with ushop_cgiscript.cgi config"
Posted by Bill Weiner on Apr-06-00 at 01:57 PM (EST)
No. The ushop_cgiscript runs fine on Linux. In fact, since it is a standard Perl script (and does not use any platform specific calls - just standard Perl syntax), the script is actually just interpretted by the Perl interpreter.
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


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.