• 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

    (@minutepapillon)

    I deleted an old theme that I tried to activate to solve my theme problem
    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 !

    Thread Starter minutepapillon

    (@minutepapillon)

    … 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

    Use the 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

    (@minutepapillon)

    Thank you Joy.
    I might try the plugin … but some of the reviews scare me …

    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

    (@minutepapillon)

    … 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 …

    If it’s a plugin, ask at the plugin’s support forum for an update.

    Thread Starter minutepapillon

    (@minutepapillon)

    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)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error : Deprecated function in includes/functions’ is closed to new replies.