$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Multisite network admin - User's role not showing up|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Multisite network admin - User's role not showing up

matteradmin9PV0评论

I upgrade my wordpress to 4.7.1 two days ago, then i am having trouble with my roles in the multisite admin. My issue is similar with this one, where the roles are not visible in my multi-site admin panel. Why are my roles not visible in a Multi-site/Network?

But the wp_##_options' table was alright in my database, so their solution does not work for me.

In my case, the roles are correct in .php. See below image.

But it does not show up in my multi-site admin interface. See below image. The URL for this interface on my site is :.php

In addition, the roles are not listed at the User information table either. See below image:

Am i missing something? Any hints? Thanks!

I upgrade my wordpress to 4.7.1 two days ago, then i am having trouble with my roles in the multisite admin. My issue is similar with this one, where the roles are not visible in my multi-site admin panel. Why are my roles not visible in a Multi-site/Network?

But the wp_##_options' table was alright in my database, so their solution does not work for me.

In my case, the roles are correct in https://www.exampleblog/wp-admin/user-new.php. See below image.

But it does not show up in my multi-site admin interface. See below image. The URL for this interface on my site is :https://www.exampleblog/wp-admin/network/site-users.php

In addition, the roles are not listed at the User information table either. See below image:

Am i missing something? Any hints? Thanks!

Share Improve this question edited Apr 13, 2017 at 12:37 CommunityBot 1 asked Jan 20, 2017 at 17:41 LisaLisa 1011 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

This worked for me:

Make sure the row in option-table in the database for wordpress-site have the correct option_name for the serialised roles-data.

For instance; if the database-table is wp_options, the column option_name in the role-row should be wp_user_roles. if the database-table is wp_20_options, the column option_name in the role-row should be wp_20_user_roles.

Don't ask me how long it took me to find out.

Hope it helps.

Post a comment

comment list (0)

  1. No comments so far