I'm developing a web site with your WP Socializer v2.4.7 plugin installed and activated. I have defined some constants to debug my code, and I found that wp-socializer echoes a lot of PHP Notices.
My debug related constants are these:
/** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. */ define('WP_DEBUG',true); // Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG',true); // Display of errors and warnings define('WP_DEBUG_DISPLAY',true); @ini_set('display_errors',1); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define('SCRIPT_DEBUG',false);
And the Notices says:
Notice: Undefined index: in .../wp-content/plugins/wp-socializer/includes/wpsr-socialbuttons.php on line 196
For lines 196 to 199. The lines code is:
$finalName = $wpsr_socialsites_list[$sitename]['name']; $finalTitle = trim(str_replace($to_be_replaced, $replace_with, $wpsr_socialsites_list[$sitename]['titleText'])); $finalUrl = str_replace($to_be_replaced, $replace_with, $wpsr_socialsites_list[$sitename]['url']); $finalIcon = $imgpath . $wpsr_socialsites_list[$sitename]['icon'];
I think $sitename is empty. May this happen because a previous variable named $services has its empty default value?
I like your plugin but this annoying error makes the developing time a bit unpleasant.
Thanks for your time.