Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

modules can not be seen on server


chishenyu

Recommended Posts

Posted

All functions work well locally, but after I upload all to the server(web hosting), only modules functions can not be reached.

 

I can not configure any paypment, shipping and order_total.

 

I have checked configure.php and module.php under admin directory and tried modification of some related lines.

 

Still can not see it.

 

Please help me, thanks

Posted
All functions work well locally, but after I upload all to the server(web hosting), only modules functions can not be reached.

 

I can not configure any paypment, shipping and order_total.

 

I have checked configure.php and module.php under admin directory and tried modification of some related lines.

 

Still can not see it.

 

Please help me, thanks

1. Open the catalog/admin/includes/functions/compatibility.php.

2. At the end of the “do_magic_quotes_gpc” routine, add the following code

 

reset($ar);

 

It will end up looking like this:

 

function do_magic_quotes_gpc(&$ar) {
if (!is_array($ar)) return false;
while (list($key, $value) = each($ar)) {
if (is_array($ar[$key])) {
do_magic_quotes_gpc($ar[$key]);
} else {
$ar[$key] = addslashes($value);
}
}
reset($ar);
}

 

3. Do the same for the compatibility.php file located in catalog/includes/functions/compatibility.php.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Posted

Still not working........

 

My problem is I can not see the list of modules for payment, shipping and order_total so that i can not even install it.

 

Please help me again

Posted
Still not working........

 

My problem is I can not see the list of modules for payment, shipping and order_total so that i can not even install it.

 

Please help me again

You are missing some of the core osCommerce files. You will need to upload the catalog/includes/modules folder and contents. If this folder is there, then you will need to check your admin/includes/configure.php file for the following lines:

 

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

Also, double check each of your root paths in this file to make sure all is well.

Hope this helped,

Bill Kellum

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Posted

Oh........ can not believe which part of configuration got wrong

 

not working at all

 

buy on admin page why it shows the path like C:/xxxx/xxxx/xxxx/.....

 

anyway thanks for help.......

Posted

post your catalog\admin\includes\configure.php

minus the dbase sensitive info.

Posted
post your catalog\admin\includes\configure.php

minus the dbase sensitive info.

 

<?php

/*

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.hiaus.net'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.hiaus.net');

define('HTTPS_CATALOG_SERVER', 'https://www.hiaus.net');

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

define('DIR_FS_DOCUMENT_ROOT', '/uvshop/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/uvshop/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'uvshop/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/uvshop/'); // absolute path required

define('DIR_FS_CATALOG', '/uvshop/'); // absolute path required

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'hpgd_max');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'hpgd_uvshop');

define('USE_PCONNECT', 'true'); // use persisstent connections?

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

?>

Posted

One more problem, after I add "more_pic " function for the product that I can add more pictures for displpay.

 

I got error message "Error: Catalog images directory does not exist: /uvshop/images/" shown on the top(the pink background).

 

How can i modify it?

Posted

change the following two DIR_FS defines:

 

define('DIR_FS_ADMIN', 'uvshop/admin/'); // absolute pate required
define('DIR_FS_CATALOG', '/uvshop/'); // absolute path required

 

to

 

  define('DIR_FS_ADMIN', $DOCUMENT_ROOT.'/uvshop/admin/');
 define('DIR_FS_CATALOG', $DOCUMENT_ROOT.'/uvshop/');

 

If that doesn't work you will need to place the full path of the server in the place of $DOCUMENT_ROOT

Archived

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

×
×
  • Create New...