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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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 |
| Thread Tools | |
| |
| ||||
| 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 |