Title: [Plugin: WordPress SEO by Yoast] Another 3.4 MultiSite ERROR
Last modified: August 20, 2016

---

# [Plugin: WordPress SEO by Yoast] Another 3.4 MultiSite ERROR

 *  [Akshay2598](https://wordpress.org/support/users/akshay2598/)
 * (@akshay2598)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/)
 * 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/](http://wordpress.org/extend/plugins/wordpress-seo/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [pixelyzed](https://wordpress.org/support/users/pixelyzed/)
 * (@pixelyzed)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/#post-2831046)
 * 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.
 *  [Kimb Jones](https://wordpress.org/support/users/mkjones/)
 * (@mkjones)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/#post-2831105)
 * 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).
 *  Thread Starter [Akshay2598](https://wordpress.org/support/users/akshay2598/)
 * (@akshay2598)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/#post-2831111)
 * 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
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/#post-2831184)
 * 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.
 *  [shields1020](https://wordpress.org/support/users/shields1020/)
 * (@shields1020)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/#post-2831186)
 * I’m getting the same error message but the error is also preventing me from installing
   other plugins on my site.
 *  [lucentx](https://wordpress.org/support/users/lucentx/)
 * (@lucentx)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/#post-2831187)
 * 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.
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/#post-2831191)
 * 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](https://wordpress.org/support/users/lucentx/)!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: WordPress SEO by Yoast] Another 3.4 MultiSite ERROR’ is closed
to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [RSS](https://wordpress.org/support/topic-tag/rss/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 7 replies
 * 6 participants
 * Last reply from: [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/#post-2831191)
 * Status: not resolved