Forums / General Questions / Bad request page when attempting downloads

Bad request page when attempting downloads

Locked

Views: 1,372

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 Jan 2009, 10:09 PM
#1
dancemad avatar

dancemad

New Zenner

Join Date:
Jan 2009
Posts:
12
Plugin Contributions:
0

Bad request page when attempting downloads

Hey all,

I've gone through all the tutorials and I believe I have all my ducks in a row. I've set up a downloadable product, uploaded the file to downloads, set the attributes and am getting a green dot for the product in the attributes box.

When a customer gets the link to download and clicks it, he gets a page that says....

Bad Request

Your browser sent a request that this server could not understand.

The link that shows in the url box is http://downloadablespanishresources.com/zencart/pub/.odbsktmitrtjhmiu/33shortstories.zip

I am not sure why it is going to /pub as the files are in the /download folder and I am not sure what the /.odbsktmitrtjhmiu
is....

Any ideas?

Thanks
Michael

27 Jan 2009, 12:27 AM
#2
dancemad avatar

dancemad

New Zenner

Join Date:
Jan 2009
Posts:
12
Plugin Contributions:
0

Re: Bad request page when attempting downloads

sorry for the bump, but I would really like to get this resolved.

thanks
Michael

27 Jan 2009, 12:35 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Bad request page when attempting downloads

dancemad:

sorry for the bump, but I would really like to get this resolved.

thanks
Michael
You're right ... bumping is bad form. It's more appropriate to actually add more useful information to your post so that people have more to go on when trying to post an answer. Insufficient information leads to inadequate replies or no replies at all.
Tips on posting: http://www.zen-cart.com/forum/faq.php

As to your question ...
Have you looked at your server's errorlog to find out what it's saying is causing the error?

.
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.

27 Jan 2009, 12:38 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Bad request page when attempting downloads

dancemad:

The link that shows in the url box is http://downloadablespanishresources.com/zencart/pub/.odbsktmitrtjhmiu/33shortstories.zip

I am not sure why it is going to /pub as the files are in the /download folder and I am not sure what the /.odbsktmitrtjhmiu
is....
That URL is a result of having the more secure "download by redirect" enabled on your site.
If you don't want the added security offered by that option, turn it off in Admin->Configuration->Attribute Settings, and then everyone can freely download all your files from the /download/ folder instead, as long as they successfully guess the filename, or hopefully buy your product.

You really need to get the details from the apache errorlog in order to know why the problem with the /pub/ folder is happening.
Perhaps your permissions on the pub folder are inadequate?
Perhaps your hosting company doesn't allow PHP to create symlinks, thereby breaking the redirect feature?

.
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.