pcsurgeon Posted January 12, 2007 Share Posted January 12, 2007 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 More sharing options...
Jack_mcs Posted January 12, 2007 Share Posted January 12, 2007 Look in your includes/configure.php file. If there isn't a / in front of download, then add one. 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 More sharing options...
pcsurgeon Posted January 12, 2007 Author Share Posted January 12, 2007 Look in your includes/configure.php file. If there isn't a / in front of download, then add one. Jack The / was not there so i added it, I still get the same error message, any more suggestions? Link to comment Share on other sites More sharing options...
ozEworks Posted January 12, 2007 Share Posted January 12, 2007 Did you check that the directory actually exists? Link to comment Share on other sites More sharing options...
pcsurgeon Posted January 12, 2007 Author Share Posted January 12, 2007 Did you check that the directory actually exists? Yes, the directory is there Link to comment Share on other sites More sharing options...
pcsurgeon Posted January 12, 2007 Author Share Posted January 12, 2007 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 More sharing options...
ozEworks Posted January 12, 2007 Share Posted January 12, 2007 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 More sharing options...
Jack_mcs Posted January 13, 2007 Share Posted January 13, 2007 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 More sharing options...
pcsurgeon Posted January 19, 2007 Author Share Posted January 19, 2007 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 More sharing options...
pcsurgeon Posted January 19, 2007 Author Share Posted January 19, 2007 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 More sharing options...
pcsurgeon Posted January 23, 2007 Author Share Posted January 23, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.