Title: Error when saving multisite site settings
Last modified: September 22, 2017

---

# Error when saving multisite site settings

 *  Resolved [Candace](https://wordpress.org/support/users/aunrea/)
 * (@aunrea)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-when-saving-multisite-site-settings/)
 * I have multisite install and when I try to save site settings in the network 
   admin I get this error message:
 * > Warning: Invalid argument supplied for foreach() in ../wp-content/plugins/jetpack/
   > modules/verification-tools/verification-tools-utils.php on line 9
   > Warning: Cannot modify header information – headers already sent by (output
   > started at ../wp-content/plugins/jetpack/modules/verification-tools/verification-
   > tools-utils.php:9) in ../wp-includes/pluggable.php on line 1210
 * It still saves the information but it is really annoying because it is a white
   screen so I can’t get back to where i was without hitting the back button on 
   my browser.

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

 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-when-saving-multisite-site-settings/#post-9536837)
 * Hi! We don’t have any other reports of this error. Could you post your site URL
   here, so I can have a look?
 * If you want it to remain private, you can also contact us via this contact form:
   
   [http://jetpack.com/contact-support/](http://jetpack.com/contact-support/)
 * If you contact us through our form, please make sure to include a link to this
   thread in your message.
 * Thanks!
 *  Thread Starter [Candace](https://wordpress.org/support/users/aunrea/)
 * (@aunrea)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-when-saving-multisite-site-settings/#post-9536856)
 * My site url is [http://candaceduffyjones.com](http://candaceduffyjones.com).
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-when-saving-multisite-site-settings/#post-9539937)
 * So, first thing: it looks like your site is running on PHP 5.4.45 on HostGator.
   We’d strongly suggest updating to PHP 7+ – the newer version of PHP is significantly
   faster, more secure, and is what we recommend using. PHP is the programming language
   that WordPress and all of your plugins (including Jetpack) use. Upgrading to 
   PHP 7+ should result in an immediate difference in your site’s performance.
 * In fact, we’re not the only ones who feel this way. WordPress.org officially 
   recommends PHP 7: [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
 * HostGator provides details on how to upgrade here:
 * – [https://www.hostgator.com/help/article/php-configuration-plugin](https://www.hostgator.com/help/article/php-configuration-plugin)
 * Now, I’m not sure if this is necessarily the cause of the problem here, but it’s
   definitely worth trying it out. Otherwise, the only other thing that comes to
   mind is that you try deactivating some of your other plugins, to see if somehow
   they are causing a conflict? I don’t see any obvious candidates, though, to try
   first, so maybe try deactivating as many as you can (everything but the domain
   mapping, if you can).
 * Otherwise, I wonder if your site’s error logs might have more detail. If you 
   can get them, can you send them to us? Contact us through our contact form and
   mention this thread, and then we’ll ask you to send us the error logs.
 * Let me know what you think!
 *  Thread Starter [Candace](https://wordpress.org/support/users/aunrea/)
 * (@aunrea)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-when-saving-multisite-site-settings/#post-9540655)
 * I updated the php, that broke other plugins but didn’t fix the problem I am having.
   I deactivated all plugins except jetpack and domain mapping. Still the error.
   Only when I deactivate jetpack does it go away.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-when-saving-multisite-site-settings/#post-9543695)
 * Sorry for all the trouble!
 * Could you try to open the following file in your file manager or in an editor?
   `../
   wp-content/plugins/jetpack/modules/verification-tools/verification-tools-utils.
   php`
 * On line 9, you should find something like this:
    `foreach ( $verification_services_codes
   as $key => &$code ) {`
 * Try removing that `&` symbol, like so:
    `foreach ( $verification_services_codes
   as $key => $code ) {`
 * Save your changes, and let me know if it helps!
 *  Thread Starter [Candace](https://wordpress.org/support/users/aunrea/)
 * (@aunrea)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-when-saving-multisite-site-settings/#post-9544860)
 * That got rid of the error message.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-when-saving-multisite-site-settings/#post-9548150)
 * Great, thanks for giving it a try! This fix won’t make it in time for the next
   version of Jetpack scheduled to be released tomorrow but we’ll see about including
   it in the release that comes after that.

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

The topic ‘Error when saving multisite site settings’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/error-when-saving-multisite-site-settings/#post-9548150)
 * Status: resolved