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
CGI problems

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Oct-22-17 10:37 PM EST
Original Message
CGI problems
Author corbett on 06-22-2002 at 14:39 (EST)
Hi (again).
I've been having problems all along (about 1 year) using ushop. It will not consistently send me (and the customer) copies of the order. Just last week, I discovered about $7K worth of lost orders. Very bad!
Anyway, I've upgraded to 3.5, hoping to get this fixed. Now I can't get the ushop.pl script to run. cgitest works fine, ushop will not run.

Please help. My site is www.cbt400.com. If you'll contact me privately, I'll give you the userids/passwords to get in and help me get this fixed. Please contact me (or call at 678-935-5006). I NEED to get this fixed FAST.

Thanks. If I need to pay someone to help, contact me and I'll be glad to. Ms. Edmunds helped me last time I had a problem...HELP!!!
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  Divide by Zero is ALWAYS a bug, ALWAYS corbett, 2002-06-23 18:17:44 (1)
            RE: Divide by Zero is ALWAYS a bug, ALWAYS Bill Weiner, 2002-06-24 04:24:12 (3)
  RE: CGI problems Bill Weiner, 2002-06-24 04:20:24 (2)
            display_cart.html corbett, 2002-06-24 08:01:31 (4)
                 RE: display_cart.html Bill Weiner, 2002-06-24 21:00:31 (5)

Messages In This Discussion
         1. Divide by Zero is ALWAYS a bug, ALWAYS
        Author corbett on 06-23-2002 at 18:17 (EST)
This is from the CGI Error log...

06/23/02 16:20 "/cgi/ushop.pl", proc "/usr/local/bin/perl":
Illegal division by zero at /cgi/ushop.pl line 43.

Looks like my permissions are fine. This is a Unix server, the permissions are set to "read and write". Don't allow chmod.

divide by zero looks like a bug in the software.

I'm waiting.

Thanks.
TABLE OF CONTENTS
                 3. RE: Divide by Zero is ALWAYS a bug, ALWAYS
                Author Bill Weiner on 06-24-2002 at 04:24 (EST)
An error message such as:

"Illegal division by zero at /cgi/ushop.pl line 43"

...is an indication that you have something configured incorrectly in the uShop CGI script.

Line 43 in the uShop CGI script is just the line where you specify the path to sendmail. (Configuration Question #8) So make sure you have that configuration question properly enclosed in double-quotes, such as:

$sendmail_path = "/usr/lib/sendmail";

NOT

$sendmail_path = /usr/lib/sendmail;

And if that doesn't resolve the problem, generate a diagnostic report from the uShop Control Panel and send it to us with a support request and we'll look at your settings.
TABLE OF CONTENTS
         2. RE: CGI problems
        Author Bill Weiner on 06-24-2002 at 04:20 (EST)
Regardless of whether your email is working or not, you should get into the habit of using the uShop Order Reader to securely check and read the full details of any orders.

Anyway, you most likely have something configured incorrectly in the uShop CGI script. Generate a diagnostic report from the uShop Control Panel and send it to us with a support request and we'll look at your settings.
TABLE OF CONTENTS
                 4. display_cart.html
                Author corbett on 06-24-2002 at 08:01 (EST)
I've changed the ".pl" to ".cgi" for all my scripts. Now, the display_cart.html page is still referring to the "ushop.pl" script. How do I change this? This is a ushop-generated page.

From Christine:
renaming the scripts has worked for other customers of ours, I would recommend that you:

1) go ahead and rename all three of your ushop perl scripts to have a .cgi
extension
2) edit your ushop.cgi script to change the references to .pl script to be
.cgi. (in questions #4, #11, and #12)
3) change your order button applet(s) to reflect the new script name.
TABLE OF CONTENTS
                         5. RE: display_cart.html
                        Author Bill Weiner on 06-24-2002 at 21:00 (EST)
The URL of your uShop CGI script is specified via the "script_url" parameter of your uShopOrderButton applet.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.