Zen Cart Logo
Forums / General Questions / Downloadable products will not work until this directory is valid.

Downloadable products will not work until this directory is valid.

Locked

Views: 3,738

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 May 2006, 3:24 PM
#1
caston avatar

caston

New Zenner

Join Date:
Oct 2004
Posts:
12
Plugin Contributions:
0

Downloadable products will not work until this directory is valid.

Hello,

The site I am working on is http://www.waterpurefilters.com.au/shop/
You can see the above error message there.

There was a whole bunch of errors that I fixed after editing the database after moving from a local Debian server to a webhosting provider. Unfortunately this one remains. Basically the webhosting provider has a security feature to drop in a .htaccess file to disable access to any directory that contains files writable to group or anyone.

Anyone know how to fix or work around this?

thanks,

Chris

10 May 2006, 9:52 PM
#2
noneya99 avatar

noneya99

New Zenner

Join Date:
May 2004
Location:
Nathalie,Virginia
Posts:
78
Plugin Contributions:
0

Re: Downloadable products will not work until this directory is valid.

If you find out let me know I have the exact same problem I had the shopping cart on a different domain inside a directory then I purchased a new domain moved the site and moved the store to the top level and fixed the config files to point to the new domain and now I have this same error and I have gone thru just about every config file I can find and don't see where any of them point to a downloads file if there was someway to turn off downloads (since I won't be using them) that would be great as well.

the site I'm having the problem on now is

https://www.xxxeroticsextoys.com

also another problem I'm having and can't figure out which file to go to is I tried turning on the website maint. feature so that people wouldn't get this error while I'm working on it and it is still looking at the old domain anyone know where to go to fix the admin files for that?

12 May 2006, 1:38 AM
#4
caston avatar

caston

New Zenner

Join Date:
Oct 2004
Posts:
12
Plugin Contributions:
0

Re: Downloadable products will not work until this directory is valid.

I can't see anything on that section that helps.

How can I disable the error message?

12 May 2006, 3:06 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Downloadable products will not work until this directory is valid.

I guess if your host is forcing the folder to be non-visible, you're not going to be able to use the "downloads" feature of Zen Cart.

Thus, you can disable the security warning by creating a new file called:
/includes/extra_configures/disable_downloads.php
and insert the following into it:```php

<?php define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'false'); ?>
12 May 2006, 3:29 AM
#6
caston avatar

caston

New Zenner

Join Date:
Oct 2004
Posts:
12
Plugin Contributions:
0

Re: Downloadable products will not work until this directory is valid.

Thank you. It looks like we are getting somewhere.

I tried what you suggest and by default it creeated an additional error message.
So I decided to change it to false instead of true as to me that seemed to make more sense.

Now I only get one error but the original downloads error is gone.
If we can get rid of this error that would be fantastic!

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/waterpur/public_html/shop/includes/extra_configures/disable_downloads.php:3) in /home/waterpur/public_html/shop/includes/functions/sessions.php on line 111

thanks,

Chris

12 May 2006, 4:23 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: Downloadable products will not work until this directory is valid.

Make sure you have no blank lines or spaces at the beginning or end of that file (disable_downloads.php)