Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment module problems


Guest

Recommended Posts

Posted

I have recently installed two versions of oscommerce on two seperate sites, one worked no problem with a 1 click install, however the 2nd didnt work so easily as the host doesnt allow register globals, i have sorted that problem with a very good patch but now when i go into the payment modules i get this problem

 

Payment Modules

 

Modules Sort Order Action

Module Directory: DIR_FS_CATALOG_MODULESpayment/

 

this is all it shows me, i have checked everything against the other version i am running which is functioning correctly and all seems ok, i have searched all the posts here relating to it but i cant see anything wrong in my code on the site, anyone got any ideas?? here is my code from my configure.php with the neccesary bits deleted

?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://xxxxxxxxxx.co.uk/shop'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://xxxxxxxx.co.uk/shop'); // eg, https://localhost - should not be empty for productive servers

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

define('DIR_FS_DOCUMENT_ROOT', '/public_html/'); // 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('HTTP_COOKIE_DOMAIN', 'xxxxxxxx.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'xxxxxxxxx.co.uk');

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

define('HTTPS_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/');

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

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

define('DIR_FS_PAYMENT_MODULES', DIR_FS_CATALOG . 'includes/modules/payment/');

 

define('DIR_FS_SHIPPING_MODULES', DIR_FS_CATALOG . 'includes/modules/shipping/');

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

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

 

// protected since inside docroot instead of outside to facilitate addon installer

define('DIR_FS_WORK', '/home/zippy/public_html/shop/admin/_work/');

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'xxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxxxx');

define('DB_DATABASE', 'xxxxx_xxxx');

define('DB_TABLE_PREFIX', 'xxxx_');

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

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

?>

 

i would appreciate any advice you could give

 

Thanks

 

Andy

Posted

anyone got any ideas before i abandon this software totally?

Posted
anyone got any ideas before i abandon this software totally?

 

One solution for this problem is replace:

 

dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');

 

with the real directory path, which you should be able to find under admin, possibly (ironically) when you click admin -> modules, or catalogue, in the error msg. Btw, who is your host? curious to know why use such a way to define directory path?

 

Good luck!

 

Ken

 

I just solved the same problem a couple of hrs ago!

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted
One solution for this problem is replace:

 

dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');

 

with the real directory path, which you should be able to find under admin, possibly (ironically) when you click admin -> modules, or catalogue, in the error msg. Btw, who is your host? curious to know why use such a way to define directory path?

 

Good luck!

 

Ken

 

I just solved the same problem a couple of hrs ago!

 

i use a company called ukhost4u i tried changin it as u said but could you clarify for me if the link is www.zippyracing.co.uk/shop how much of the code from above would i add with that? im very new to all this??

 

thanks

 

Andy

Posted

It probably is something like this for your site:

 

/home/zippy/public_html/shop/

 

HTH

 

Ken

 

 

i use a company called ukhost4u i tried changin it as u said but could you clarify for me if the link is www.zippyracing.co.uk/shop how much of the code from above would i add with that? im very new to all this??

 

thanks

 

Andy

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

well i sorted it i was sitting there staring at this page for inspiration when all of a sudden it hit me, half of the txt in this configure.php file was missing from the one in the admin directory and so were the payment modules, added them in and now it all works ok, just the backup directory to sort now and we will be well away!!

Archived

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

×
×
  • Create New...