shubbert Posted June 25, 2010 Share Posted June 25, 2010 Here is my store: http://phoenixrise1.org/STORE/ I just installed it 3 times and everytime I eneable it for downloading I get the error message on the top that says "Warning: The downloadable products directory does not exist: STOREdownload/. Downloadable products will not work until this directory is valid." Also when I check out there is no option for me to downlaod anything I just get a thank you for yuot order. How can I fix this so I cna have customers pay and then download my products instantly after they pay? Please be very specific as I am very new to the language that I ahve sen on this forum. Thank You! Link to comment Share on other sites More sharing options...
Guest Posted June 25, 2010 Share Posted June 25, 2010 Stephan, Your configure.php file is incorrect. The download directory should be /store/download/ not STOREdownload Also, some browsers will not load a URL in capital letters so your STORE directory should be store. OSC comes standard with a download controller, however it is lacking in some functionality so I suggest you install this one to help secure content and regulate downloads: http://addons.oscommerce.com/info/4868 Chris Link to comment Share on other sites More sharing options...
shubbert Posted June 25, 2010 Author Share Posted June 25, 2010 Thanks for the reply. the Directory I created is in a file named STORE with all caps. Thats where I installed the OScommerce files. Will that make a difference? Also I tried the Superdownload Module and it did not work. do you have anything else I can try? Here is my configure.php code i TRIED STORE/download as well as store/download: <?php define('HTTP_SERVER', 'http://phoenixrise1.org'); define('HTTPS_SERVER', 'https://phoenixrise.accountsupport.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'phoenixrise1.org'); define('HTTPS_COOKIE_DOMAIN', 'phoenixrise1.org'); define('HTTP_COOKIE_PATH', '/STORE/'); define('HTTPS_COOKIE_PATH', '/STORE/'); define('DIR_WS_HTTP_CATALOG', '/STORE/'); define('DIR_WS_HTTPS_CATALOG', '/STORE/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', 'STORE'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'phoenixrise.accountsupportmysql.com'); define('DB_SERVER_USERNAME', 'phoenixris_app'); define('DB_SERVER_PASSWORD', 'ljtu9qT49s'); define('DB_DATABASE', 'phoenixrise_IC_20100624_222932'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Link to comment Share on other sites More sharing options...
MrPhil Posted June 25, 2010 Share Posted June 25, 2010 define('DIR_FS_CATALOG', 'STORE'); is wrong. First, the code is expecting a full path, starting at the server root. Second, it needs a trailing / (that's why STORE and download/ get run together into STOREdownload/ rather than STORE/download/. Is there some reason you chose to replace the default define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); with just 'STORE'? At the very least, change it to 'STORE/', and you may have to add the rest of the path to it ('/home/account name/public_html/STORE/' or whatever). The 'FS' in the defined name is a clue that it's looking for the filesystem directory structure, not the workspace (HTML) directory structure. STORE vs store: it's fine. No browser or server will have any trouble with CAPS vs lower-case. The only thing to watch out for is that on a Linux server (which is case sensitive for file and directory names), someone typing in "store" will not match an actual directory name of "STORE" (and vice-versa). Windows servers don't care, and treat "STORE" as the same name as "store". Link to comment Share on other sites More sharing options...
shubbert Posted June 27, 2010 Author Share Posted June 27, 2010 Thank you for the reply... I have since uninstalled the database and then installed it again in a file named store this stime instead of STORE. I ahve changed the code to do exactly what yuor mentioning here. I am using Startlogic and they have an install proram that allows to install Oscommerce automatically. and creates the Mysql Datbase automatically. Al yu ahve to do si create teh directore, hence the file name store. Here is the code now let me know if there are aother areas I need to look at becsaue even with the changes yuo suggested this site si still doing the same thing: http://phoenixrise1.org/store/index.php <?php define('HTTP_SERVER', 'http://phoenixrise1.org'); define('HTTPS_SERVER', 'https://phoenixrise.accountsupport.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'phoenixrise1.org'); define('HTTPS_COOKIE_DOMAIN', 'phoenixrise1.org'); define('HTTP_COOKIE_PATH', '/store/'); define('HTTPS_COOKIE_PATH', '/store/'); define('DIR_WS_HTTP_CATALOG', '/store/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', 'store/download'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'phoenixrise.accountsupportmysql.com'); define('DB_SERVER_USERNAME', 'phoenixris_app'); define('DB_SERVER_PASSWORD', 'zrxOQfDbi'); define('DB_DATABASE', 'phoenixrise_IC_20100627_164315'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Link to comment Share on other sites More sharing options...
BryceJr Posted June 28, 2010 Share Posted June 28, 2010 Log in to your osc admin panel >>Tools-Server Info. Look for "DOCUMENT_ROOT" and take note of the VALUE. If you don't have access to your oscommerce admin panel, creating a php file and call it from your browser. Open notepad. Copy and paste the lines below. <?php phpinfo(); ?> Save the file as mysite.php -- Save as Type->ALL Files Upload "mysite.php" to your site's store folder. Open your browser and type phoenixrise1.org/store/mysite.php. Write down the value of DOCUMENT_ROOT. define('DIR_FS_CATALOG', 'VALUE_OF_DOCUMENT_ROOT/store/'); --- This is hilarious. ::lol: It's a good thing you provided fake credentials. This portion of the configure.php file is never posted. If somebody provides authentic database credentials, they'll be hacked. False database credentials ... funny ::lol:: define('DB_SERVER', 'phoenixrise.accountsupportmysql.com');define('DB_SERVER_USERNAME', 'phoenixris_app'); define('DB_SERVER_PASSWORD', 'zrxOQfDbi'); define('DB_DATABASE', 'phoenixrise_IC_20100627_164315'); Link to comment Share on other sites More sharing options...
MrPhil Posted June 29, 2010 Share Posted June 29, 2010 define('DIR_FS_CATALOG', 'store/download'); change to define('DIR_FS_CATALOG', '/home/phoen235/public_html/store/'); or whatever the full path is to your store's root. "/home/phoen235/public_html" is just an example of a typical account site root; and you've already told us your store is in /store. define('DB_SERVER', 'phoenixrise.accountsupportmysql.com'); define('DB_SERVER_USERNAME', 'phoenixris_app'); define('DB_SERVER_PASSWORD', 'zrxOQfDbi'); define('DB_DATABASE', 'phoenixrise_IC_20100627_164315'); I hope to hell those are either fake, or you changed them about 30 hours ago! You never put real IDs and (especially) passwords on a public forum! The usual practice is to replace real values with **********. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.