|Orders not Processing|
|Orders not Processing|
Author Stiles on 01-01-2000 at 21:19 (EST)
|Hi, Mr. Edmunds.|
Here's the deal:
I have my ushop_cgiscript.pl line#10 set to: $order_directory ="./orders/"; and using Netscape and Unix, with the "orders" directory chmod 733'd and the test on my script.pl works as I dial it up on my secure server I get the copywright page securely. When I send a fake order to test it, it works 1 time and then will not duplicate. I have re-uploaded the files, re-chmoded them, classes are in the right directory with the codebase used, and it works 1 time again and will not duplicate when I go right back and order another new item and even when I change to IE 5.0. All works fine and adds up, but I get the Error: unable to open ./orders/U...... I did get the order in my "orders" directory so it must be all set and I got the store owner email and customer email, then not duplicateable. Any Ideas?
|Table Of Contents|
| orders charlie edmunds, 2000-01-02 08:39:24 (1)|
|Messages In This Discussion|
| 1. orders|
Author charlie edmunds on 01-02-2000 at 08:39 (EST)
|Have you gone through the troubleshooting information off of our reference site? You may have to use a the full path of your 'orders' directory (instead of a relative reference). Go through this information and see if it helps.|
1.6 Unable to open ./orders/.... Error (UNIX Server)
If upon trying to place an order you get an "Unable to open ./orders/U123456789" error, it means that the CGI script cannot create the unique order file. That is, the uShop CGI script will try to write an order file to the "orders" directory each time an order is placed. Therefore, the "Unable to open orders..." error is usually caused by one of two things:
The "orders" directory does not have "WRITE" and "EXECUTE" permissions.
The $order_directory setting is incorrect.
Here are a few things to try to correct error:
Check to make sure that you created the "orders" directory. If you used the CGI setup wizard to generate a CGI script for you, then this "orders" directory should be a subdirectory of your CGI directory.
NOTE: The location of this directory is specified by the $order_directory parameter in the CGI script, so you can make the orders directory whereever you want provided the $order_directory setting in the CGI script is correctly set to point to that directory. The default value is: $order_directory = "./orders/";
Be sure to give the "orders" directory WRITE and EXECUTE permissions. That is, use your FTP program to give the "orders" directory WRITE and EXECUTE permissions (chmod 733).
If you are still getting the "unable to open orders...", then you may need to edit the CGI script - using any text editor such as WordPad or NotePad - and change the $order_directory setting to reflect the FULL path to the "orders" directory. This is NOT the URL (http://..), but rather some full path such as "/www/htdocs/cgi-bin/orders/".
For example, try editing the script and changing the $order_directory setting in questions #10 from:
$order_directory = "./orders/";
to the full path to the directory:
$order_directory = "/www/htdocs/cgi-bin/orders/";
(You may need to ask your web hosting provider how to specify the full path on your server)