{"id":8726190,"date":"2017-02-01T18:04:52","date_gmt":"2017-02-01T18:04:52","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-errors-with-basic-installation\/"},"modified":"2017-02-01T18:10:09","modified_gmt":"2017-02-01T18:10:09","slug":"php-errors-with-basic-installation","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-errors-with-basic-installation\/","title":{"rendered":"PHP Errors with Basic Installation"},"content":{"rendered":"<p>I am seeing a series of errors in the admin view whenever I&#8217;m logged in as a Section Editor user on my site. The errors are as follows:<br \/>\n<code>Notice: Undefined offset: 0 in \/var\/www\/html\/wp-content\/plugins\/bu-section-editing\/classes.capabilities.php on line 76<\/code><\/p>\n<p><code>Notice: Undefined offset: 0 in \/var\/www\/html\/wp-content\/plugins\/bu-section-editing\/classes.capabilities.php on line 80<\/code><\/p>\n<p><code>Notice: Trying to get property of non-object in \/var\/www\/html\/wp-content\/plugins\/bu-section-editing\/classes.capabilities.php on line 159<\/code><\/p>\n<p><code>Notice: Trying to get property of non-object in \/var\/www\/html\/wp-content\/plugins\/bu-section-editing\/classes.capabilities.php on line 161<\/code><\/p>\n<p>Steps to reproduce:<\/p>\n<ul>\n<li>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.<\/li>\n<li>As an administrator account, install and activate the BU Navigation and BU Section Editing plugins.<\/li>\n<li>Create a new user. Assign them the role of &#8220;Section Editor&#8221;.<\/li>\n<li>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.<\/li>\n<li>Log out of the admin account and log back in as the new section editor account<\/li>\n<\/ul>\n<p>The error messages from above are repeated on all pages in the WordPress admin area. No menus are visible in the sidebar.<\/p>\n","protected":false},"template":"","class_list":["post-8726190","topic","type-topic","status-publish","hentry","topic-tag-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8726190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":4,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8726190\/revisions"}],"predecessor-version":[{"id":8726219,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8726190\/revisions\/8726219"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8726190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}