Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Setup Error


ravereview

Recommended Posts

Sorry tried to find it here but didn't see it.

 

I got the cart setup but got this message:

 

Warning: The downloadable products directory does not exist:

Downloadable products will not work until this directory is valid.

 

Can someone point me in the right direction to fix it?

 

Thanks in advance.

 

Andrew S.

Link to comment
Share on other sites

the catalog/download directory is missing or permissions not set to chmod 777 or path wrong in includes/configure.php

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

First of all, this forum is fantastic! You folks are REALLY good! I have been watching for days now and have been able to configure most everything.....except

 

I too got the error message about the catalogdownload directory missing, so I got that created and permissions set.

 

However..... my downloads are instantly available regardless of status of payment, tried all of them and even mixtures thereof. :unsure: Please tell me what I have messed up or let me know what to get for you to see what I have messed up.

 

the store is at: Bev Newman, Happy Painter

 

Thanks in advance!

Link to comment
Share on other sites

Darn it, I should have added this as well since it deals with the same thing.

 

I had status pending as default on checks and delivered default on PayPal thinking that would work, not.

 

Even though the cart accepts payment, there is no subtraction going on. The problem is only for item with attributes of download, works great on all others.

 

My goal is to accept checks/MO as well as PayPal.

Link to comment
Share on other sites

It is a directory and not a file.

in the catalog directory there should be the folder(directory) called downloads, if it does not exist create one.

You can create one using the file manager or better still use an ftp program using the command button probably mkdir

 

the permissions are for the folder(directory) called downloads.

 

it is the paths in the catalog/includes/configure.php file and they should be something like this

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

these are the defined paths relative for downloads

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

OK, mine 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/');

 

but my after installation, I got the error message that catalogdownload folder does not exist and had to create one. I created it inside the catalog folder and still the same message. Moved it outside the catalog folder and error message is gone. However, according to the code above, I am referencing the "download" folder inside the "catalog" folder. Could this be why my download regardless of size is only 1k?

 

I am only posting this here in RareReview's topic because seems we both got the same error message to start off with. But I really would like to get this fixed as well.

 

Thanks again!

Link to comment
Share on other sites

btw, this is the error message:

Warning: The downloadable products directory does not exist: /mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalogdownload/. Downloadable products will not work until this directory is valid.
Link to comment
Share on other sites

HappyPainter

 

You are correct in that the reference is to a download directory within the catalog directory, however you have not given the vital bit of information in order to answer your question properly.

 

Do you have a catalog directory or have you installed to the root

 

If the message has disappeared this would suggest that you are installed to the root and not a catalog directory.

 

The error message suggests an incorrect path

/mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalogdownload/
there is no / between catalog and download

 

look at your configure.php file and see if you can relate the paths you may just require to place the / before download so that that define reads /download/ or you may have to alter another path such as the FS_CATALOG path to an absolute path

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Thank you so much for your response! Sorry for not giving enough accurate info.

 

I do have a catalog directory which is what is confusing me:

OSC2.jpg

But, in order to not have the error message, I had to create a catalogdownload folder outside of the catalog folder:

OSC1.jpg

 

I want to think the server folks configured (or mis-configured) something on their end cause I don't see a reason to reference outside of the catalog folder for downloads. but, what do I know.

Link to comment
Share on other sites

you seem to know a bit.

 

I see that you do have a download directory inside the catalog directory so there is no need for you to have a catalogdownload directory outside the catalog directory it is the path that is wrong.

 

Post your configure.php file remembering to xxxx out the database info and we will resolve this path issue.

 

change the path

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

to an absolute path

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Thanks for your helpful input and please know it is soooooooo much appreciated!

 

<?php

