WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart

Tagged: super admin privileges, warning

  • This topic has 44 replies, 2 voices, and was last updated 4 years, 11 months ago by Syam Mohan.
Viewing 15 posts - 1 through 15 (of 45 total)
1 2 3 →
  • Author
    Posts
  • July 27, 2019 at 4:47 pm #87457
    Gerald Menzel
    Spectator

    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
    Syam Mohan
    Keymaster

    Hi Gerald,

    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?

    Thanks

    Syam

    July 29, 2019 at 3:13 pm #87509
    Gerald Menzel
    Spectator

    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
    Syam Mohan
    Keymaster

    Hi Gerald,

    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?

    Thanks

    Syam

    July 30, 2019 at 10:15 pm #87556
    Gerald Menzel
    Spectator
    This reply has been marked as private.
    July 31, 2019 at 10:30 pm #87591
    Syam Mohan
    Keymaster
    This reply has been marked as private.
    July 31, 2019 at 10:50 pm #87592
    Gerald Menzel
    Spectator

    Hi Syam, I deactivated all three. Message is still there.

    August 1, 2019 at 8:37 am #87613
    Syam Mohan
    Keymaster
    This reply has been marked as private.
    August 1, 2019 at 10:34 pm #87645
    Gerald Menzel
    Spectator

    Hi Syam. Unfortunately, deactivating WooCommerce did not eliminate the warning.

    August 2, 2019 at 8:32 am #87677
    Syam Mohan
    Keymaster

    Hi Gerald,

    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.

    Thanks

    Syam

    August 2, 2019 at 5:06 pm #87687
    Gerald Menzel
    Spectator

    Hi Syam,

    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
    Syam Mohan
    Keymaster

    Hi Gerald,

    I didn’t realize that. Is it possible for you to deactivate other plugins just for testing?

    Thanks

    Syam

    August 6, 2019 at 2:36 pm #87769
    Gerald Menzel
    Spectator

    Hi Syam,

    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
    Gerald Menzel
    Spectator

    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
    Syam Mohan
    Keymaster

    Hi Gerald,

    Can you give me access to your site, including FTP? Also is this a live site?

    Thanks

    Syam

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 45 total)
1 2 3 →
  • You must be logged in to reply to this topic.
Log In
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions