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
order_template error message

Knowledge Base Lobby : uShop Support Conference : Problems with trying to Place Orders
Oct-17-17 11:00 AM EST
Original Message
order_template error message
Author joatt on 01-15-2003 at 17:11 (EST)
After I click on the "Continue" button I get the error message "Unable to open ./data/order_template.html"

I can access and open my control panel make changes and save.

The syntax for order_template.html is correct also Form tag is upper case ,chmod is 733 ,file structure is home/onshop/cgi-bin/public_html/...My ISP has to change chmod commands ..a security issue they say.

If I change the relative path to "data" it also corrupts the control panel when changes are applied, with an error message .
I am using http:// instead of https:// for testing, ushop.pl current settings for question 3 and 5 are # 3.What is the URL of your website?
$store_url = "http://www.onshop.com.au/";# 5. What is the full or relative path to your data directory?
$data_directory = "./data/";

Regards David Timmins
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: order_template error message Bill Weiner, 2003-01-16 06:54:27 (1)
            order_template error message Joatt, 2003-01-16 16:58:01 (2)
                 RE: order_template error message Bill Weiner, 2003-01-17 06:50:11 (3)
                      order_template error message Joatt, 2003-01-17 19:35:11 (4)
                           RE: order_template error message Bill Weiner, 2003-01-20 06:11:55 (5)
                                error files Joatt, 2003-01-24 07:12:25 (6)
                                     error 500 message Joatt, 2003-01-26 21:34:46 (7)
                                          Error 500 Joatt, 2003-01-27 23:00:35 (8)
                                               RE: Error 500 Bill Weiner, 2003-01-28 05:43:40 (9)

Messages In This Discussion
         1. RE: order_template error message
        Author Bill Weiner on 01-16-2003 at 06:54 (EST)
Are you sure the relative directory path "./data/" is mapping to the directory you think it is? That is, do you see a file called "ushop-settings.txt" being created/updated each time you make a change to the Control Panel's General Settings?

The "ushop-settings.txt" file and your "order_template.html" file should be located in the same directory. If you find that they are not, then try specifying the "$data_directory" setting as the FULL PATH to your data directory, such as:

$data_directory = "/home/onshop/cgi-bin/data/";
TABLE OF CONTENTS
                 2. order_template error message
                Author Joatt on 01-16-2003 at 16:58 (EST)
Bill
Changing the "data" path to home/onshop/cgi-bin/data creates the file error, "Unable to open
home/onshop/cgi-bin/data/ushop-settings.txt" when appling changes to store settings in the control panel.

Change the setting to ./data/ the settings are saved and show up on the ushop-settings.txt file that is in the data folder, clicking on the "continue " button still
produces the same error message."Unable to open
./data/order_template.html".

I have tried a combination of settings both with relative and full path eg,../data/, /data/ any path other than ./data/ results in error
messages.
Regards
David Timmins
TABLE OF CONTENTS
                         3. RE: order_template error message
                        Author Bill Weiner on 01-17-2003 at 06:50 (EST)
PLEASE ANSWER THE FOLLOWING QUESTIONS:

Question #1. Do you have a UNIX-type server or a Windows-type server?

Question #2. If using a Unix-type server... When trying the full path to your data directory, were you using a slash in the front of the directory?

Such as:

$data_directory = "/home/onshop/cgi-bin/data/";

NOT

$data_directory = "home/onshop/cgi-bin/data/";

Question #3. If using a Windows-type server... When trying the full path to your to your data directory, were you specifying the correct drive letter in front of the directory?

Such as:

$data_directory = "c:/home/onshop/cgi-bin/data/";

NOT

$data_directory = "home/onshop/cgi-bin/data/";

(where "c:" corresponds to the hard drive letter of your server).

---

The reason I would like you to use the full directory path in your data directory, is so that you can be absolutely positive that the "ushop-settings.txt" file is being written to the same directory as where the "order_template.html" file is located.

Once it is confirmed that the "ushop-settings.txt" file is being written to the same directory as the "order_template.html" file, then that indicates that the directory is correct and that it does have the correct permissions.

---

Question #4: After changing the data_directory setting to the full path, log in to your uShop Control Panel and change some of the General Settings. Verify that the date/time of your "ushop-settings.txt" file on your server is indeed being changed each time you make a change to the General Settings. Is it?

Question #5: Also from the uShop Control Panel, press the "Diagnostics" button and tell me what the output for the following three settings says:

#5A. $data_directory = ???

(You can find the "$data_directory" value near the top of the Diagnostic Report.)

#5A. Data Directory = ???

(You can find the "Data Directory" value near the bottom of the Diagnostic Report - under "DIAGNOSTIC TESTS")

#5A. General Settings = ???

(You can find the "General Settings" value near the bottom of the Diagnostic Report - under "DIAGNOSTIC TESTS")
TABLE OF CONTENTS
                                 4. order_template error message
                                Author Joatt on 01-17-2003 at 19:35 (EST)
Question #1. Do you have a UNIX-type server or a windows-type server?
A. Unix

Question #2. If using a Unix-type server... When trying the full path to your data directory, were you using a slash in the front of the directory?

A. NO ,But have since tried it with slash, same error message as before when clicking on the "continue" button "Unable to open
/home/onshop/cgi-bin/data/order_template.html"

Such as:$data_directory = "/home/onshop/cgi-bin/data/";

NOT

