Tagged: super admin privileges, warning
- This topic has 44 replies, 2 voices, and was last updated 2 years, 11 months ago by Syam Mohan.
July 27, 2019 at 4:47 pm #87457
After installing this plugin I noticed the warning “Important: This user has super admin privileges” on ALL non-admin “Edit User” pages. This warning even appears for users with no roles attached.
I have confirmed that these users do not actually seem to have any admin privileges. So this warning seems to be erroneous. Deactivating this plugin eliminates the warning.
Any help/fix would be appreciated!July 27, 2019 at 9:52 pm #87461
That message is not coming from this plugin. It looks like a conflict from a different plugin. Can you deactivate other plugins one by one to see which plugin gives you that message?
SyamJuly 29, 2019 at 3:13 pm #87509
Thanks for getting back to me, Syam!
The message is generated by WordPress, of course. But if it doesn’t appear with your plugin deactivated and then starts to appear as soon as I activate your plugin, wouldn’t this suggest that the plugin has at least something to do with it?
I don’t have any other plugins that touch users/roles installed. Could you help me narrow down the kind of plugin that might cause such a conflict with your plugin?
Thanks!July 30, 2019 at 8:47 pm #87554
I don’t see this issue in my test site. That’s why I think this is a conflict.
Can you list the plugins you have?
SyamJuly 30, 2019 at 10:15 pm #87556This reply has been marked as private.July 31, 2019 at 10:30 pm #87591This reply has been marked as private.July 31, 2019 at 10:50 pm #87592
Hi Syam, I deactivated all three. Message is still there.August 1, 2019 at 8:37 am #87613This reply has been marked as private.August 1, 2019 at 10:34 pm #87645
Hi Syam. Unfortunately, deactivating WooCommerce did not eliminate the warning.August 2, 2019 at 8:32 am #87677
Do you have access to the file system in your hosting server? What we want to do is a file system search in your WordPress directory with the message text to see which file contains this message.
SyamAugust 2, 2019 at 5:06 pm #87687
Yes, and I actually already did that. That’s how I knew that WordPress itself generates the message (\wp-admin\user-edit.php, line 191).
WP checks is_super_admin( $profileuser->ID ) && current_user_can( ‘manage_network_options’ ). Both function should return false for any non-admin user, but both seem to return true somehow when your plugin is active. I’m not a PHP programmer, so I don’t know how to debug this.August 2, 2019 at 9:26 pm #87692
I didn’t realize that. Is it possible for you to deactivate other plugins just for testing?
SyamAugust 6, 2019 at 2:36 pm #87769
I have deactivated all plugins one-by-one. The only deactivation that eliminated the warning was ‘WPFront User Role Editor Personal Pro’.
Please let me know how to proceed.August 6, 2019 at 5:20 pm #87771
I just noticed the following in the debug.log
[06-Aug-2019 11:45:35 UTC] PHP Notice: Undefined variable: post_type_obj in /www/htdocs/w01174e1/wp-dev/wp-content/plugins/wpfront-user-role-editor-personal-pro/includes/ppro/custom-post/class-customize-capabilities-pro.php on line 72 [06-Aug-2019 11:45:35 UTC] PHP Notice: Trying to get property '_builtin' of non-object in /www/htdocs/w01174e1/wp-dev/wp-content/plugins/wpfront-user-role-editor-personal-pro/includes/custom-post/class-customize-capabilities.php on line 105 [06-Aug-2019 11:45:35 UTC] PHP Notice: Trying to get property 'show_ui' of non-object in /www/htdocs/w01174e1/wp-dev/wp-content/plugins/wpfront-user-role-editor-personal-pro/includes/custom-post/class-customize-capabilities.php on line 109 [06-Aug-2019 11:45:35 UTC] PHP Notice: Trying to get property 'capability_type' of non-object in /www/htdocs/w01174e1/wp-dev/wp-content/plugins/wpfront-user-role-editor-personal-pro/includes/custom-post/class-customize-capabilities.php on line 109 [06-Aug-2019 11:45:35 UTC] PHP Notice: Trying to get property 'capability_type' of non-object in /www/htdocs/w01174e1/wp-dev/wp-content/plugins/wpfront-user-role-editor-personal-pro/includes/ppro/custom-post/class-customize-capabilities-pro.php on line 104
These lines seem to be repeated for every page load. Perhaps this has something to do with the warning issue?August 6, 2019 at 10:10 pm #87781
Can you give me access to your site, including FTP? Also is this a live site?
- You must be logged in to reply to this topic.