www.uburst.com www.uburst.com

"order_template error message"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Problems with trying to place orders.
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"order_template error message"
Posted by joatt on Jan-15-03 at 05:11 PM (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

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: order_template error message, Bill Weiner, Jan-16-03, (1)
order_template error message, Joatt, Jan-16-03, (2)
RE: order_template error message, Bill Weiner, Jan-17-03, (3)
order_template error message, Joatt, Jan-17-03, (4)
RE: order_template error message, Bill Weiner, Jan-20-03, (5)
error files, Joatt, Jan-24-03, (6)
error 500 message, Joatt, Jan-26-03, (7)
Error 500, Joatt, Jan-27-03, (8)
RE: Error 500, Bill Weiner, Jan-28-03, (9)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: order_template error message"
Posted by Bill Weiner on Jan-16-03 at 06:54 AM (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/";

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 . "order_template error message"
Posted by Joatt on Jan-16-03 at 04:58 PM (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

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: order_template error message"
Posted by Bill Weiner on Jan-17-03 at 06:50 AM (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")

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 . "order_template error message"
Posted by Joatt on Jan-17-03 at 07:35 PM (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")

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: order_template error message"
Posted by Bill Weiner on Jan-20-03 at 06:11 AM (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.

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
 
6 . "error files"
Posted by Joatt on Jan-24-03 at 07:12 AM (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
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
 
7 . "error 500 message"
Posted by Joatt on Jan-26-03 at 09:34 PM (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/html\n\n";
print "Test";
print "";
print "";
print "TEST";
print "";
print "";
print "Hooray! It works!";
print "";
print "";
print "";

Regards David Timmins.

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
 
8 . "Error 500"
Posted by Joatt on Jan-27-03 at 11:00 PM (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
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
 
9 . "RE: Error 500"
Posted by Bill Weiner on Jan-28-03 at 05:43 AM (EST)
Glad you got it worked out! ;^)
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.