Forum Replies Created
-
AuthorPosts
-
Phila DelphiaSpectatorThis reply has been marked as private.Phila DelphiaSpectator
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.
Phila DelphiaSpectatorHi 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″Phila DelphiaSpectatorSorry, 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 33And before the above notice, there is one from wordpress:
Notice: Undefined offset: 2 in /wp/wp-admin/includes/plugin.php on line 1566So I’m wondering if there is something as simple as a missing param?
-
AuthorPosts