Advertisement
Guest User

wp-youtube-lyte error fixes

a guest
Dec 3rd, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement