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
- 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
- Add extra field to users
- Display user’s total comment count outside The Loop
- 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
- How to use wp_insert_user on WordPress Multisite?
- Changing user_nicename
- How to auto login user again after change user_login
- What is the most efficient way to search users by their display name?
- Can i check if user is doing any ajax request?
- How do I create a WP user outside of WordPress and auto login?
- Showing user ID on user main page from screen options
- Getting the Current User
- Sort posts from multiple sites by date
- Fix 403 error on WordPress multisite network using subdomains
- How do I hide specific user profile fields?
- Authenticating to WordPress, using my own authentication two-factor system
- How to track a users progress through pages by inserting data into WordPress Database?
- automated tests as a user?
- How can I default to all WordPress roles when parameter is not included in shortcode?
- there’s a way to include a minimal WP for check only the current user, its roles (caps?) and then release/free it?
- 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]
- Delete option value from array using update_option()
- 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
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- Adding hreflang tags automatically in WordPress subdirectory multisite
- How to get a list of all possible values of a specific user meta key?
- How to add values to media “whitelist_options” in wp-admin/options.php template?
- How to change home or site url using action hooks or filter?
- User’s total comment count excluding comments on their own posts
- User management system similar to wordpress one?
- Show all posts by author
- wordpress media library new uploads don’t write to database
- Custom user login page by creating a plugin
- Programmatic Login from 3rd Party site
- WordPress returning 404 for multisite pages
- Add New User, extra fields which are required?
- How to call plugin function per site in a multisite?
- user_profile_update_errors hook not executing
- 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?
- 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
- 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
- wordpress archive a user
- Best practice for show data to one specific user?
- WP & Server Speed [Teacher Question]
- Call to undefined function get_userdata() in plugin
- get_users meta_query: REGEXP not working for matching new lines
- Moving code from theme header to functions.php
- Change CSS based on is_user_logged_in
- How to show a users bio on a page
- “operation successful” message
- Is it best to avoid using $wpdb for security issues?
- Count posts on multisite with blog id
- wp_redirect only works on main site and not on other sites
- 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
- How do you create two separate Register pages?
- 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
- How to disable all logins except Network login in WordPress Multi site?
- Change page password every day (predictable password ;) )
- show something only when user comes from specific page at remote host?
- Get the users that my following users are following
- create front-end users post list by specific category
- 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
- Change WordPress Multisite Domain to subfolder
- Redirect WordPress page to the latest created post by the logged in author/user
- Only registered users can see part of the contents of single.php
- change Dashboard default page on login
- Enabling pretty permalinks with Docker, Multisite WordPress and Caddy
- Running WP-Cron on Multisite networks the right way?
- 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
- Set custom post type to load custom block pattern by default
- REST API request between domain and subdomain