/*

  $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright © 2003 osCommerce

 

  Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

  define('HTTP_SERVER', 'http://bevnewman.netfirms.com'); // eg, http://localhost - should not be empty for productive servers

  define('HTTPS_SERVER', 'https://bevnewman.sslpowered.com'); // eg, https://localhost - should not be empty for productive servers

  define('ENABLE_SSL', true); // secure webserver for checkout procedure?

  define('HTTP_COOKIE_DOMAIN', 'bevnewman.netfirms.com');

  define('HTTPS_COOKIE_DOMAIN', 'bevnewman.sslpowered.com');

  define('HTTP_COOKIE_PATH', '/BevsStore/nfoscomm/catalog/');

  define('HTTPS_COOKIE_PATH', '/BevsStore/nfoscomm/catalog/');

  define('DIR_WS_HTTP_CATALOG', '/BevsStore/nfoscomm/catalog/');

  define('DIR_WS_HTTPS_CATALOG', '/BevsStore/nfoscomm/catalog/');

 

// note to self, copied above reference to define FS catalog 

 

  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/');

 

//  note to self define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])) has been changed to line below

 

  define('DIR_FS_CATALOG', dirname(/BevsStore/nfoscomm/catalog/['SCRIPT_FILENAME']));

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

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

 

// define our database connection

  define('DB_SERVER', 'MYSQLHOST'); // eg, localhost - should not be empty for productive servers

  define('DB_SERVER_USERNAME', 'xxxxxx');

  define('DB_SERVER_PASSWORD', 'xxxxxx');

  define('DB_DATABASE', 'xxxxxx');

  define('USE_PCONNECT', 'false'); // use persistent connections?

  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

Not sure if the change I made is the one you had in mind.

Link to comment
Share on other sites

first what is on this line in your admin/includes/configure.php

 

define('DIR_FS_DOCUMENT_ROOT'

or do you know the absolute path should be something like /home/yourname/public_html/catalog/

 

Have you tried just putting a / before the download/

 

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

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

hmmm, lemme look,

  define('DIR_FS_DOCUMENT_ROOT',    $DOCUMENT_ROOT . '/www' . '/BevsStore/nfoscomm/catalog/' ); // where your pages are located on the server.
is in the admin/includes/configure.php

 

I will check out changing the code and be back shortly.

 

Thanks again!

Link to comment
Share on other sites

you are jumping the gun a bit.

ok you have given the line from admin that I asked for but this line references a $DOCUMENT_ROOT so there will be a define or $DOCUMENT_ROOT= somewhere in the admin

 

post the admin/includes/configure.php file xxxx out the database info

 

all that I require is a point of reference for the absolute path

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I looked and looked, and well, can kinda understand why when I tried uploading images with the / switch for my products it wouldn't let me. Has no idea what I am telling it to do.

 

anyway, here is the top portion of my admin/includes/configure.php file, as after these lines $DOCUMENT_ROOT is not referenced.

  define('HTTP_SERVER',              'https://bevnewman.sslpowered.com'); // eg, http://localhost or - https://localhost

  define('HTTP_CATALOG_SERVER',      'http://bevnewman.netfirms.com');

  define('HTTPS_CATALOG_SERVER',    'https://bevnewman.sslpowered.com');

  define('ENABLE_SSL_CATALOG',      'true'); // secure webserver for catalog module

  define('DIR_FS_DOCUMENT_ROOT',    $DOCUMENT_ROOT . '/www' . '/BevsStore/nfoscomm/catalog/' ); // where your pages are located on the server.

  define('DIR_WS_ADMIN',            '/BevsStore/nfoscomm/catalog/admin/');

  define('DIR_FS_ADMIN',            $DOCUMENT_ROOT . '/www' . '/BevsStore/nfoscomm/catalog/admin/');

  define('DIR_WS_CATALOG',          '/BevsStore/nfoscomm/catalog/');

  define('DIR_FS_CATALOG',          $DOCUMENT_ROOT . '/www' . '/BevsStore/nfoscomm/catalog/');

  define('DIR_WS_IMAGES',            'images/');

  define('DIR_WS_ICONS',            DIR_WS_IMAGES . 'icons/');

  define('DIR_WS_CATALOG_IMAGES',    DIR_WS_CATALOG . 'images/');

Link to comment
Share on other sites

I was just looking at another topic on the forum which dealt with zip download failure. I opened mine in dos to see the error messages and see that the path used (which failed) was www/BevsStore/nfoscomm/catalog/download.php

 

This forum is sooo great! Sooooo much info!

Link to comment
Share on other sites

I am trying to help, I need the bit above

 define('HTTP_SERVER', 'https://bevnewman.sslpowered.com'); // eg, http://localhost or - https://localhost

there has to be a line above this stating what the $DOCUMENT_ROOT is or the string is not defined. I know what I am looking for, however so far it has not been posted, so I will answer thus

 

have you tried

define('DIR_FS_CATALOG', /mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Sorry, l had to go and cut some wood to relax.

 

You are such a help and again, your help is extremely appreciated.

 

hmmm, I just looked again at the partial file that made it through downloand and (gee, you are good!) it says:

No such file or directory (errno 2) in <b>/mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/download.php<b>

on all counts, open, read, close.....

 

 

Here is everything above (and a few lines including) the previous configure.php file snippet.

<?php

/*

? $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

? osCommerce, Open Source E-Commerce Solutions

? http://www.oscommerce.com

 

? Copyright ? 2002 osCommerce

 

? Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

? define('HTTP_SERVER',? ? ? ? ? ? ? 'https://bevnewman.sslpowered.com'); // eg, http://localhost or - https://localhost

? define('HTTP_CATALOG_SERVER',? ? ? 'http://bevnewman.netfirms.com');

? define('HTTPS_CATALOG_SERVER',? ?  'https://bevnewman.sslpowered.com');

 

Thanks again!

Link to comment
Share on other sites

Just now tried it with

define('DIR_FS_CATALOG', /mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/');

changed, but nope, parse error.....

 

How do I define the $DOCUMENT_ROOT and would it make the difference?

 

Thanks for all your help! I am learning a great deal.

Link to comment
Share on other sites

yeah I missed a ' just before /mnt

 

Try this one

 

define('DIR_FS_CATALOG', '/mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Good Morning and Thanks for the reply!

 

I tried what you suggested, the site loaded without errors. After doing a test purchase however, the file which downloaded has the same errors pointing me to make changes in other files:

<br />

<b>Warning</b>:  OpenDir: No such file or directory (errno 2) in <b>/mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/download.php</b> on line <b>59</b><br />

<br />

<b>Warning</b>:  readdir(): supplied argument is not a valid Directory resource in <b>/mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/download.php</b> on line <b>60</b><br />

<br />

<b>Warning</b>:  closedir(): supplied argument is not a valid Directory resource in <b>/mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/download.php</b> on line <b>74</b><br />

<br />

<b>Warning</b>:  mkdir() failed (No such file or directory) in <b>/mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/download.php</b> on line <b>91</b><br />

<br />

<b>Warning</b>:  Symlink failed (No such file or directory) in <b>/mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/download.php</b> on line <b>92</b><br />

<br />

<b>Warning</b>:  Cannot add header information - headers already sent by (output started at /mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/download.php:59) in <b>/mnt/web_a/d12/s33/a000si13/www/BevsStore/nfoscomm/catalog/includes/functions/general.php</b> on line <b>29</b><br />

If I defined (if I knew how), the $DOCUMENT_ROOT, would that not be easier? I was just thinking that errors, such as in the errors above, may not be created that way.

Link to comment
Share on other sites

Thanks for all your help, I have learned so much on this forum!

 

I called my server tech support and the guy decides I should just put the files to be downloaded into the pub folder. After I realized he just didn't get it, told him thanks, searched for a download script and have installed it. I will just send my customers a link to their files. We are decorative painters and woodworkers, so we can deal with it.

 

till my server techs figure out what they are doing anyway............

 

Thanks again for all your help!

Link to comment
Share on other sites

Whenever I go to download a porduct everything works fine except. the download link references an invalid link, for example:

 

http://www.austinscenes.com/pub/.rxrtfqhhlgqlhbxn/unreal.zip

 

.rxrtfqhhlgqlhbxn is randomly generated i think.

 

Here is my config:

 

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

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

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

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

 

P.S. I am using this as a module for PHPNuke.

 

Thanks,

Robert

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...