In the DB, the wp_user_roles option in wp_options was empty. I copied the value from the same option in wp_2_options, as I had already added another blog.
Also, every user from the original blog (it was up and running before being changed to a network) had nothing listed against both the wp_capabilities and wp_user_level options in wp_usermeta. Because of this, the get_editable_roles() function was failing and in turn causing the errors listed above.
To fix this problem, for each user on the original blog, I copied the entries for the relevant user levels from the data stored under wp_2_capabilities and wp_2_user_level.
Related Posts:
- Integrating WordPress to my website, while keeping my own authentication system
- Adding users to another blog
- Running WP Cron on multisite the right way
- Add extra field to users
- How does wordpress know which site to setup (on multisite)?
- Remove/unset options field from backend Settings->General?
- Multisite get_home_url(); – Getting URL for current site
- What is the most efficient way to search users by their display name?
- Fix 403 error on WordPress multisite network using subdomains
- How do I hide specific user profile fields?
- automated tests as a user?
- How to create Sub Sub domain Multi User blogs?
- Why am I getting ERR_NAME_NOT_RESOLVED when I add a site to my multisite installation? [closed]
- get_users(…) only returns one user
- List User order by ID in Descending order (Backend)
- Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP)
- Custom php page outside the scope of my theme
- Get all user meta by meta key instead of ID
- Adding hreflang tags automatically in WordPress subdirectory multisite
- How to change home or site url using action hooks or filter?
- Show all posts by author
- wordpress media library new uploads don’t write to database
- Custom user login page by creating a plugin
- Get users that likes the post
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- add_cap not working
- NGINX rewrite rules for multisite
- wordpress archive a user
- WP & Server Speed [Teacher Question]
- Call to undefined function get_userdata() in plugin
- Change CSS based on is_user_logged_in
- Is it best to avoid using $wpdb for security issues?
- wp_redirect only works on main site and not on other sites
- How to avoid duplicates when creating recent network posts
- How do you create two separate Register pages?
- How to disable all logins except Network login in WordPress Multi site?
- Get the users that my following users are following
- create front-end users post list by specific category
- ‘pre_user_query’ interfering with user export
- php return username of currently viewed author profile
- Why, when moving a WordPress multisite network, have my theme customisations stopped working?
- Authentication from sub-folder non-wp cookie WordPress
- Redirect to current user page upon link click
- Use of antispambot with $curauth->email
- Uses for function: wp_update_user
- Display additional user fields
- How to sort posts by active category in WordPress?
- wordprees multi-site in user panel add filter
- How to Redirect Buddypress Directories To Login Page For Non Logged in Users
- Generate a QR code when creating a new WordPress user
- Change wordpress’ database data using ajax – how to get current user id?
- Allow a user or role to view drafts and previews, but not other admin privileges?
- Storing huge number of users in wordpress
- How to block specific user id in custom login form?
- Get current user id in function php
- how can I call a function when time expire
- Hide Approved status for certain users in users list
- Uploading/integrating custom user registration page
- Export WordPress User Meta to CSV/Excel
- Page template not working when logged out
- Merging Multiple WordPress Websites
- Display current user metadata on WordPress page
- Help hooking into user_register
- Multiple WordPress sites with different theme and plugin sharing the same content
- Add another role to a user when they click a button?
- wordpress more than one ajax request at the same time issue
- PHP script to redirect traffic based on website accessed
- Can’t get_users info by using json_encode
- List all blogs apart from the current blog and main blog in WordPress Multisite
- Changing WordPress author name in database
- Transfer WordPress Login Session to an Extended Webpage on the Same Domain
- Loop 1 user randomly
- List users in a dropdown for login
- use system script advertising in wordpress multisite
- How to set max users to 17.000
- WP Admin Bar – Get current theme name as custom menu title
- Trying to display user meta by “name” – not by “ID”
- How to ‘remember’ a site member’s last visited page?
- How to connect database table to each registered wordpress user.
- WPMU schedule doesn’t execute actions
- Trying to post information from a remote database to wordpress page
- Display a list of users with avatar filterable with alphabets
- Force string into signup form
- Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]
- Check if username doesn’t exists
- WP query with variables gives no result for specific user
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- Import users and custom user meta from csv
- How to lock users account until approvation
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- Getting invalid user ID error when creating a new user with wp_insert_user
- How to create a User Role and give permission to only use Web Stories plugin?
- add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico
- How to add custom user role into wordpress
- How to create a build for quickly deploying a server with WP?
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- Redirect WordPress page to the latest created post by the logged in author/user
- How to add query string at the end of sitemap Yoast SEO
- How to Customize the Admin Sidebar Menu in WordPress Multisite Network by changing the backend code of the wp-admin code files?
- Custom theme on multisite has issues with standard loop output