Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What happened to my modules???


Guest

Recommended Posts

Posted

When I go into the admin and go to install any module -- nothing is listed - only a path th the module directory... where did i go wrong?

Posted

Check the settings in admin/includes/configure.php

 

In particular, make sure the absolute path defines (such as DIR_FS_CATALOG_MODULES) are correct for your server file system.

 

Your description of the symptom is not very specific, so if you need more help please give more details of the observed behavior.

Posted

I want to install/configure the base payment, shipping and order_entry modules. Right now I can go through the order process and I'm never asked for a shipping method or payment method.

 

I go into the admin pages and select the modules section, but other than a path displayed to where the modules folder is on the server, I have no options. There's a button that says install, but when clicked it doesn't seem to be doing anything...

 

i"ve messed with the DIR_FS_CATALOG_MODULES even to the point of hard coding the entire path, but nothing seems to change teh behavior in the admin section

Posted

You need to check BOTH configure.php files. There is one for the admin side at admin/includes/configure.php, and another at catalog/includes/configure.php.

 

If you are not seeing module choices in admin, I'd say the problem is in admin/includes/configure.php.

 

It stands to reason that when no modules have been activated on the admin side, there are no choices presented on the catalog side.

Posted

This is part of my admin/includes/configure.php page....

define('HTTP_SERVER', 'https://host162.ipowerweb.com/~moviemar/ecommerce/os'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'https://host162.ipowerweb.com/~moviemar/ecommerce/os');

define('HTTPS_CATALOG_SERVER', 'https://host162.ipowerweb.com/~moviemar/ecommerce/os');

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

Posted

this is what shows up in admin:

 

Module Directory: /catalog/includes/modules/shipping/

Posted

As it happens, I have installed a few sites at iPowerWeb so we can compare from my experience.

 

The first thing that looks odd is that you have extended the path farther than I believe necessary, for HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER. This may not be causing the problem, but I would use:

define('HTTP_CATALOG_SERVER', 'https://host162.ipowerweb.com/~moviemar');
define('HTTPS_CATALOG_SERVER', 'https://host162.ipowerweb.com/~moviemar');

Note: no trailing slash.

 

If you want to point the rest of the defines at the lower directory level (/ecommerce/os), establish that in the root define:

 

define('DIR_FS_DOCUMENT_ROOT', '/home/moviemar/public_html/ecommerce/os');

 

This would be the file system path for the catalog:

define('DIR_FS_CATALOG', '/home/moviemar/public_html/ecommerce/os/catalog');

 

Alternatively, you could point the root defines to /public_html, then set

define('DIR_FS_CATALOG', '/ecommerce/os/catalog/');

Posted

Well I made those changes in my admin/includes config and it didn't get any better. I tried both versions for root.

 

How about this -- what does the act of 'installing' a module actually do? Does it change a file or add a flag in the database? How can I work around the interface?

Posted

try this

 

define('HTTP_SERVER', 'https://host162.ipowerweb.com'); 
define('HTTP_CATALOG_SERVER', 'http://host162.ipowerweb.com');
define('HTTPS_CATALOG_SERVER', 'https://host162.ipowerweb.com');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/moviemar/public_html~moviemar/ecommerce/os/catalog/');
define('DIR_WS_ADMIN', '/~moviemar/ecommerce/os/catalog/admin/'); 
define('DIR_FS_ADMIN', '/home/moviemar/public_html~moviemar/ecommerce/os/catalog/admin/');
define('DIR_WS_CATALOG', '/~moviemar/ecommerce/os/catalog/');
define('DIR_FS_CATALOG', '/home/moviemar/public_html/~moviemar/ecommerce/os/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/');

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.

Posted

Well now I get a 404 error... on everything I click on off the admin/index.php

 

At least before I didn't error out on any pages, I just couldn't install modules.

 

Any other ideas? I'm really getting bummed. I know it has to be a simple thing too...

Posted

Can I just add requires lines someplace to include what I want to use for payment, shipping . . . ?

Posted

