• We stopped working with the former superuser well over a year ago, though he told me when we parted that he had given me superuser status. Wrong, but based on that misinformation, I deleted the superuser. Ok, that was dumb, but now how do I re-create a superuser and assign it to myself?

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Look at the last method here:

    http://drawne.com/add-super-admin-wordpress-network/

    If you know the numeric ID for your own user record, you can make yourself a superadmin.

    This will solve your problem. follow the steps carefully.

    http://www.inmotionhosting.com/support/edu/wordpress/333-add-admin-via-mysql

    Thread Starter jackcunha

    (@jackcunha)

    !. I know my user name, but not number. How would I find it?
    2. I do not know how to access the cPanel interface. Where do I find it?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    look at wp_users in phpmyadmin to get your user id or look at Users -> All Users. Hover over the leftmost link for your ID (to the right of your avatar) and you’ll see an “id=” in the URL. that’s your database ID.

    Contact your host for help getting to the cpanel or phymyadmin.

    Thread Starter jackcunha

    (@jackcunha)

    I determined my ID number in phpMyAdmin, as suggested by sterndata, but I cannot find wp-content, let alone functions.php. Where do I look for it? As for the next to last option, there is no wp_sitemeta table in phpMyAdmin for my site.

    As for the suggestion made by Wooninjas, I succeeded in adding an admin per the steps laid out, but it created another administrator, like me, not a superadmin (superuser). Is there code which would create a superuser, rather than an administrator?

    Thread Starter jackcunha

    (@jackcunha)

    The only .php files I find are in Appearance, then Editor, but there is no function.php.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    are you on a multisite system? You used super admin, but perhaps that’s no what you meant.

    Thread Starter jackcunha

    (@jackcunha)

    I found function.php. However, when I added the code, I got this message, “Fatal error: Call to undefined function grant_super_admin() in /data/21/3/30/21/3682184/user/4095120/htdocs/wp-content/themes/auriga/functions.php on line 230”

    Thread Starter jackcunha

    (@jackcunha)

    Now, I cannot get into the portal at all. When I try, the error message set out above appears.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    download that file via FTP, delete the line in question, and re-upload it.

    Thread Starter jackcunha

    (@jackcunha)

    Where do I go, what site, to FTP the file? As it turns out, my site is also crashed. When I try to reach it, cunhaholcomb.com, the “Fatal error: Call to undefined function grant_super_admin() in /data/21/3/30/21/3682184/user/4095120/htdocs/wp-content/themes/auriga/functions.php on line 230” error message appears.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Check with your host for FTP information. The file is /wp-content/themes/auriga/functions.php.

    Thread Starter jackcunha

    (@jackcunha)

    I’m able to access the files through my host, but there are 6 different functions.php files. Should I look at them all? None are dated today.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    no, just the one you edited, which appears to be wp-content/themes/auriga/functions.php.

    Thread Starter jackcunha

    (@jackcunha)

    Ok, I fixed functions.php. Any other ideas on how to re-create a superadmin?

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Superuser deleted’ is closed to new replies.