$data_directory = "home/onshop/cgi-bin/data/";

Question #3. If using a Windows-type server... When trying the full path to your to your data directory, were you specifying the correct drive letter in front of the directory?

Such as:

$data_directory = "c:/home/onshop/cgi-bin/data/";

NOT

$data_directory = "home/onshop/cgi-bin/data/";

(where "c:" corresponds to the hard drive letter of your

server).

---

The reason I would like you to use the full directory path in your data directory, is so that you can be absolutely positive that the "ushop-settings.txt" file is being written to the same directory as where the "order_template.html" file is located.

Once it is confirmed that the "ushop-settings.txt" file is being written to the same directory as the "order_template.html" file, then that indicates that the directory is correct and that it does have the correct
permissions.

---

Question #4: After changing the data_directory setting to the full path, log in to your uShop Control Panel and change some of the General Settings. Verify that the date/time of your "ushop-settings.txt" file on your server is indeed being changed each time you make a
change to the General Settings. Is it?

A. Yes

Question #5: Also from the uShop Control Panel, press the "Diagnostics" button and tell me what the output for the following three settings says:

#5A. $data_directory = ???

A. $data_directory = "/home/onshop/cgi-bin/data/";


(You can find the "$data_directory" value near the top of the Diagnostic Report.)

#5A. Data Directory = ???

A. Data Directory = OK


(You can find the "Data Directory" value near the bottom of the Diagnostic Report - under "DIAGNOSTIC TESTS")

#5A. General Settings = ???

A. General Settings = OK


(You can find the "General Settings" value near the bottom of the Diagnostic Report - under "DIAGNOSTIC TESTS")

TABLE OF CONTENTS
                                         5. RE: order_template error message
                                        Author Bill Weiner on 01-20-2003 at 06:11 (EST)
The problem is one of the following:

1) The name of the file in your data directory is not named "order_template.html" exactly. That is, make sure the spelling, case-sentivity and file extention of that file name is indeed "order_template.html".

2) The "order_template.html" does not have read permission. Try doing a chmod 777 on the file.

TABLE OF CONTENTS
                                                 6. error files
                                                Author Joatt on 01-24-2003 at 07:12 (EST)
having no luck with my current ISP, am changing over to new server, will contact you if i encounter any set up problems on new server
TABLE OF CONTENTS
                                                         7. error 500 message
                                                        Author Joatt on 01-26-2003 at 21:34 (EST)
Bill.

Have moved to new server that uses Unix and Plesk
software.

Site works fine untill clicking on "continue" button to open "order_template.html" then displays error 500 message.

Directory structure.

Type Name Size Modified User Group Perm's Action
8k 25-01-2003 16:59:31 root root 755
anon_ftp 4k 21-01-2003 21:10:53 onshop psacln 755
bin 4k 21-01-2003 21:10:53 root root 755
cert 4k 11-07-2002 02:57:03 root root 700
cgi-bin 4k 27-01-2003 12:39:17 onshop psacln 777
conf 4k 21-01-2003 21:10:53 root root 755
error_docs 4k 21-01-2003 21:10:53 root root 755
ftpstat 4k 09-08-2002 22:57:24 root root 755
httpdocs 4k 23-01-2003 16:10:39 onshop psacln 755
httpsdocs 4k 21-01-2003 21:10:53 onshop psacln 755
logs 4k 22-01-2003 04:17:20 root root 755
pd 4k 21-01-2003 21:10:53 root root 755
web_users 4k 21-01-2003 21:10:53 root root 755
webstat 4k 23-01-2003 04:29:21 root root 755
webstat-ssl
all html files and classes directory are in httpdocs.

1. Run test script on server,get error500.
"InternalServer ErrorThe server encountered an internal error or is configuration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred and anything you might have done that may have caused the error.More information about this error may be available in the server error log."

2.Error log reads[Mon Jan 27 12:59:25 2003] [error][client 203.222.55.36] Premature end of script headers:/usr/local/psa/home/vhosts/onshop.com.au/cgi-bin/cgitest.pl

3. Changed #!/usr/bin/perl to

#!/usr/local/psa/home/vhosts/onshop.com.au/cgi-bin/perl
then to

#!/usr/local/psa/home/vhosts/onshop.com.au/bin/perl

4. Uploaded in ASCII mode.

5.CHMOD 777 for all .pl and data directory and "order_template.html".

Copy of cgitest.pl script.

#!/usr/local/psa/home/vhosts/onshop.com.au/bin/perl

# Create an HTML page to display a message.
print "Content-type: text/htmlnn";
print "Test";
print "";
print "";
print "TEST";
print "";
print "";
print "Hooray! It works!";
print "";
print "";
print "";

Regards David Timmins.

TABLE OF CONTENTS
                                                                 8. Error 500
                                                                Author Joatt on 01-27-2003 at 23:00 (EST)
Bill
After all your help, it would appear that the problem lay with my new server not being forthright with information or not willing to admit to some problem. Initall they had sugested similar soultions to yours of which neither worked, after futher communitation with them to day via email ...hey presto the perl scripts are working, what has visibly changed in my files!!!! nothing. Thanks again for your support and patience.
Regards David Timmins
TABLE OF CONTENTS
                                                                         9. RE: Error 500
                                                                        Author Bill Weiner on 01-28-2003 at 05:43 (EST)
Glad you got it worked out! ;^)
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.