uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Problem with ushop_cgiscript.cgi config

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Oct-17-17 08:20 PM EST
Original Message
Problem with ushop_cgiscript.cgi config
Author Andy on 04-05-2000 at 20:17 (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.

E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Problem with ushop_cgiscript.cgi config Bill Weiner, 2000-04-06 05:09:23 (1)
            "RE: Problem with ushop_cgiscript.cgi config" Andy, 2000-04-06 05:21:59 (2)
                 RE: Problem with ushop_cgiscript.cgi config Bill Weiner, 2000-04-06 10:18:25 (3)
                      "RE: Problem with ushop_cgiscript.cgi config" Andy, 2000-04-06 12:45:17 (4)
                           RE: Problem with ushop_cgiscript.cgi config Bill Weiner, 2000-04-06 13:57:55 (5)

Messages In This Discussion
         1. RE: Problem with ushop_cgiscript.cgi config
        Author Bill Weiner on 04-06-2000 at 05:09 (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.
TABLE OF CONTENTS
                 2. "RE: Problem with ushop_cgiscript.cgi config"
                Author Andy on 04-06-2000 at 05:21 (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
TABLE OF CONTENTS
                         3. RE: Problem with ushop_cgiscript.cgi config
                        Author Bill Weiner on 04-06-2000 at 10:18 (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.


TABLE OF CONTENTS
                                 4. "RE: Problem with ushop_cgiscript.cgi config"
                                Author Andy on 04-06-2000 at 12:45 (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
TABLE OF CONTENTS
                                         5. RE: Problem with ushop_cgiscript.cgi config
                                        Author Bill Weiner on 04-06-2000 at 13:57 (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.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.