Support » Plugin: WP Custom Admin Interface » 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 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @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,

    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

    (@northernbeacheswebsites)

    No worries, yeah if you could get back to me on the points I mentioned I will be happy to look into it. Cheers,

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.