Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modules not working


salamander

Recommended Posts

Hello everyone,

 

For some reason none of my shipping, payment, etc modules work.

 

They are in all in the correct folder and all the paths in the URL seem to be pointing to the correct place, yet, none are shown on the admin or when I try to purchase an item

 

 

When I go to the admin section for modules, it shows:

 

Module Directory: /var/www/html/catalog/includes/modules/payment/ (

which IS the correct folder on the server)

 

I recently migrated the store from a now no longer active hosting account. Somewhere in one of my edits I messed something up, but I have spent the last 4 hours trying to get this to run and I am hitting a brick wall.

 

I double checked that /var/www/html/ was the proper document root and it is the right one. I called the hosting company to verify (mediatemple) and it is what is shown in my ftp as well when I am in that exact folder. I have exhausted pretty much every avenue with this, aside from the self-defolliculation I am already experiencing.

 

some possibly relevant code from the configure.php in admin (don't mind the x's in url)

  define('HTTP_SERVER', 'http://www.xxxxxxxx.xxx'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.xxxxxx.xxx');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/var/www/html/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/var/www/html/catalog/'); // 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_ADMIN . 'backups/')

 

Thank you very very VERY much in advance for any help you migth provide

Link to comment
Share on other sites

OH!, as an addendum to this:

I am also having this error in the admin when I go to the catalog section:

Error: Catalog images directory does not exist: /var/www/html/catalog/images/

 

Again, that's the proper folder, it has the proper permissions as well (777). This is only in the admin, image-wise the store does not seem to have any problems. Because of that, I am far more interested on solving the problem above, but mentioning it in case they are related and it might help in getting this working again.

Link to comment
Share on other sites

Well, nevahmind.

 

something DID change on the server. Before I was able to access the folders with that path, but now a far longer one is needed which I found in the hosting admin. The only thing that changed that could have affected this is the addition of an alternate domain. But that's just guess. Either way, the modules work, the admin is working, the error on the images path is gone, and my hairs let out a sigh of relief at knowing their ripping off fate has been adverted.

 

self-defolliculation phase cancelled. :)

Link to comment
Share on other sites

Hi !

I found your topic on osCommerce forums, where you explained you had problems with your paths and some errors in the admin side.

My hosting company is MediaTemple too and I experience exactly the same problems described in your posts !!!

I get errors in the payment and shipping modules, in the catalog, the error 'images directory does not exist' ...

 

The line where my document root path is defined, in /catalog/admin/includes/configure.php :

*******

define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/'); // where the pages are located on the server

*******

 

However, when I use mediatemple's file manager, the catalog's images' directory is always shown as /var/www/html/catalog/images/

 

You say you changed the document root path ('/var/www/html/') with a longer one; please please could you tell it to me because this one isn't working. :(

I've spend 3 days working on permissions and paths and files that generate those errors... without success

 

Thanks in advance

 

Julien

Link to comment
Share on other sites

  • 3 weeks later...

Hi !

My problem is solved for a long time, but I thought to any other MediaTemple's user that could have the same problem...

 

The correct path is :

 

define('DIR_FS_CATALOG', '/home/virtual/yoursite.com/var/www/html/catalog/');

 

That's all ! :thumbsup:

 

Bye

Link to comment
Share on other sites

  • 4 months later...

I am having this same problem. My modules disappeared and the error about the images directory shows in the admin area.

 

I am not hosted with MediaTemple, but can you help me solve my problem. It sounds like a path problem. I am hosted with Shieldhost (www.shieldhost.com). I submitted a support ticket asking what the document root is, but didn't hear back from them yet.

 

Here is some of the code from store/admin/includes/configure.php:

 

  define('HTTP_SERVER', 'http://www.harpsofpraisehf.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.harpsofpraisehf.com');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/store/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/virtual/site86/fst/var/www/html/store/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/store/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/virtual/site86/fst/var/www/html/store/'); // absolute path required
 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_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

 

Do you see anything that could be causing the problem?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...