Title: Admin Menu screen throws PHP warning
Last modified: October 3, 2018

---

# Admin Menu screen throws PHP warning

 *  Resolved [Clifford Paulick](https://wordpress.org/support/users/cliffpaulick/)
 * (@cliffpaulick)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/admin-menu-screen-throws-php-warning/)
 * Visiting `/wp-admin/admin.php?page=wpcai_admin_menu` causes this error:
 *     ```
       PHP Warning:  Invalid argument supplied for foreach() in /wp-content/plugins/wp-custom-admin-interface/inc/options/options-output.php on line 1487
       PHP Stack trace:
       PHP   1. {main}() /wp-admin/admin.php:0
       PHP   2. do_action($tag = *uninitialized*, $arg = *uninitialized*) /wp-admin/admin.php:224
       PHP   3. WP_Hook->do_action($args = *uninitialized*) /wp-includes/plugin.php:453
       PHP   4. WP_Hook->apply_filters($value = *uninitialized*, $args = *uninitialized*) /wp-includes/class-wp-hook.php:310
       PHP   5. {closure:/wp-content/plugins/wp-custom-admin-interface/wp-custom-admin-interface.php:76-78}(*uninitialized*) /wp-includes/class-wp-hook.php:286
       PHP   6. wp_custom_admin_interface_settings_page_content($submenu = *uninitialized*) /wp-content/plugins/wp-custom-admin-interface/wp-custom-admin-interface.php:77
       PHP   7. do_settings_sections($page = *uninitialized*) /wp-content/plugins/wp-custom-admin-interface/wp-custom-admin-interface.php:126
       PHP   8. do_settings_fields($page = *uninitialized*, $section = *uninitialized*) /wp-admin/includes/template.php:1347
       PHP   9. wp_custom_admin_interface_top_level_menu_render(*uninitialized*) /wp-admin/includes/template.php:1388
       ```
   

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

 *  Plugin Author [Northern Beaches Websites](https://wordpress.org/support/users/northernbeacheswebsites/)
 * (@northernbeacheswebsites)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/admin-menu-screen-throws-php-warning/#post-10748038)
 * Hi [@cliffpaulick](https://wordpress.org/support/users/cliffpaulick/),
 * Can you please give me some background on this error. I want to know for example:
 * 1. Have you saved the settings yet?
    2. Did this happen the very first time you
   visited the page without saving the settings 3. On the help page it outputs diagnostic
   information, can you please put that into your reply 4. Have you tried clearing
   your menu settings by going to Manage Settings and then Delete Plugin Settings?
   5. Apart from the error message displaying is the actual functionality broken
   or being able to modify the menu?
 * Thanks,
 *  Thread Starter [Clifford Paulick](https://wordpress.org/support/users/cliffpaulick/)
 * (@cliffpaulick)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/admin-menu-screen-throws-php-warning/#post-10748041)
 * Fresh install of the plugin, first visit to this screen, thus no settings saved
   yet.
 * I can’t get to it right now but may be able to later. Will update if I try it
   again.
 * Looks like a cool plugin, though. Thanks for the quick response.
 *  Plugin Author [Northern Beaches Websites](https://wordpress.org/support/users/northernbeacheswebsites/)
 * (@northernbeacheswebsites)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/admin-menu-screen-throws-php-warning/#post-10748067)
 * No worries, yeah if you could get back to me on the points I mentioned I will
   be happy to look into it. Cheers,
 *  Plugin Author [Northern Beaches Websites](https://wordpress.org/support/users/northernbeacheswebsites/)
 * (@northernbeacheswebsites)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/admin-menu-screen-throws-php-warning/#post-10893364)
 * I am going to mark this as solved due to inactivity

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

The topic ‘Admin Menu screen throws PHP warning’ is closed to new replies.

 * ![](https://ps.w.org/wp-custom-admin-interface/assets/icon.svg?rev=1656274)
 * [WP Custom Admin Interface](https://wordpress.org/plugins/wp-custom-admin-interface/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-custom-admin-interface/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-admin-interface/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-admin-interface/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-admin-interface/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-admin-interface/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Northern Beaches Websites](https://wordpress.org/support/users/northernbeacheswebsites/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/admin-menu-screen-throws-php-warning/#post-10893364)
 * Status: resolved