vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Have locked out of Admincp (https://vborg.vbsupport.ru/showthread.php?t=315588)

TheAdminMarket 11-24-2014 04:31 AM

Have locked out of Admincp
 
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 [DATE]1416812341[/DATE] at [TIME]1416812341[/TIME] ---------------

Ok fixed it. I removed from login.php
Code:

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

Quote:

Originally Posted by nerbert (Post 2523919)
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

Quote:

Originally Posted by ForceHSS (Post 2523923)
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

Quote:

Originally Posted by NickTheGreek (Post 2523922)
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

Quote:

Originally Posted by cellarius (Post 2523925)
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


All times are GMT. The time now is 10:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02006 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete