• I’m hoping you’ll be able to address a deprecated method usage in the Social plugin coming from the social_wpdb_escape() function:

    [29-Oct-2015 14:43:19 UTC] PHP Notice:  wpdb::escape is <strong>deprecated</strong> since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /nas/wp/www/cluster-20044/jtsternberg/wp-includes/functions.php on line 3406

    And I threw a debug_backtrace in there to figure out what was causing it:

    [29-Oct-2015 14:43:19 UTC] backtrace: Array
    (
        [0] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-includes/wp-db.php
                [line] => 1147
                [function] => _deprecated_function
            )
    
        [1] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-content/plugins/social/social.php
                [line] => 2344
                [function] => escape
                [class] => wpdb
                [type] => ->
            )
    
        [2] => Array
            (
                [function] => social_wpdb_escape
            )
    
        [3] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-content/plugins/social/social.php
                [line] => 2152
                [function] => array_map
            )
    
        [4] => Array
            (
                [function] => comments_feed_exclusions
                [class] => Social
                [type] => ->
            )
    
        [5] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-includes/plugin.php
                [line] => 269
                [function] => call_user_func_array
            )
    
        [6] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-includes/query.php
                [line] => 3524
                [function] => apply_filters_ref_array
            )
    
        [7] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-includes/query.php
                [line] => 3874
                [function] => get_posts
                [class] => WP_Query
                [type] => ->
            )
    
        [8] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-includes/class-wp.php
                [line] => 549
                [function] => query
                [class] => WP_Query
                [type] => ->
            )
    
        [9] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-includes/class-wp.php
                [line] => 622
                [function] => query_posts
                [class] => WP
                [type] => ->
            )
    
        [10] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-includes/functions.php
                [line] => 886
                [function] => main
                [class] => WP
                [type] => ->
            )
    
        [11] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/wp-blog-header.php
                [line] => 14
                [function] => wp
            )
    
        [12] => Array
            (
                [file] => /nas/wp/www/cluster-20044/jtsternberg/index.php
                [line] => 17
                [args] => Array
                    (
                        [0] => /nas/wp/www/cluster-20044/jtsternberg/wp-blog-header.php
                    )
    
                [function] => require
            )
    
    )

    https://www.ads-software.com/plugins/social/

  • The topic ‘Debug log deprecation notices’ is closed to new replies.