Title: [Plugin: simpleSAMLphp Authentication] bouncing back to the root blog
Last modified: August 19, 2016

---

# [Plugin: simpleSAMLphp Authentication] bouncing back to the root blog

 *  [cretia](https://wordpress.org/support/users/cretia/)
 * (@cretia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-simplesamlphp-authentication-bouncing-back-to-the-root-blog/)
 * Having this problem and can’t figure it out! I have upgraded our MU 2.8.6 installation
   to 3.1 via the manual upgrade. I go to our main site and activate the simpleSAMLphp
   plugin, go to settings, reset everything, it’s all good.
 * Then I go to one of our sub-sites, activate the plugin, go to the settings, reset
   everything, click save and it bounced back to the simpleSAML settings page of
   the root blog (not the sub-site). When I go back to the simpleSAML settings of
   the sub-site, the settings are back to default.
 * Any ideas? I’ve even tried older versions of the plugin and no luck.
 * [http://wordpress.org/extend/plugins/simplesamlphp-authentication/](http://wordpress.org/extend/plugins/simplesamlphp-authentication/)

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

 *  Plugin Contributor [fkooman](https://wordpress.org/support/users/fkooman/)
 * (@fkooman)
 * [15 years ago](https://wordpress.org/support/topic/plugin-simplesamlphp-authentication-bouncing-back-to-the-root-blog/#post-1997615)
 * Hi,
 * Can you confirm this issue is still there with the latest version, 0.5.1 (released
   today) and latest WordPress (3.1.3) and simpleSAMLphp 1.8?
 * If so, can you show me the configuration of simpleSAMLphp, the use of SSL (if
   at all) and the configuration values of simplesamlphp-authentication?
 * Thanks
 *  [jdelaulanie](https://wordpress.org/support/users/jdelaulanie/)
 * (@jdelaulanie)
 * [15 years ago](https://wordpress.org/support/topic/plugin-simplesamlphp-authentication-bouncing-back-to-the-root-blog/#post-1997620)
 * Hi,
 * i have the same pb with my wordpress 3.1.3 multisite instance using the latest
   version of the plugin and simplesamlphp v1.8.
    saving the parameters only work
   for the root blog and not at all for the sub-sites, nothing is actually written
   in the db. using firebug, you can see that form action url in the sub-sites admin
   configuration page points to the root blog.
 * regards, Jean
 *  [jdelaulanie](https://wordpress.org/support/users/jdelaulanie/)
 * (@jdelaulanie)
 * [15 years ago](https://wordpress.org/support/topic/plugin-simplesamlphp-authentication-bouncing-back-to-the-root-blog/#post-1997621)
 * Hi,
 * the workaround is to insert directly into the db via some sql queries the plug-
   in settings in each wp_BLOGID_options tables.
 * regards,
 *  [hjouini](https://wordpress.org/support/users/hjouini/)
 * (@hjouini)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/plugin-simplesamlphp-authentication-bouncing-back-to-the-root-blog/#post-1997622)
 * This is due to the use of $_SERVER[‘PHP_SELF’] at line 217 in _simplesamlphp-
   authentication.php_.
 * Using :
    `echo '?page=' . basename(__FILE__);` instead of : `echo $_SERVER['PHP_SELF'].'?
   page=' . basename(__FILE__);` will resolve the problem, forcing the page to still
   in the current admin path of the current blog.
 * I also suggest to add this at line 208 :
    Replace : `update_option('simplesaml_authentication_options',
   $optionarray_update);` With :
 *     ```
       $current_blog = $wpdb->blogid;
       global $blog_id;
       switch_to_blog($blog_id);
       update_option('simplesaml_authentication_options', $optionarray_update);
       switch_to_blog($current_blog);
       ```
   
 *  Plugin Contributor [fkooman](https://wordpress.org/support/users/fkooman/)
 * (@fkooman)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/plugin-simplesamlphp-authentication-bouncing-back-to-the-root-blog/#post-1997623)
 * But this will break a regular WordPress installation 🙁

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

The topic ‘[Plugin: simpleSAMLphp Authentication] bouncing back to the root blog’
is closed to new replies.

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

 * 5 replies
 * 4 participants
 * Last reply from: [fkooman](https://wordpress.org/support/users/fkooman/)
 * Last activity: [14 years, 12 months ago](https://wordpress.org/support/topic/plugin-simplesamlphp-authentication-bouncing-back-to-the-root-blog/#post-1997623)
 * Status: not resolved