Admin account deleted!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StoneHalo
    Member
    • Nov 2003
    • 43

    Admin account deleted!

    Is there anyway to re-create the admin account after it's accidental deletion?

    I deleted a test user account but for some reason it's deleted the admin account

    Thanks
  • peterska2
    Senior Member
    • Oct 2003
    • 8869
    • 3.7.x

    #2
    erm. Ooops.

    I'm not sure if this will work but try :-
    • register another account
    • retrive config.php from your FTP client
    • find
    Code:
    // ****** SUPER ADMINISTRATORS ******
    // The users specified below will have permission to access the administrator permissions
    // page, which controls the permissions of other administrators
    $superadministrators = '1';
    • change the 1 to whatever the user id is of the account you have just created.
    • upload config.php
    • in theory you should now be able to access the admin panel
    hint - to prevent this happening in the future in config.php there is a setting for undeleteable/editable users. put the user id in there.

    Comment

    • StoneHalo
      Member
      • Nov 2003
      • 43

      #3
      Thanks for the reply but it didn't work, I still can't access the admin cp

      Comment

      • poolking
        Senior Member
        • Aug 2002
        • 2061

        #4
        Is there a getadmin.php file in the admin directory? If so use that. I think what people used to resolve this problem in vb2, I would think it would do the same thing if this file exists.

        Comment

        • StoneHalo
          Member
          • Nov 2003
          • 43

          #5
          I don't see a getadmin.php file.

          If I run the install script again will it delete all the forum info? It is a new unused install but I don't want to lose all the forum info I've entered.

          Comment

          • Stadler
            Senior Member
            • Oct 2001
            • 1021
            • 4.2.X

            #6
            Try setting your usergroupid to 6 (Admins) through phpMyAdmin.
            Hints & Tips:
            [[vB3] More Spiders / Indexers / Archives for vB3 - list]|[List of one-time-emails to ban]


            http://sfx-images.mozilla.org/affili...efox_80x15.png

            Comment

            • Steve Machol
              Former Customer Support Manager
              • Jul 2000
              • 154488

              #7
              There is no getadmin.php file for vB3 yet. For now you will need to register a new account and change the usergroup of this account to 6 with phpMyAdmin.
              Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
              Change CKEditor Colors to Match Style (for 4.1.4 and above)

              Steve Machol Photography


              Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


              Comment

              • StoneHalo
                Member
                • Nov 2003
                • 43

                #8
                Thanks, that worked

                I wasn't sure if I did delete the admin account by accident or what, but now I'm sure I didn't.

                I just tried to delete another two user accounts and get the following message each time:

                Could not find user with userid = 1.

                For some reason it's trying to delete the admin account every time!

                Comment

                • StoneHalo
                  Member
                  • Nov 2003
                  • 43

                  #9
                  I notice that in the AdminCP it reports every user as id: 1

                  Also get the following error when trying to view a user profile on the forum:

                  Invalid User specified. If you followed a valid link, please notify the webmaster.

                  Comment

                  • Mysterioso
                    New Member
                    • Dec 2003
                    • 6
                    • 3.0.0 Gamma

                    #10
                    I have the same exact issue. All new users are assigned the same id and user name regardless of what I enter, and if one is deleted I'm locked-out! What is the solution for this?



                    >I notice that in the AdminCP it reports every user as id: 1
                    >Also get the following error when trying to view a user profile on the forum:
                    >Invalid User specified. If you followed a valid link, please notify the webmaster

                    Comment

                    • StoneHalo
                      Member
                      • Nov 2003
                      • 43

                      #11
                      I did what Mike suggested here - http://www.vbulletin.com/forum/bugs...view&bugid=1741 which worked for me

                      Comment

                      • Freddie Bingham
                        Former vBulletin Developer
                        • May 2000
                        • 14057
                        • 1.1.x

                        #12
                        Alternatively, upgrade to RC3 which has this integrated.

                        Comment

                        • Mysterioso
                          New Member
                          • Dec 2003
                          • 6
                          • 3.0.0 Gamma

                          #13
                          Thanks for the suggestion, but I'm already running RC3. Tried mycookies.php to no avail. Deleted cookies manually, changed browsers, still no luck.

                          Comment

                          • Steve Machol
                            Former Customer Support Manager
                            • Jul 2000
                            • 154488

                            #14
                            Reupload the original init.php file from the RC3 zip file. Make sure you upload in ASCII and overwrite the one on the server.
                            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                            Change CKEditor Colors to Match Style (for 4.1.4 and above)

                            Steve Machol Photography


                            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                            Comment

                            • Mysterioso
                              New Member
                              • Dec 2003
                              • 6
                              • 3.0.0 Gamma

                              #15
                              Thanks, Steve. I'll give it a whirl.

                              Comment

                              Related Topics

                              Collapse

                              Working...