Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New to osCommerce, having trouble with download option


pcsurgeon

Recommended Posts

I am new to osCommerce and I am having trouble with the download feature. I am setting up a website that will be selling videos and I keep getting the following error message.

 

Warning: The downloadable products directory does not exist: /download/. Downloadable products will not work until this directory is valid.

 

I have read several of the download related topics in this forum and it seems that I have everything set up correctly but I still get this error message.

 

Thank you in advance for the help.

Link to comment
Share on other sites

I think I may have figured out part of it but I still need help. My site is hosted on a windows based server so changing the permissions of catalog/pub to 777 and of catalog/download to 755 is not an option. I searched with google and ran across some info on .htaccess file that are hidden. I went to my webhosting ftp webshell and unhide all hidden files and there is a .htaccess file hidden in both the catalog/pub and the catalog/download. Any suggestions on what to do from here to get the permissions set properly.

Link to comment
Share on other sites

try just deleting the .htaccess file and see

 

 

but can you post that part of your configure.php file

 

does it look like

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/xxxxxx/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

I think I may have figured out part of it but I still need help. My site is hosted on a windows based server so changing the permissions of catalog/pub to 777 and of catalog/download to 755 is not an option. I searched with google and ran across some info on .htaccess file that are hidden. I went to my webhosting ftp webshell and unhide all hidden files and there is a .htaccess file hidden in both the catalog/pub and the catalog/download. Any suggestions on what to do from here to get the permissions set properly.
Thoss files are there for protection so they should stay. Besides, the permissions settings wouldn't have anything to do with the problem you are having.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

try just deleting the .htaccess file and see

but can you post that part of your configure.php file

 

does it look like

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/xxxxxx/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

[/quote

 

 

Here is a copy of the code in my configure.php file

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', 'catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

is it correct?

Link to comment
Share on other sites

Did you check that the directory actually exists?

 

 

Just to double check with you on if the directory is right, here is the structure the download directory is in

 

 

 

 

site-www.xxxxxxxxxxx.com

+admin

+aspnet_client

+ASPSecured

-catalog

-download

-music1.zip

-music2.zip

-music3.zip

-and so on with more downloadable zip file

 

+connections

+cp

+images

and so on

 

 

 

 

does this look correct for the structure?

Thanks

Link to comment
Share on other sites

After rewriting the configure.php file many times, I now have it where it works perfect. NO ERROR MESSAGES, NO ISSUES WHAT SO EVER, DOWNLOAD LINK SHOWS UP AND WORKS PERFECT. here is what the 4 lines of code in my configure.php file looks like

 

 

 

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

 

 

I hope this will help others with fixing their issues with downloadable products :thumbsup:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...