Title: Sunrise.php Throwing Error
Last modified: August 22, 2016

---

# Sunrise.php Throwing Error

 *  Resolved [ratputin](https://wordpress.org/support/users/ratputin/)
 * (@ratputin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/sunrisephp-throwing-error/)
 * My error logs have started throwing the following error:
 * PHP Notice: get_current_site_name is **deprecated** since version 3.9! Use get_current_site()
   instead. in /home/xxxxx/public_html/
 * It seems to point to lines 33 & 34 which currently read:
    elseif ( function_exists(‘
   get_current_site_name’ ) ) $current_site = get_current_site( $current_site_name);
 * I have changed them to read:
    elseif ( function_exists( ‘get_current_site’ ) )
   $current_site = get_current_site( $current_site );
 * Will there be any ripple effect to this?
 * [https://wordpress.org/plugins/wordpress-mu-domain-mapping/](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)

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

 *  Plugin Author [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/sunrisephp-throwing-error/#post-5931285)
 * Download the development version and replace your current sunrise.php with the
   development version.
 *  Thread Starter [ratputin](https://wordpress.org/support/users/ratputin/)
 * (@ratputin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/sunrisephp-throwing-error/#post-5931287)
 * Thanks Ron.
 * FYI – The change I posted has been up for 5 hours and so far none of the 50 sites
   on the Multisite Build have experienced any negative effects.

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

The topic ‘Sunrise.php Throwing Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mu-domain-mapping.svg)
 * [WordPress MU Domain Mapping](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mu-domain-mapping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ratputin](https://wordpress.org/support/users/ratputin/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/sunrisephp-throwing-error/#post-5931287)
 * Status: resolved