How about this: I puled this out of modules.php ~ should there be code for the case 'install':?

 

 

 

if (tep_not_null($action)) {

switch ($action) {

case 'save':

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");

}

tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));

break;

case 'install':

case 'remove':

$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));

$class = basename($HTTP_GET_VARS['module']);

if (file_exists($module_directory . $class . $file_extension)) {

include($module_directory . $class . $file_extension);

$module = new $class;

if ($action == 'install') {

$module->install();

} elseif ($action == 'remove') {

$module->remove();

}

}

tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class));

break;

}

}

Posted

is your admin directory inside your catalog directory and is the FS_CATALOG define in catalog/includes/configure.php

define('DIR_FS_CATALOG', '/home/moviemar/public_html/~moviemar/ecommerce/os/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.

Posted

is your admin directory inside your catalog directory and is the FS_CATALOG define in catalog/includes/configure.php

define('DIR_FS_CATALOG', '/home/moviemar/public_html/~moviemar/ecommerce/os/catalog/');

 

I missed a / for the ws and fs admin between public_html and ~moviemar that is why the 404 error wich would have shown the path was wrong

 

and admin/includes/configure.php

define('HTTP_SERVER', 'https://host162.ipowerweb.com'); 
define('HTTP_CATALOG_SERVER', 'http://host162.ipowerweb.com');
define('HTTPS_CATALOG_SERVER', 'https://host162.ipowerweb.com');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/moviemar/public_html/~moviemar/ecommerce/os/catalog/');
define('DIR_WS_ADMIN', '/~moviemar/ecommerce/os/catalog/admin/'); 
define('DIR_FS_ADMIN', '/home/moviemar/public_html/~moviemar/ecommerce/os/catalog/admin/');
define('DIR_WS_CATALOG', '/~moviemar/ecommerce/os/catalog/');
define('DIR_FS_CATALOG', '/home/moviemar/public_html/~moviemar/ecommerce/os/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/');

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.

Posted

my adim is not inside catalog, it's on the same level. i fixed that. i no longer get the 404, but still have the issue where nothing happens when i click install.

 

i guess i'm going to try to manually add records to the conguration table in the db.

Posted

well that was a failure too.... kinda in a bind. i was supposed to get this site up by the end of this week. maybe i'll just buy something already configured.

Posted

You see this is what happens when all the information is not given.

Remember we cannot see what you can so we are working blind and rely on good POSITIVE feedback from you in order to help.

The fact that your admin is at the same level as catalog would save a lot of wasted time and effort on our part.

We try to help, it does not work, because we are not aware of all the facts, and all we get as feedback is well that doesn't work, maybe I should just buy something, whinge, negativity gets nothing.

 

define('HTTP_SERVER', 'https://host162.ipowerweb.com'); 
define('HTTP_CATALOG_SERVER', 'http://host162.ipowerweb.com');
define('HTTPS_CATALOG_SERVER', 'https://host162.ipowerweb.com');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/moviemar/public_html/~moviemar/ecommerce/os/catalog/');
define('DIR_WS_ADMIN', '/~moviemar/ecommerce/os/admin/'); 
define('DIR_FS_ADMIN', '/home/moviemar/public_html/~moviemar/ecommerce/os/admin/');
define('DIR_WS_CATALOG', '/~moviemar/ecommerce/os/catalog/');
define('DIR_FS_CATALOG', '/home/moviemar/public_html/~moviemar/ecommerce/os/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/');

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.

Posted

You have got to be kidding me... you want to lay into me for not knowing what info you want. Three posts up i mentioned I fixed the code that was posted to take into account that the admin dir was on the same level as the catalog. I also said I was going to try and manually enter the values in teh config table. Neither the code you posted or my adding values to the config table helped my situation. I don't think my negativity even compares to your elitist response. You obviously think it's ok to talk down to someone who just doesn't have the experience you do. Not cool. How am I supposed to know what's important and what isn't? Everyone has to start someplace right? I come here looking for help and I end up with this.

Archived

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

×
×
  • Create New...