Viewing 15 replies - 1 through 15 (of 21 total)
  • 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.

    Thread Starter allvisualweb

    (@allvisualweb)

    Could I just disable the error message?

    You really need to find & fix the root cause.

    Thread Starter allvisualweb

    (@allvisualweb)

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

    It continues with the error

    Thread Starter allvisualweb

    (@allvisualweb)

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

    Can we see the full error message please?

    Thread Starter allvisualweb

    (@allvisualweb)

    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

    Site url?

    Thread Starter allvisualweb

    (@allvisualweb)

    https://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

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

    Thread Starter allvisualweb

    (@allvisualweb)

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

    Thread Starter allvisualweb

    (@allvisualweb)

    Thanks, theme reinstalled and it worked

    Excellent! ??

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

    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.