Title: PHP error when subscriber logs in
Last modified: January 26, 2019

---

# PHP error when subscriber logs in

 *  [code3creative](https://wordpress.org/support/users/code3creative/)
 * (@code3creative)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-error-when-subscriber-logs-in/)
 * I am using Admin Menu Editor to change a few menu names and move a few things
   around – nothing out of the ordinary. However, I have test user I have created
   with “Subscriber” access and when I log in as him to the Dashboard, I get the
   following PHP errors at the top of the Dashboard. What’s wrong?
 *     ```
       parameter 1 to be array, null given in /homepages/44/d732515959/htdocs/clickandbuilds/Dev3/wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php on line 4254
   
       Warning: Invalid argument supplied for foreach() in /homepages/44/d732515959/htdocs/clickandbuilds/Dev3/wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php on line 4258
   
       Warning: Invalid argument supplied for foreach() in /homepages/44/d732515959/htdocs/clickandbuilds/Dev3/wp-admin/includes/plugin.php on line 1566
   
       Warning: Cannot modify header information - headers already sent by (output started at /homepages/44/d732515959/htdocs/clickandbuilds/Dev3/wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php:4254) in /homepages/44/d732515959/htdocs/clickandbuilds/Dev3/wp-admin/includes/misc.php on line 1144
   
       Warning: Cannot modify header information - headers already sent by (output started at /homepages/44/d732515959/htdocs/clickandbuilds/Dev3/wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php:4254) in /homepages/44/d732515959/htdocs/clickandbuilds/Dev3/wp-includes/option.php on line 919
   
       Warning: Cannot modify header information - headers already sent by (output started at /homepages/44/d732515959/htdocs/clickandbuilds/Dev3/wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php:4254) in /homepages/44/d732515959/htdocs/clickandbuilds/Dev3/wp-includes/option.php on line 920
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-when-subscriber-logs-in%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-error-when-subscriber-logs-in/#post-11143951)
 * Judging by where the error message was triggered, the admin (sub)menu is completely
   empty for that user. This is unusual because typically even a Subscriber would
   have access to at least “Dashboard -> Home”.
 * This could be caused by a plugin or theme conflict. Are you using any other plugins
   that change or hide admin menus? Have you made any changes to Subscriber permissions,
   like removing any of their default capabilities?
 *  Thread Starter [code3creative](https://wordpress.org/support/users/code3creative/)
 * (@code3creative)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-error-when-subscriber-logs-in/#post-11151377)
 * The only other plugin that could impact is Profile Builder, but I deactivated
   that plugin and tried and still had the same PHP errors. Can you email you admin
   credentials and you take a look inside?
 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-error-when-subscriber-logs-in/#post-11152069)
 * Sure. My email address is: `whiteshadow@w-shadow.com`

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP error when subscriber logs in’ is closed to new replies.

 * ![](https://ps.w.org/admin-menu-editor/assets/icon-128x128.png?rev=1418604)
 * [Admin Menu Editor](https://wordpress.org/plugins/admin-menu-editor/)
 * [Support Threads](https://wordpress.org/support/plugin/admin-menu-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/admin-menu-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/admin-menu-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/admin-menu-editor/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/php-error-when-subscriber-logs-in/#post-11152069)
 * Status: not resolved