Results 1 to 6 of 6

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 ...

      
  1. #1
    Lurker
    Join Date
    Mar 2004
    Posts
    4
    Rep Power
    0


    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

  2. #2
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    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

  3. #3
    Lurker
    Join Date
    Mar 2004
    Posts
    4
    Rep Power
    0


    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

  4. #4
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    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.

  5. #5
    Lurker
    Join Date
    Mar 2004
    Posts
    4
    Rep Power
    0


    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

  6. #6
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    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

Similar Threads

  1. Cannot access admin
    By wstinnett in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 12-09-2006, 10:37 AM
  2. Lost Admin Password
    By mamadawn in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 12-04-2006, 07:04 PM
  3. Help - Lost my Access to the Control Panel
    By PGelsman in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 08-08-2006, 11:03 PM
  4. Lost Admin Panel
    By auntie22 in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 04-30-2006, 10:40 AM
  5. can access admin panel but cannot access catalog
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 10-14-2003, 06:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •