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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 26, 2015 at 10:26 pm in reply to: Question about license #21357
    Phila Delphia
    Spectator
    This reply has been marked as private.
    October 22, 2015 at 9:01 pm in reply to: Errors when "edit pages" capability is removed #17952
    Phila Delphia
    Spectator

    Got it. Thanks for pointing me in the right direction.

    For anyone else: I was re-labeling “Pages” and the pages submenu to something else using the pretty standard method found here: http://code.tutsplus.com/articles/customizing-your-wordpress-admin–wp-24941

    However, that method doesn’t allow you to specify a submenu slug, causing the notice found above.

    I ended up having to use remove_submenu_page() to remove those submenus entirely and add_submenu_page() to add them back with the labels that I wanted. No more notices! This technique might a bit convoluted, but it does work.

    October 21, 2015 at 8:12 pm in reply to: Errors when "edit pages" capability is removed #17873
    Phila Delphia
    Spectator

    Hi Syam,

    Thanks for your quick response. I realize these are notices and yes, things do work even with the notices appearing. But I would prefer for them not to appear at all 🙂

    There are no fatal errors.

    I can consistently make the notices appear when I remove the “Edit Pages” capability from any of the standard WordPress roles, or apply a role like “Author,” which does not have Edit Pages capability by default.

    Here is the full error log:

    PHP message: PHP Notice: Undefined offset: 2 in /vagrant/wp-content/plugins/wpfront-user-role-editor-personal-pro/classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php on line 331
    PHP message: PHP Notice: Undefined offset: 2 in /vagrant/wp-content/plugins/wpfront-user-role-editor-personal-pro/classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php on line 331
    PHP message: PHP Notice: Undefined offset: 2 in /vagrant/wp-content/plugins/wpfront-user-role-editor-personal-pro/classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php on line 331
    PHP message: PHP Notice: Undefined offset: 2 in /vagrant/wp-content/plugins/wpfront-user-role-editor-personal-pro/classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php on line 331
    PHP message: PHP Notice: Undefined offset: 2 in /vagrant/wp/wp-admin/menu-header.php on line 135
    PHP message: PHP Notice: Undefined offset: 2 in /vagrant/wp/wp-admin/menu-header.php on line 136
    PHP message: PHP Notice: Undefined offset: 2 in /vagrant/wp/wp-admin/menu-header.php on line 139
    PHP message: PHP Notice: Undefined offset: 2 in /vagrant/wp/wp-admin/menu-header.php on line 143
    PHP message: PHP Notice: Undefined offset: 1 in /vagrant/wp/wp-admin/menu-header.php on line 166
    PHP message: PHP Notice: Undefined offset: 1 in /vagrant/wp/wp-admin/menu-header.php on line 166″

    October 20, 2015 at 11:14 pm in reply to: Errors when "edit pages" capability is removed #17823
    Phila Delphia
    Spectator

    Sorry, yes:
    Notice: Undefined offset: 2 in /wp-content/plugins/wpfront-user-role-editor-personal-pro/classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php on line 33

    And before the above notice, there is one from wordpress:
    Notice: Undefined offset: 2 in /wp/wp-admin/includes/plugin.php on line 1566

    So I’m wondering if there is something as simple as a missing param?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
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