PDA

View Full Version : Have locked out of Admincp


TheAdminMarket
11-24-2014, 04:31 AM
Hello,

My problem in a short. Moving a site in another server I've lost the web files. I had only a MySQL backup.

Trying to recover I uploaded the files (vb 4.2.0) and then I changed the config.php to point to the database with the real data.

Now the problem. Trying to login to admincp I'm getting login details error for both admin accounts (I had 2). Even if I'm sure about the passwords (the usernames are correct as I checked them with phpMyAdmin), I tried to use the reset password function. And here is the problem. It shows the verification image without to show any image. Then with phpMyAdmin I disabled the Human verification (was set to Image), but still it shows it. As I understood the verification images does not cares what setting I've for human verification.

Any idea what else I can try to change to be able to login or recover the password?

Thank you

--------------- Added 1416812341 at 1416812341 ---------------

Ok fixed it. I removed from login.php

//if (fetch_require_hvcheck('lostpw'))
//{
// require_once(DIR . '/includes/class_humanverify.php');
// $verify =& vB_HumanVerify::fetch_library($vbulletin);
// if (!$verify->verify_token($vbulletin->GPC['humanverify']))
// {
// standard_error(fetch_error($verify->fetch_error()));
// }
//}

nerbert
11-24-2014, 05:00 AM
Can you register a new account? If you can, you can change the usergroup to admin with phpMyAdmin. Then you can assign your old accounts new passwords in admin CP

TheAdminMarket
11-24-2014, 06:00 AM
Can you register a new account? If you can, you can change the usergroup to admin with phpMyAdmin. Then you can assign your old accounts new passwords in admin CP

I had also tried it. I changed with phpMyAdmin the settings to allow registrations (I've turn them off), but trying to register I got the message the registartions are off.

Somehow I got a feeling that all changes that I did with phpMyAdmin had no effect. Unless (as it was already midnight), if I was working on another database with phpMyAdmin :D

ForceHSS
11-24-2014, 06:32 AM
have you tried uploading tools.php

TheAdminMarket
11-24-2014, 06:59 AM
have you tried uploading tools.php

No. Have never had the need to use them before, but I supposed that they'll need to login, something that it was impossible to do.

cellarius
11-24-2014, 07:16 AM
I had also tried it. I changed with phpMyAdmin the settings to allow registrations (I've turn them off), but trying to register I got the message the registartions are off.

Somehow I got a feeling that all changes that I did with phpMyAdmin had no effect. Unless (as it was already midnight), if I was working on another database with phpMyAdmin :D
Exactly. The settings are cached in datastore, and simply changing them in the settings table will have no effect. You need to refresh datastore, or change them in the datastore table, too.

TheAdminMarket
11-24-2014, 07:30 AM
You need to refresh datastore, or change them in the datastore table, too.

Thank you. At least now I feel safe because I got very serious the possibility to have worked in different database. Just before I did a check and I found that the changes were done in the right database.

Datastore table? hmmm....... Most probably it will has a lot of fields or records to check. Finally the modification of login.php was the easiest way.

Thank you all