PHP warnings and notices triggered by Social plugin when in WP debug mode
-
I’ve been having some issues with performance of my blog and my hosting provider suggested to turn debug mode on in order to trace errors, unclosed connections and other issues that could be slowing down the server.
I did find a couple of issues regarding Social plugin. Firstly, I’m getting a bunch of these warnings:
[06-Aug-2015 03:45:42 UTC] PHP Notice: wpdb::escape is <strong>obsolete</strong> since versión 3.6. Use wpdb::prepare() or esc_sql() instead. in /home/content/59/10646159/html/mysite/wp-includes/functions.php on line 3378
I did a thorough search and I found that wpdp->escape is being used in the following Social PHP scripts (I’m using the latest version of the plugin):
social.php: line 2344
twitter.php: lines 262, 263 and 265
facebook.php: lines 353, 367, 369 and 380Also, after posting and broadcasting to twitter and facebook accounts, I’m getting this notices:
Undefined variable: comment in /home/content/59/10646159/html/mysite/wp-content/plugins/social/lib/social/service/facebook.php on line 182 Trying to get property of non-object in /home/content/59/10646159/html/mysite/wp-content/plugins/social/lib/social/service/facebook.php on line 182 Undefined variable: comment in /home/content/59/10646159/html/mysite/wp-content/plugins/social/lib/social/service/facebook.php on line 183 Trying to get property of non-object in /home/content/59/10646159/mysite/wp-content/plugins/social/lib/social/service/facebook.php on line 183
That group of notices shows up three more times (I guess becauseof the number of facebook accounts I broadcast to, which is four) followed by this warning:
Cannot modify header information - headers already sent by (output started at /home/content/59/10646159/html/mysite/wp-content/plugins/social/lib/social/service/facebook.php:182) in /home/content/59/10646159/html/mysite/wp-includes/pluggable.php on line 1178
I have “Pull in social comments from Facebook and Twitter” OFF and DISABLED social’s comment display.
I know these may not be urgent fixes, but I hope you can take a look at them some time soon because I’d like to have my site in good shape in order to avoid performance issues with my hosting provider. I really love Social plugin because I have several facebook and twitter accounts, and it allows me to broadcast everything to those in just one click. It’s great!
Thanks ??
- The topic ‘PHP warnings and notices triggered by Social plugin when in WP debug mode’ is closed to new replies.