Advertisement
Guest User

wp-socializer 2.4.5 error corrections

a guest
Nov 23rd, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. Notice: Undefined index: in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-floatingbar.php on line 22
  2. ln 22 change to:
  3. $content .= '<div class="wpsr_floatbt">' . (!empty($wpsr_floating_bar_bts[$selSplitted[$i]][$wpsr_floatbts['position']]) ? $wpsr_floating_bar_bts[$selSplitted[$i]][$wpsr_floatbts['position']] : '') . "</div>" ;
  4.  
  5.  
  6. Notice: Undefined index: smartload in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/wp-socializer.php on line 1490
  7. ln 1490-8 change to:
  8. if(isset($wpsr_settings['smartload'])){
  9. if( $wpsr_settings['smartload'] == 'normal' || $wpsr_settings['smartload'] == ''){
  10. $scriptsFnc = 'wpsrload();';
  11. /*}elseif($wpsr_settings['smartload'] == 'window'){
  12. $scriptsFnc = 'function wpsraddload(a){if(window.addEventListener){window.addEventListener("load", a, false);}else if (window.attachEvent){window.attachEvent("onload", a);}} wpsraddload(wpsrload);';*/
  13. }elseif($wpsr_settings['smartload'] == 'timeout'){
  14. $scriptsFnc = 'setTimeout(wpsrload, ' . $wpsr_settings['smartload_timeout']*1000 . ');';
  15. }
  16. }
  17.  
  18.  
  19. Notice: Undefined index: nofollow in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-socialbuttons.php on line 438
  20. ln 438 change to:
  21. 'nofollow' => (isset($wpsr_socialbt['nofollow']) ? $wpsr_socialbt['nofollow'] : null),
  22.  
  23.  
  24. Notice: Undefined variable: socialbts_list in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-socialbuttons.php on line 202
  25. ln 189 add:
  26. $socialbts_list = '';
  27.  
  28.  
  29. Notice: Undefined index: googlebuzz in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-socialbuttons.php on line 193
  30.  
  31. Notice: Undefined index: googlebuzz in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-socialbuttons.php on line 194
  32.  
  33. Notice: Undefined index: googlebuzz in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-socialbuttons.php on line 195
  34.  
  35. Notice: Undefined index: googlebuzz in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-socialbuttons.php on line 196
  36.  
  37. Above errors I guess that googlebuzz is not meant to be included any more? Otherwise error can be fixed by following
  38. ln 193 add:
  39. if(!isset($wpsr_socialsites_list[$sitename])){
  40. continue;
  41. }
  42.  
  43.  
  44. Notice: Undefined variable: inner in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-addthis.php on line 143
  45. ln 141 add:
  46. $inner = '';
  47.  
  48.  
  49. Notice: Undefined variable: inner in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-addthis.php on line 155
  50. ln 154 add:
  51. $inner = '';
  52.  
  53.  
  54. Notice: Undefined variable: wpsr_sharethis_addp in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-sharethis.php on line 156
  55. I don't get what is happening here - you have a variable but it is not defined anywhere in the function, so will always be null. I'm guessing that it's not meant to be null and the variable is meant to be defined somewhere in the function but you forgot? I have just changed ln 156 to get rid of the error, but its probably not what you meant:
  56. 'addp' => null,
  57.  
  58.  
  59. Notice: Undefined index: classic_order in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-sharethis.php on line 155
  60. ln 155 change to:
  61. 'services' => (isset($wpsr_sharethis[$type . '_order']) ? $wpsr_sharethis[$type . '_order'] : null),
  62.  
  63.  
  64. Notice: Undefined variable: params in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-google.php on line 46
  65. ln 46 change to:
  66. $plusone_processed .= '<g:plusone size="' . $type . '" href="' . $url . '" ' . (isset($params) ? $params : '') . '></g:plusone>';
  67.  
  68.  
  69. Notice: Undefined index: appid in /home/djeyewater/webapps/htdocs/photosite/blog/wp-content/plugins/wp-socializer/includes/wpsr-facebook.php on line 77
  70. ln 77 change to:
  71. 'appid' => (isset($wpsr_facebook['appid']) ? $wpsr_facebook['appid'] : null)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement