• 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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    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

    (@code3creative)

    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

    (@whiteshadow)

    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.