Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Store suddenly stopped loggin in both storefront and admin


mszleminski

Recommended Posts

Hi all,

 

I'm helping out a friend who's been running a osCommerce based store (www.be.com.pl) with clothes for pregnant women and kids - somebody seems to have hacked the site or screwed up some setting (my guess) but I can't figure out what is amiss. I'm pretty new to osCommerce but I've been close to a ZenCart store a few years ago so I pretty much can find my way around the code, but I don't know enough PHP to really diagnose it.

 

Here are the symptoms: you cannot log in or register in the store, what's more worrying is that you cannot log into the admin panel either. The storefront itself seems OK otherwise - no problem at all seeing the products, etc. so there is SOME database connectivity...

 

I've checked the database and it seems to be fine, I was suspecting a problem with storage of sessions but couldn't find anything to either rule it out or confirm it... I've created the phpinfo() script you can access via http://www.be.com.pl/beshopping/admin/tech.php to look into the environment settings...

 

I have tried creating an admin with an empty password via the MySQL administrator but that didn't help.

 

I've added a line of code echoing a message after tep_db_connect in admin/includes/application_top.php so there does seem to be connectivity to the database. It's kind of as if anything that performs inserts or updates of data in the database were prohibited?

 

Here's the configuration.php file:

  define('HTTP_SERVER', 'http://be.com.pl'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://be.com.pl');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/users/be/public_html/beshopping/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/beshopping/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/users/be/public_html/beshopping/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/beshopping/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/users/be/public_html/beshopping/'); // 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/');

 

Please help me out with this, I'm trying to be a good friend here. :)

 

Thank you and have a great day

Maciek

Link to comment
Share on other sites

I just thought - is this a problem with php5 compatibility of osCommerce 1.2? Is there a known fix for this problem?

My guess it has to do with the redirect. All links in forms etcetera go to be.com.pl/beshopping/ but when you click the link the address bar says: www.be.com.pl/beshopping/.

 

I assume that with the redirect the post variables are lost. Change the includes/configure.php to include the www and everything will be fine again I guess.

 

Now that the information on what folder the admin can be found I would like to suggest to change the name of that (and change the admin/includes/configure.php to reflect that change).

Link to comment
Share on other sites

My guess it has to do with the redirect. All links in forms etcetera go to be.com.pl/beshopping/ but when you click the link the address bar says: www.be.com.pl/beshopping/.

 

I assume that with the redirect the post variables are lost. Change the includes/configure.php to include the www and everything will be fine again I guess.

 

Now that the information on what folder the admin can be found I would like to suggest to change the name of that (and change the admin/includes/configure.php to reflect that change).

 

WOW! That WAS it! Thank you so much, fantastic!

 

Any idea what might have caused it to stop working? I'm sure nobody touched these files in 4 years the store's been about - would an update to a version of the underlying server make that problem appear?

 

Thank you very much again!

 

Take care

Maciek

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...