Support » Fixing WordPress » Warning: Invalid argument supplied for foreach() in /home/site/public_html/xx/wp

Viewing 15 replies - 1 through 15 (of 21 total)
  • esmi

    (@esmi)

    Forum Moderator

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Could I just disable the error message?

    esmi

    (@esmi)

    Forum Moderator

    You really need to find & fix the root cause.

    1 – deactivating all plugins
    2 – switching to the Twenty Eleven
    3 – deleted plugins folder

    It continues with the error

    error: /wp-admin/includes/plugin.php on line 1285

    esmi

    (@esmi)

    Forum Moderator

    Can we see the full error message please?

    Warning: Invalid argument supplied for foreach() in /home/virziona/public_html/wp-admin/includes/plugin.php on line 1285

    Warning: Invalid argument supplied for foreach() in /home/virziona/public_html/wp-admin/includes/plugin.php on line 1285

    Warning: Invalid argument supplied for foreach() in /home/virziona/public_html/wp-admin/includes/plugin.php on line 1285

    esmi

    (@esmi)

    Forum Moderator

    Site url?

    http://virzionair.com/somos-multiplos/

    It only appears in the admin menu. I see it when I try to add a widget, change a setting, work with menus, or update meta data for a post. It pops up all over the admin menu.

    Here is the function triggering the error in includes/plugin.php

    esmi

    (@esmi)

    Forum Moderator

    Can we see the site using Twenty Eleven with all plugins deactivated?

    Indeed, switching to the Twenty Eleven and the error did not show, and now?

    Thanks, theme reinstalled and it worked

    esmi

    (@esmi)

    Forum Moderator

    Excellent! 🙂

    Ran across this same issue and found this, Hopefully it will help others out if needed.

    AskPHPHosting

    (@askphphosting)

    Go to edit Theme Functons functions.php (your theme/functions.php) and remove something like that

    function my_remove_menu_pages() {
    	remove_menu_page('link-manager.php');
    	remove_menu_page('edit.php?post_type=portfolio');
    }
    add_action( 'admin_init', 'my_remove_menu_pages' );

    Its mean remove menu page not work with remove sub menu in admin area.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Warning: Invalid argument supplied for foreach() in /home/site/public_html/xx/wp’ is closed to new replies.