Forums / General Questions / Page cannot be found. (HTTP 400 Bad Request) on downloads

Page cannot be found. (HTTP 400 Bad Request) on downloads

Locked

Views: 3,703

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Feb 2010, 4:36 AM
#1
stitchjunkie avatar

stitchjunkie

New Zenner

Join Date:
Sep 2009
Posts:
72
Plugin Contributions:
0

Page cannot be found. (HTTP 400 Bad Request) on downloads

I'm getting the green light on the download attribute.

(Note: I haven't moved to secure level yet, just wanted to be successful with original setup first, then move per FAQ on secure relocation of download folder.)

My test free order gets message: "Page cannot be found. This error (HTTP 400 Bad Request) means that Internet Explorer was able to connect to the web server, but the webpage could not be found because of a problem with the address."

I didn't edit the configure.php files because I have the files in the original zen/download directory. Am I missing something?

21 Feb 2010, 6:59 PM
#2
stitchjunkie avatar

stitchjunkie

New Zenner

Join Date:
Sep 2009
Posts:
72
Plugin Contributions:
0

Re: Page cannot be found. (HTTP 400 Bad Request) on downloads

Still getting webpage cannot be found.http://www.gingerbreadtearoom.com/zen/index.php?main_page=download&order=1&id=1 The url displays as:

Again I haven't edited any php file, just stuck with the original install, the file shows as green light in admin. I've read through multiple posts. Am I missing a step?

23 Feb 2010, 12:13 PM
#3
stitchjunkie avatar

stitchjunkie

New Zenner

Join Date:
Sep 2009
Posts:
72
Plugin Contributions:
0

Re: Page cannot be found. (HTTP 400 Bad Request) on downloads

Still green lights on files. Ready to try this one again. Permissions on pub 777, permissions tried multiple ways on download folder. Customer clicks on download link and is taken to error page as above. GZip is off. Any ideas?

I'm set to download by redirect on linux server.

28 Feb 2010, 11:03 PM
#4
stitchjunkie avatar

stitchjunkie

New Zenner

Join Date:
Sep 2009
Posts:
72
Plugin Contributions:
0

Re: Page cannot be found. (HTTP 400 Bad Request) on downloads

Trying to follow protocol and staying on this thread - still getting 400 error. Can someone please contact me to assist with troubleshooting this? I've already searched hundreds of posts, checked config files in admin/includes and includes. Linux server, set up to download by redirect, GZip off, pub folder 777, download folder 777, downloads are set up as .zip files instad of pdf. GREEN LIGHT is ON and attribute is added, customer can see download link. Customer clicks the link which takes them to a 400 error page.

Should I be able to see the stub in the pub folder? Are the files even being created? Seems like multitudes of people don't have any difficulty with their downloads... does anyone know of anywhere else to look? I've searched:
https://www.zen-cart.com/tutorials/index.php?article=292
https://www.zen-cart.com/tutorials/index.php?article=57
https://www.zen-cart.com/tutorials/index.php?article=71

Answer from my hosting company "On our platform, we do support symlinks. If you wish to create a Symlink, then you need to create it from your end as we do not support for coding and scripting."

I must be missing something, it shouldn't be this hard! Would someone please work with me?
:sadwalk: :sadwalk:

28 Feb 2010, 11:16 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Page cannot be found. (HTTP 400 Bad Request) on downloads

StitchJunkie:

Should I be able to see the stub in the pub folder?Yes.> StitchJunkie:

Are the files even being created?Use your FTP program and check.

StitchJunkie:

Seems like multitudes of people don't have any difficulty with their downloadsTrue.
StitchJunkie:

Linux server, set up to download by redirectAnd what happens if you set Download-by-redirect=False, and Download-by-streaming=False?
And then what if you change download-by-streaming to true?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Mar 2010, 6:27 AM
#6
stitchjunkie avatar

stitchjunkie

New Zenner

Join Date:
Sep 2009
Posts:
72
Plugin Contributions:
0

Re: Page cannot be found. (HTTP 400 Bad Request) on downloads

DrByte:

And what happens if you set Download-by-redirect=False, and Download-by-streaming=False?
And then what if you change download-by-streaming to true?

With those setting it allows the download to process just fine. I had been using the redirect since I'm on a Linux server. Is it OK to keep like it is now, or was this just to test?

1 Mar 2010, 6:47 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Page cannot be found. (HTTP 400 Bad Request) on downloads

With Redirect=False and Streaming=True, you're not giving people direct URLs to download your files, so they can't share download links with friends.
With both set to false, the links can be shared.
This is all discussed in the FAQ on the topic: https://www.zen-cart.com/tutorials/index.php?article=292

You probably still want to relocate or rename your /download/ folder for security reasons.
Related FAQs:
https://www.zen-cart.com/tutorials/index.php?article=280
https://www.zen-cart.com/tutorials/index.php?article=121

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Mar 2010, 12:34 PM
#8
stitchjunkie avatar

stitchjunkie

New Zenner

Join Date:
Sep 2009
Posts:
72
Plugin Contributions:
0

Re: Page cannot be found. (HTTP 400 Bad Request) on downloads

Thank you very much and I really appreciate your assistance!