This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

wp-youtube-lyte error fixes

By: a guest on Dec 3rd, 2012  |  syntax: None  |  size: 1.25 KB  |  views: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Notice: Use of undefined constant scheme - assumed 'scheme' in /wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 54
  2. Notice: Use of undefined constant host - assumed 'host' in /wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 54
  3.  
  4. #wp-youtube-lyte.php line 54 change to:
  5.         $origin=$urlArr['scheme']."://".$urlArr['host']."/";
  6.  
  7.  
  8. Notice: Undefined offset: 0 in /wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 84
  9. Notice: Undefined offset: 0 in /wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 85
  10. Notice: Undefined offset: 0 in /wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 86
  11.  
  12. #wp-youtube-lyte.php line 84-86 change to:
  13.                         if (!empty($showinfo[0])) $qsa="&".$showinfo[0];
  14.                         if (!empty($start[0])) $qsa.="&".$start[0];
  15.                         if (!empty($jsapi[0])) $qsa.="&".$jsapi[0]."&origin=".$origin;
  16.  
  17.  
  18. Notice: Undefined variable: lynited in /wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php on line 165
  19.  
  20. #wp-youtube-lyte.php lines 164-170 change to:
  21. function lyte_initer() {
  22.         global $lynited;
  23.         if (empty($lynited)) {
  24.                 $lynited=true;
  25.                 add_action('wp_footer', 'lyte_init');
  26.         }
  27. }
  28. #(presume $lynited is meant to be a global variable as no point checking its value otherwise)
clone this paste RAW Paste Data