Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 11-24-2014, 04:31 AM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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()));
	//  	}
	//}
Reply With Quote
  #2  
Old 11-24-2014, 05:00 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 11-24-2014, 06:00 AM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerbert View Post
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
Reply With Quote
  #4  
Old 11-24-2014, 06:32 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have you tried uploading tools.php
Reply With Quote
  #5  
Old 11-24-2014, 06:59 AM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
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.
Reply With Quote
  #6  
Old 11-24-2014, 07:16 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NickTheGreek View Post
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
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.
Reply With Quote
  #7  
Old 11-24-2014, 07:30 AM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellarius View Post
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
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 11:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06802 seconds
  • Memory Usage 2,221KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete