Support » Networking WordPress » Creating a new site creates a Fatal error: Call to protected method WP_Roles::_

  • I have installed WordPress and tried to create a Multisite.

    I’m sorry but this is really stressing me out. I have installed wordpress and multisite, (with subdirectories) but when I add a new site it comes up with

    Fatal error: Call to protected method WP_Roles::_init() from context ” in /var/sites/n/northwickmanorblogs.com/public_html/wp-includes/ms-functions.php on line 1382

    It creates a site under the ‘My sites’ section, but does not create the URL so I cannot visit the site.

    If I hover my mouse over ‘My sites’ at the top of the screen [next to the wordpress login] it does not appear there

    I am new to all of this and trying to create class blogs for our school. I don’t understand why it doesn’t work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Can you copy/paste your htaccess file here & also your wp-config.php (please remove the DB credentials and salt keys before pasting)

    Thanks

    I think it works now but I would appreciate you checking

    wp-config

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'northwickmanorblogs.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    .ht access

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Plugin Review Team Rep

    I edited your post. If you see what you have now, when someone asks for your multisite wp-config info, that’s ALL we want 🙂

    If it’s working now, what changed? Normally I’d say a rogue plugin…

    I have exactly the same error. My config and .htaccess files are identical to the ones above. I have also tried deactivating all the plugins and I still get the error.

    Any help would be great!

    Thanks,

    Moderator Bet Hannon

    (@bethannon1)

    Support Team Volunteer Coordinator

    ben_barton, please post your own new support request. That’s the best way to get help with your specific situation, since even when it seems like you have exactly the same issue, there can be many differences.

    When you do, please let us know if you have tried deactivating all plugins, both network activated, and those activated on any site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Creating a new site creates a Fatal error: Call to protected method WP_Roles::_’ is closed to new replies.