• Resolved matuh

    (@matuh)


    I moved one WordPress blog with two sites to another server. I restored the backup and everything works fine. Now I logged in and there is only one site available from the My Sites menu. What happened to the other one? The site is up and working, but not available in the dashboard.

    Any ideas how to fix this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • What do you see when you go to the network admin?

    htrp://mymultisite.com/wp-admin/network/sites.php

    Thread Starter matuh

    (@matuh)

    I got this:

    You do not have sufficient permissions to access this page.

    Thread Starter matuh

    (@matuh)

    I found a solution:
    The easiest way to restore Super Admin privileges is to add a bit of code to your theme’s functions.php file to add yourself back:

    include(ABSPATH . ‘wp-admin/includes/ms.php’);
    $user = get_userdatabylogin(‘YOUR_USERNAME’);
    grant_super_admin($user->ID);

    Once your Super Admin privileges have been restored you can remove this code from your theme.

    Thanks for the tip Paul!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yikes, that’s dangerous. Anyone who logged in during that time would get super admin access.

    You can do this directly in the DB like this: https://halfelf.org/2013/recovering-your-cape/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Restoring multisite from backup’ is closed to new replies.