PHP Errors with Basic Installation
-
I am seeing a series of errors in the admin view whenever I’m logged in as a Section Editor user on my site. The errors are as follows:
Notice: Undefined offset: 0 in /var/www/html/wp-content/plugins/bu-section-editing/classes.capabilities.php on line 76
Notice: Undefined offset: 0 in /var/www/html/wp-content/plugins/bu-section-editing/classes.capabilities.php on line 80
Notice: Trying to get property of non-object in /var/www/html/wp-content/plugins/bu-section-editing/classes.capabilities.php on line 159
Notice: Trying to get property of non-object in /var/www/html/wp-content/plugins/bu-section-editing/classes.capabilities.php on line 161
Steps to reproduce:
- Set up a basic WordPress 4.7 site with no plugins. Make sure that the active theme is the default Twenty-Seventeen theme (this error occurs with all themes, but using the default rules out weird functions.php conflicts). Server is running PHP 5.6.30.
- As an administrator account, install and activate the BU Navigation and BU Section Editing plugins.
- Create a new user. Assign them the role of “Section Editor”.
- Create a new Section Group. Give it a name and some content that can be edited. Assign the new user to this section group and save it.
- Log out of the admin account and log back in as the new section editor account
The error messages from above are repeated on all pages in the WordPress admin area. No menus are visible in the sidebar.
- The topic ‘PHP Errors with Basic Installation’ is closed to new replies.