osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Lost admin access

This is a discussion on Lost admin access within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I have 2 shops that had to be restored because of a server crash... Everything seems to have worked fine ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-23-2004, 07:16 AM
Lurker
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pluggin
Default Lost admin access

I have 2 shops that had to be restored because of a server crash... Everything seems to have worked fine using Ensim control panel on both shops. The problem for both is that the admin login/pass don't work anymore so I cannot administrate and run tests on the carts.

Is there a way to retrieve/reset the log/pass for the admin? I don't remember doing anything special to secure the admin just followed the instructions on the default install homepage.

Thnx
Bert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 04-23-2004, 07:23 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

hi

you should be able to click the forgotten password link

failing that disable the line in application_top.php, right near the bottom of the file:

change

tep_admin_check_login();

to

//tep_admin_check_login();


and you won't be asked to log in. Then you can get in and set up a new user. Then restore the application_top.php file and use your new login.


Can you tell, I've had to do this myself?

jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-23-2004, 07:31 AM
Lurker
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pluggin
Default Can't get there

Looks like the restore wasn't accomplished completely... I can't access MyAccount or the Check Out processes are failing "Page Cannot be displayed".

The actual log/pass that I'm trying to access is for the shop admin, so I'm not sure that that solution would work. Any other ideas or do you think that that would work?

Thnx again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-23-2004, 08:34 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

Should do...I meant the application_top in admin/includes/, sorry, should have made that clear as there is one in catalog/includes as well.

The ideal way of course would be to restore the db through phpmyadmin or other program, rather than through OSCommerce (which you would have to log in to do!!). Then your password should work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 04-24-2004, 10:59 AM
Lurker
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pluggin
Default Can't find it...

Jon, I searched up and down this page and couldn't find the code tep_admin_check_login();

It looks like the site is running V 2.2ms2, let me know what you think...

Thanx again for the help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 04-25-2004, 02:54 PM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

ah, I assumed you were using MAX version from this site. If you are using a 2.2 version then you are only protected with a .htaccess login right? (the one where a little box pops up and asks you to enter your password)? This would make sense if you are using 2.2 as that would not have the tep_check_admin line.

If so then you need to set up a new .htaccess password on your site. Before you go to all that trouble, verify that this is the problem by deleting the existing .htaccess file in catalog/admin (don't actually delete it, rename it to something else so you can change it back). Make sure it's the catalog/admin one not the catalog/ one you're deleting

If the site now works this is your problem.

jw
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Cannot access admin wstinnett osCMax v2 Installation issues 5 12-09-2006 10:37 AM
Lost Admin Password mamadawn osCMax v2 Installation issues 1 12-04-2006 07:04 PM
Help - Lost my Access to the Control Panel PGelsman osCMax v2 Installation issues 0 08-08-2006 10:03 PM
Lost Admin Panel auntie22 osCMax v1.7 Discussion 2 04-30-2006 09:40 AM
can access admin panel but cannot access catalog Anonymous osCMax v1.7 Discussion 1 10-14-2003 05:28 PM


All times are GMT -8. The time now is 08:45 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax