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
- How to check if image is already stored in a site’s post database? (network)
- Customize default settings on new sites on multisite
- Sorting list of sites from multisite network using wp_get_sites
- Create a global variable for use in all templates
- Display user’s total comment count outside The Loop
- Changing user_nicename
- How to auto login user again after change user_login
- Can i check if user is doing any ajax request?
- How do I create a WP user outside of WordPress and auto login?
- How to track a users progress through pages by inserting data into WordPress Database?
- Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP)
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- How to add values to media “whitelist_options” in wp-admin/options.php template?
- User’s total comment count excluding comments on their own posts
- User management system similar to wordpress one?
- Show all posts by author
- Programmatic Login from 3rd Party site
- Add New User, extra fields which are required?
- How to call plugin function per site in a multisite?
- WordPress returns “The link you followed has expired” error page whenever I add a new site, add a user etc
- Modify user profile data through scripting?
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- Do not execute If User is login as Administrator or any Specific Role
- Best practice for show data to one specific user?
- get_users meta_query: REGEXP not working for matching new lines
- Moving code from theme header to functions.php
- How to show a users bio on a page
- “operation successful” message
- Count posts on multisite with blog id
- How to avoid duplicates when creating recent network posts
- php if username is role
- How do I display offsite database info on my wordpress site?
- Timthumb.php image gallery not working on Multisite WordPress
- Find Site ID From WP_Post
- Is it possible to create new user from external form using REST API?
- Foreach loop inside an array_merge
- List all blogs, but exclude the main site
- Show current user posts only
- Change page password every day (predictable password ;) )
- show something only when user comes from specific page at remote host?
- Known Issues in WordPress When Upgrading PHP to ver 7
- WordPress homepage setup not working on first load
- Show site content based on user role
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- Why, when moving a WordPress multisite network, have my theme customisations stopped working?
- need help adding a new sidebar to a page that can’t use page-templates -> multisite
- How to list users like an archive page 10 users on page and have navigations
- How can I fix this code [duplicate]
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- WordPress Multisite login_redirect to primary blog and specific page based on role
- How can I update WordPress plugins or WordPress itself in all server?
- Change wordpress’ database data using ajax – how to get current user id?
- Sort new column in Users wp-admin
- Sort column in Users admin Tab
- Woocommerce display orders with products from specific categories to specific admins
- Admin Panel 404 Error after login
- How to block specific user id in custom login form?
- How to count active users on a specific page
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- If user has clicked link add class and store using PHP/WordPress
- Internal Server Errors – Moving working multi-site install to my localhost
- Store data from JavaScript object to custom table in user account
- How to change the value of a variable using input field?
- How do I track which user clicked my button?
- Annoying/confusing WordPress memory limit exhausted
- Create form which redirects to site in network?
- Redirect user role to a specific page on login in a multisite network?
- Changable favicon
- Use WP user status (logged_in) to manage access to independent application
- Query to show average # of months all accounts with specific role have been active
- Remove node from multisites?
- Add .php to end of all WordPress Pages (multisite)
- Editable Student file associated with basic User ID
- Matching multi user
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Updating custom user meta
- Resource 404 error on multisite subdirectory install
- Importing demo data in Multisite
- Update only some custom user fields
- main menu page redirects to user ID
- Adapting a php array to WordPress
- Get author meta of all writers
- Let users register weight each day and save it in DB
- WP multisite network plugin fails to see classes loaded with spl autoload
- Host does not allow remote connection, so how do I transfer data to my WordPress site?
- Custom PHP-coding in MU installs
- .htaccess on multisite and roots theme?
- Forbid certain users to access a specific page
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- WPMU – How to echo only one URL
- Import users and custom user meta from csv
- How to lock users account until approvation
- 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?
- How to create custom user role without plugin?
- PHP Works only for logged in users: [closed]
- Custom Admin Menu Report for Specific User ID
- How to add custom user role into wordpress