Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot install modules.


Guest

Recommended Posts

In my payment folder there are many modules.php's in there. But, in the admin to install them doesn't work. There is none to choose from. It tells me:

 

Module Directory: /home/element/public_html/shopincludes/modules/payment/

 

that is where they are, I need them installed. Help?

Link to comment
Share on other sites

you must have something wrong in your configure.php as your directory is pointing to .../public_html/shopincludes and it should be going to .../public_html/shop/includes

Link to comment
Share on other sites

If you have FTP access or WebShell access to your account, you might try downloading the configure.php from the /catalog/includes/ directory, opening it up in an editor program like Dreamweaver or Wordpad and searching for public_html/shopincludes

 

When you find that just replace it with public_html/shop/includes

 

Then save your file and upload configure.php back up into the catalog/includes/ directory that you found it in.

 

Hopefully that helps.

 

Kevin

Link to comment
Share on other sites

There is nothing in the config file that says shopincluds:

 

 

/*

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://elementic.org');

define('HTTPS_SERVER', 'https://elementic.org');

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

define('HTTP_COOKIE_DOMAIN', 'elementic.org');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

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

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

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

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'element_osc1');

define('DB_SERVER_PASSWORD', 'jPGZX_TL4d');

define('DB_DATABASE', 'element_osc1');

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

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

Link to comment
Share on other sites

I don't know if this is the exact problem or not but you haven't defined your file system path on this line:

 

define('DIR_FS_CATALOG', '');

 

Looking at my own configure.php, I think this could be causing problems?

 

Mine looks like:

 

define('DIR_FS_CATALOG', '/homepages/46/d89334920/htdocs/logicalcreation.net/catalog/');

 

You might want to try defining this to see if it solves the problem? Without that it could simply be commenting out a / that is needed and possibly even a character after that since / comments out things like ' " and / in php code practice.

 

Kevin

Link to comment
Share on other sites

you might want to try your whole docroot path... since you are using PHP I'll just put up a little bit of code so you can find that information. Just copy and paste into a php file, upload to directory you want complete FS path for and voila.

 

<?php print $DOCUMENT_ROOT ?>

 

That seems remarkably simple and almost stupid but I change hosting companies alot and it has proven itself invaluable because sometimes they don't respond quickly or it is 3 am and nobody is there to help.

Link to comment
Share on other sites

you can go to the admin section, tools, then click on server info, search for document_root and you will also see the correct path to put in there

Link to comment
Share on other sites

This line is not correct as it has an extra "/" before it:

define('DIR_WS_MODULES', DIR_WS_INCLUDES . '/modules/');

 

Although that error should give you a path of shop/includes//modules I would change it regardless to:

 

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

Link to comment
Share on other sites

While you can still edit your post with your file you might want to remove the bottom section that is showing your passwords to the world so we all don't come along and hack your server later on after a few beers. :)

 

This part:

// define our database connection
define('DB_SERVER', 'xxxxxx');
define('DB_SERVER_USERNAME', 'xxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxxxxx');
define('DB_DATABASE', 'xxxxxx');

Link to comment
Share on other sites

Oh, and it says

 

Module Directory: /home/element/public_html/shopincludes/modules/payment/

 

for shipping and ordertotal modules also.

Link to comment
Share on other sites

Once you get the "oops" taken care of can you repost what your shop/includes/configure.php file looks like now (don't make any more changes for a few minutes), also post your admin/includes/configure.php file. Just make sure to delete the database section out of both files when you post them.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...