Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Directory Problems?


billos2000

Recommended Posts

I've been trawling the boards today but still have a couple of questions. I understand a bit about programming but not really php.

 

Anyway, my problem seems to be that osCommerce is not seeing certain directories. For example, even though all the default payment modules are in the correct directory, when I go to enable one, there are none listed. All it says is: Module Directory: E:\\hshome\\mrmiddle\\mydomain.com..//catalog/includes/modules/payment/

 

The same is true of all the modules, as well as Database Backup, Cache and a few others.

 

If it is a directory problem, can someone please tell me what needs to be edited. I'm on a Windows server.

 

Thanks!

Link to comment
Share on other sites

Thanks for getting back so quick. Here's what you asked for:

 

admin configure.php:

 

<?php

/*

$Id: configure.php,v 1.3 2003/09/30 16:13:41 serg 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', 'http://www.mrmiddleton.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.mrmiddleton.com');

define('HTTPS_CATALOG_SERVER', 'https://www.mrmiddleton.com');

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

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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

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

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

catalog configure.php:

<?php

/*

$Id: configure.php,v 1.4 2003/10/01 09:08:17 serg 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://www.mrmiddleton.com'); // eg, http://localhost - should not be empty for productive servers

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

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

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

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

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

define('DIR_WS_IMAGES', '/catalog/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

 

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

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

 

 

post your configure.php here, both the catalog and admin, you have paths set incorrectly.

 

without the database info

Link to comment
Share on other sites

First of all, have you got a full ssl cert installed? If not then either this (define('ENABLE_SSL', true) should be set to false, or you should (for https) insert the pathway to a shared ssl cert.

 

define('HTTP_COOKIE_DOMAIN', 'www.mrmiddleton.com');

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

 

and this

 

define('HTTPS_SERVER', 'https://www.mrmiddleton.com');

 

only if you have a full ssl cert installed, in which case this

 

define('HTTPS_COOKIE_DOMAIN', '');

 

should be this

 

define('HTTPS_COOKIE_DOMAIN', 'www.mrmiddleton.com');

 

Vger

Link to comment
Share on other sites

I do have a full SSL certificate so I left that as 'true'.

 

Made the additions suggested above but it doesn't seem to have made any difference. Any other ideas?

 

One weird thing: When I first installed osCommerce, I went through the process of adding stuff to the cart and going to the checkout. It all went fine, including asking for credit card details. I then signed in to the admin section (for the first time) and found that it couldn't find payment modules etc as explained above. I didn't even make any changes! Then when I went through the buying procedure again, there were no payment options at the checkout. None!

 

As I say, it worked initially without me even editing the configure.php files. Now it's not able to find payment modules, etc.

 

Please help!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...