Title: WP Multisite doesn&#039;t save options
Last modified: August 30, 2016

---

# WP Multisite doesn't save options

 *  Resolved [Philipp](https://wordpress.org/support/users/philippmuenchen/)
 * (@philippmuenchen)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/wp-multisite-doesnt-save-options/)
 * Hi!
 * Thank you for the excellent Plugin. Using it since years for a non-profit project.
 * In WPMS I wasn’t able to save options. Now I realized, that this comes from the
   try of the plugin to save the settings through `update_site_option`. But it’s
   not using the values from there but instead the settings/values on per page basis.
   
   I replaced that by using `update_options` as well and now I’m able to save my
   settings. That’s fine for me but in general it’s sad, that there is no more network
   wide settings page with global settings.
 * Here the code part with my comment:
 *     ```
       if ($_REQUEST['step'] == '2') {
                       if ($this->options['IS_WPMU'])
                          // update_site_option('wp-invites', $_REQUEST['wp_invites']); (NOT WORKING)
                           update_option('wp-invites', $_REQUEST['wp_invites']);
                       else
                           update_option('wp-invites', $_REQUEST['wp_invites']);
                       echo '<div class="updated">' . __('Options updated!', 'wp-invites') . '</div>';
                   }
       ```
   
 * [https://wordpress.org/plugins/wp-invites/](https://wordpress.org/plugins/wp-invites/)

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

 *  Thread Starter [Philipp](https://wordpress.org/support/users/philippmuenchen/)
 * (@philippmuenchen)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/wp-multisite-doesnt-save-options/#post-6701660)
 * I have to correct myself. It’s possible to fix the following instead:
 *     ```
       #get the options from the database
               if ($this->options['IS_WPMU']) // THIS ISN'T SET YET!!!
                   $options = get_site_option('wp-invites'); // get the options from the database
               else
                   $options = get_option('wp-invites');
               if (sizeof($options) && $options)
                   foreach ($options as $key => $val)
                       $this->options[$key] = $val;
       ```
   
 * The second line (line 182) should read:
    `if (is_multisite())` instead.
 * Cheers!
 *  Plugin Author [themaster5_07](https://wordpress.org/support/users/themaster5_07/)
 * (@themaster5_07)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/wp-multisite-doesnt-save-options/#post-9207174)
 * [@philippmuenchen](https://wordpress.org/support/users/philippmuenchen/)
 * You were correct! Current Version 2.51 has corrected this problem along with 
   many others. Thank you for your patience.
 *  Thread Starter [Philipp](https://wordpress.org/support/users/philippmuenchen/)
 * (@philippmuenchen)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/wp-multisite-doesnt-save-options/#post-9207991)
 * Thanks! Very good!
    Are you planning to bring sitewide codes and options back
   to multisite?
 * Best!

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

The topic ‘WP Multisite doesn't save options’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-invites.svg)
 * [WP-Invites](https://wordpress.org/plugins/wp-invites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-invites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-invites/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-invites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-invites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-invites/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Philipp](https://wordpress.org/support/users/philippmuenchen/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/wp-multisite-doesnt-save-options/#post-9207991)
 * Status: resolved