WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Another 3.4 MultiSite ERROR (8 posts)

  1. Akshay2598
    Member
    Posted 2 years ago #

    WordPress version: 3.4
    WordPress SEO version: 1.2.3

    I did this:

    Go to Dashboard of multisite website.

    I expected the plugin to do this:

    Nothing

    Instead it did this:

    Like everywhere on the dashboard page, and Always on top on every single page of multisite website:

    Warning: Invalid argument supplied for foreach() in /home/akshay/public_html/wp-content/plugins/wordpress-seo/inc/wpseo-functions.php on line 407

    Whenever I update a post.

    Warning: Invalid argument supplied for foreach() in /home/akshay/public_html/wp-content/plugins/wordpress-seo/inc/wpseo-functions.php on line 407
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/akshay/public_html/wp-content/plugins/wordpress-seo/inc/wpseo-functions.php:407) in /home/akshay/public_html/wp-includes/pluggable.php on line 881

    You fixed the title test, but this is another error occurring. Please Fix SOON :)

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. pixelyzed
    Member
    Posted 2 years ago #

    Hi!

    I get the same on a multisite install I just updated. Blog 1 and network admin pages are ok but blog 2 displays the error.

  3. Kimb Jones
    Member
    Posted 2 years ago #

    Same issue here, everything seems to be working OK but the error persists.

    Warning: Invalid argument supplied for foreach() in /home/-site-/development/staging.-site-.com/wp-content/plugins/wordpress-seo/inc/wpseo-functions.php on line 407

    I'm on latest version of WP and WPSEO, this is on my staging server which I run updates on before going live. As the other guys said, it only shows on sub-sites (blogs) not the main site (ID1).

  4. Akshay2598
    Member
    Posted 2 years ago #

    This needs a fix soon. You can't to like any actions. You get headers already sent out by trying to approve a comment, Update a post, Insert a Thumbnail. Please fix soon Joost. Thanks

  5. galbaras
    Member
    Posted 2 years ago #

    Same here. Come on, Joost, give us a quick fix, man (although, quite frankly, this is mainly an annoyance, not a real problem).

    Oh, while you're at it, the plugin is also ignoring when I tell it to stop bugging me about my new site not being visible to search engines. A fix for that little gem would be great too.

  6. shields1020
    Member
    Posted 2 years ago #

    I'm getting the same error message but the error is also preventing me from installing other plugins on my site.

  7. lucentx
    Member
    Posted 2 years ago #

    I was getting the same error.

    if ( version_compare( $current_version, '1.2.3', '<' ) ) {
    		$opt = get_option('wpseo');
    
    		foreach ( $opt as $key => $val ) {
    			if ( !in_array( $key, array('ignore_blog_public_warning', 'ignore_tour', 'ignore_page_comments', 'ignore_permalink', 'ms_defaults_set', 'version', 'disableadvanced_meta', 'googleverify', 'msverify', 'alexaverify') ) ) {
    				unset( $opt[$key] );
    			}
    		}
    
    		update_option('wpseo', $opt);
    	}

    It seems that the one that's causing the error are the options. The $opt variable above is trowing a string when it's supposed to be an array. The only fast way that I've seen is by updating the settings on the Yoast WordPress SEO dashboard.

  8. galbaras
    Member
    Posted 2 years ago #

    Wow, that actually worked, although when I updated the option on the SEO dashboard page, I got an even scarier error. I went back, refreshed and all was well.

    Thank you, @lucentx!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic