WordPress.org

Ready to get started?Download WordPress

Forums

Invalid argument in plugin.php (5 posts)

  1. saturnus
    Member
    Posted 1 year ago #

    Invalid argument supplied for foreach() in wp-admin/includes/plugin.php on line 1290

    function remove_menu_page( $menu_slug ) {
    	global $menu;
    
    	foreach ( $menu as $i => $item ) {
    		if ( $menu_slug == $item[2] ) {
    			unset( $menu[$i] );
    			return $item;
    		}
    	}
    
    	return false;
    }

    line 1290 is foreach ( $menu as $i => $item ) {

  2. Have tried

    - Deactivating all of your plugins

    - Switched to the Twenty Twelve theme

    - Re-upload a fresh copy of WordPress excluding the wp-content directory

    That may resolve this error for you.

  3. saturnus
    Member
    Posted 1 year ago #

  4. saturnus
    Member
    Posted 1 year ago #

    The authors of the plug-in said they cannot reproduce the issue. I have actually switched themes. I deactivated all plug-ins. It's Showcase that's causing it. I updated to WP 3.5.2.

    I have a bunch of gallery pages with just shortcodes because I've had to de-activate the plug-in.

    If I re-upload everything except wp-content - what about my .htaccess and wp-config files? What do I do with those?

  5. saturnus
    Member
    Posted 1 year ago #

    Sorry - just an update. I've re-uploaded everything except wp-content.

    Made no difference whatsoever.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.