Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment Modules missing in Admin


Guest

Recommended Posts

Hello everyone!!

 

I've just setup an oscommerce and everything worked fine in my localhost, but when I migrated the store online, Payment modules are missing in the admin, when I got to the admin in my localhost I can see all of the payment modules available, but in the online version I only get this:

 

Module Directory: /tonyscigarlounge.com/store/includes/modules/payment/

 

I've read quite a few people hs gotten this error but I couldn't find the solution for it, any help will be extremely apprecited, so THANKS in advance.

 

Here's my localhost configure.php:

 

<?php

define('HTTP_SERVER', 'http://localhost');

define('HTTPS_SERVER', 'http://localhost');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

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

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

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

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

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', 'C:/AppServ/www/oscommerce2/');

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

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

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '****

define('DB_DATABASE', 'cigarstore');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

And here's my online configure.php:

 

<?php

define('HTTP_SERVER', 'http://www.tonyscigarlounge.com');

define('HTTPS_SERVER', 'http://www.tonyscigarlounge.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'tonyscigarlounge.com');

define('HTTPS_COOKIE_DOMAIN', 'tonyscigarlounge.com');

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', '/tonyscigarlounge.com/store/');

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

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

 

define('DB_SERVER', '****');

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '****');

define('DB_DATABASE', '****');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

Did you check your catalog/admin/includes/configure.php for DIR_FS_CATALOG_MODULES?

 

yup, here is my localhost /admin/includes/configure.php:

 

<?php

define('HTTP_SERVER', 'http://localhost');

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', 'http://localhost');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', 'C:/AppServ/www/oscommerce2/');

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

define('DIR_FS_ADMIN', 'C:/AppServ/www/oscommerce2/admin/');

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

define('DIR_FS_CATALOG', 'C:/AppServ/www/oscommerce2/');

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

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '****');

define('DB_DATABASE', '****');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

and here's my online /admin/includes/configure.php:

 

<?php

define('HTTP_SERVER', 'http://www.tonyscigarlounge.com');

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

define('HTTPS_CATALOG_SERVER', 'http://www.tonyscigarlounge.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/tonyscigarlounge.com/store/');

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

define('DIR_FS_ADMIN', '/tonyscigarlounge.com/store/admin/');

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

define('DIR_FS_CATALOG', '/tonyscigarlounge.com/store/');

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

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

define('DIR_WS_CATALOG_IMAGES', '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_IMAGES', '../images/');

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

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

 

define('DB_SERVER', '****');

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '****');

define('DB_DATABASE', '****');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

I have no clue what could that be, the paths seem ok to me, what do you think?

thanks a lot

Link to comment
Share on other sites

Try this for admin/includes/ configure.php

 

define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']);

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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

Link to comment
Share on other sites

Try this for admin/includes/ configure.php

 

define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']);

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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

 

BryceJr, Worked like a charm!!!

what was wrong? what did your lines change? I' d like to know in otder to avoid the same issue in future projects.

 

Thank you very much!

Link to comment
Share on other sites

BryceJr, Worked like a charm!!!

what was wrong? what did your lines change? I' d like to know in otder to avoid the same issue in future projects.

 

Thank you very much!

You're welcome.

 

In your previous post, #3, you partially or incorrectly defined your DIR_FS_DOCUMENT_ROOT which is where DIR_FS_CATALOG is derived from. Because it's not a full path, it won't work. The one from your computer(localhost) only applies to your computer not your web server.

 

Some examples of explicit full paths for DIR_FS_DOCUMENT_ROOT are:

 

/home/content/user/public_html/

/var/www/html/

/home/user/htdocs/

/home/httpd/vhosts/domain.com/httpdocs/

 

$_SERVER['DOCUMENT_ROOT'] refers to the full path to your web root directory.

 

Now that it is runing correctly, if you log in to your osc admin panel >>modules>>payment - Module Directory:/your/path/to/root directory/store folder/, you'll see a path.

 

Removing the /store/ at the end will result in your DIR_FS_DOCUMENT_ROOT or full path to your web root directory.

 

You can now, if you want to, explicitly define the parameters in your admin/includes configure.php file. Copy post #3(red) and make corrections to it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...