1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Accidental Deletion of Admin account

Discussion in 'Troubleshooting and Problems' started by wickedstangs, Feb 5, 2013.

  1. wickedstangs

    wickedstangs Well-Known Member

    I deleted the Admin account and can't log in now.. How can I get back in?
     
  2. BamaStangGuy

    BamaStangGuy Well-Known Member

    Can't help you there but what is going on here...

    Online now: 1,642 (members: 1,631, guests: 11)
     
  3. wickedstangs

    wickedstangs Well-Known Member

    JAKE were are you buddy :)
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. Russ

    Russ Well-Known Member

  6. wickedstangs

    wickedstangs Well-Known Member

    Attached Files:

    • sql.JPG
      sql.JPG
      File size:
      16 KB
      Views:
      6
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Wrong user_id then. Specify the user_id of the user you registered.
     
  8. wickedstangs

    wickedstangs Well-Known Member

  9. wickedstangs

    wickedstangs Well-Known Member

    just did that now its blank when I log in..
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Step 3 from that post... make yourself a super admin in the config file.
     
    wickedstangs likes this.
  11. wickedstangs

    wickedstangs Well-Known Member

    on the config file do I change the name of the username and password that are in there?
     
  12. wickedstangs

    wickedstangs Well-Known Member

    ok, I got it now.. Thank You JAKE..
     
  13. AWS

    AWS Well-Known Member

    This line is what you edit:

    Code:
    $config['superAdmins'] = '1';
    Change the 1 to whatever the userid is of the new admin you created.
     
    wickedstangs likes this.
  14. wickedstangs

    wickedstangs Well-Known Member

    I get this while running tring to restore the admin?
    Server Error

    Mysqli statement execute error : Duplicate entry '1' for key 'PRIMARY'
    1. Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
    2. Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    3. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
    4. Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1591
    5. XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1580
    6. XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1381
    7. XenForo_DataWriter->save() in Waindigo/UndeleteUsers/Extend/XenForo/ControllerAdmin/User.php at line 49
    8. Waindigo_UndeleteUsers_Extend_XenForo_ControllerAdmin_User->actionUndelete() in XenForo/FrontController.php at line 310
    9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    10. XenForo_FrontController->run() in /home/boss302/public_html/admin.php at line 13
     
  15. Russ

    Russ Well-Known Member

    Best asking over there, I just remembered the plugin when I saw your issue :D
     
  16. BamaStangGuy

    BamaStangGuy Well-Known Member

    Well thanks for the answer.
     
  17. wickedstangs

    wickedstangs Well-Known Member

    lol if JAKE can't do it nobody can... He is the MAN!... The MYTH!... The LEGEND!...
     

Share This Page