Title: Error : Deprecated function in includes/functions
Last modified: May 30, 2020

---

# Error : Deprecated function in includes/functions

 *  [minutepapillon](https://wordpress.org/support/users/minutepapillon/)
 * (@minutepapillon)
 * [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/)
 * Hi,
 * I get this error on my network : (displayed in debug mode.)
 *     ```
       Deprecated: wpdb::escape is deprecated since version 3.6.0! Use wpdb::prepare() or esc_sql() instead. in /home/lucinia/www/wp-includes/functions.php on line 4736
   
       Fatal error: Cannot redeclare layerslider_builder_convert_numbers() (previously declared in /home/lucinia/www/wp-content/plugins/LayerSlider/includes/slider_utils.php:3) in /home/lucinia/www/wp-content/themes/Avada/framework/plugins/LayerSlider/layerslider.php on line 134
       ```
   
 * I can’t access my network admin page, but I still see my sites-admin page …
    –
   > Panic mode … Thank you for any help.

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

 *  Thread Starter [minutepapillon](https://wordpress.org/support/users/minutepapillon/)
 * (@minutepapillon)
 * [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/#post-12915558)
 * I deleted an old theme that I tried to activate to solve my [theme problem](https://wordpress.org/support/topic/cant-change-theme-on-main-site/)
   
   Now, here is the error :
 *     ```
       Deprecated: wpdb::escape is deprecated since version 3.6.0! Use wpdb::prepare() or esc_sql() instead. in /home/lucinia/www/wp-includes/functions.php on line 4735
   
       Deprecated: get_current_site_name is deprecated since version 3.9.0! Use get_current_site() instead. in /home/lucinia/www/wp-includes/functions.php on line 4735
       ```
   
 * Now, I can access my admin again !
    -  This reply was modified 6 years ago by [minutepapillon](https://wordpress.org/support/users/minutepapillon/).
 *  Thread Starter [minutepapillon](https://wordpress.org/support/users/minutepapillon/)
 * (@minutepapillon)
 * [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/#post-12915586)
 * … it’s me again :
    I would like to test the plugins one by one to see who is 
   causing the problem … On a normal Wp install, I deactivate it. But on a Network?
   Must I deactivate on network + deactivate on every site that uses it ? … or can
   i change the forlder name from _myplugin_ ti _XXX-myplugin _ ? or ? THANKS
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/#post-12915765)
 * Use the [Health Check](https://wordpress.org/plugins/health-check/) plugin in
   Troubleshoot mode to disable plugins **for your user only**.
    And it looked like
   it was the LayerSlider plugin with the error.
 *  Thread Starter [minutepapillon](https://wordpress.org/support/users/minutepapillon/)
 * (@minutepapillon)
 * [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/#post-12916360)
 * Thank you Joy.
    I might try the plugin … but some of the reviews scare me …
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/#post-12917859)
 * Ha ha!
    The Health Check plugin has a long history. What it is today is nothing
   like it was. The team lead for Support here at these forums took over the plugin
   a year or two ago, and has had that battle with having to keep all the old reviews.
   His code is the basis for the Site Health functionality that is in WP core today.
   It started in the Health Check plugin and got moved to core. So you are likely
   already using equivalent code on your site, but it’s the Troubleshooting portion
   that is only in the plugin.
 *  Thread Starter [minutepapillon](https://wordpress.org/support/users/minutepapillon/)
 * (@minutepapillon)
 * [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/#post-12939258)
 * … well , I found another way :
    I made a backup of my plugins folder and made
   a search for the string “get_current_site_name” in all the files (with notepad
   ++). I got two hits :
 *     ```
       plugins\wp-content\plugins\wordpress-mu-domain-mapping\sunrise.php (2 hits)
       Line 33: 	elseif ( function_exists( 'get_current_site_name' ) )
       Line 34: 		$current_site = get_current_site_name( $current_site );
       ```
   
 * Unfortunately, the plugin wordpress-mu-domain-mapping is at the base of my sites…
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/#post-12939814)
 * If it’s a plugin, ask at the plugin’s support forum for an update.
 *  Thread Starter [minutepapillon](https://wordpress.org/support/users/minutepapillon/)
 * (@minutepapillon)
 * [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/#post-12940566)
 * Well. The plugin receives no update anymore. … so I updated it myself.
    The errors
   are gone. It is almost a victory … there’s still some very anoying bugs in my
   site ([theme problem](https://wordpress.org/support/topic/cant-change-theme-on-main-site/))

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

The topic ‘Error : Deprecated function in includes/functions’ is closed to new replies.

## Tags

 * [Crash](https://wordpress.org/support/topic-tag/crash/)
 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 8 replies
 * 2 participants
 * Last reply from: [minutepapillon](https://wordpress.org/support/users/minutepapillon/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/error-deprecated-function-in-includes-functions/#post-12940566)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
