[Plugin: WP YouTube Lyte] Uncaught TypeError: … has no method 'getElementByID'
-
Hello again!
My plugin suddenly stopped working. It’s returning an error:
Uncaught TypeError: Object Mon Nov 21 2011 10:44:03 GMT-0800 (Pacific Standard Time) has no method ‘getElementById’from line 324, which is this:
var bU='http://pinwheelmusic.com/wp-content/plugins/wp-youtube-lyte/lyte/';var d=document;if(d.addEventListener){d.addEventListener('DOMContentLoaded', insert, false)}else{window.onload=insert} function insert(){if(!d.getElementById('lytescr')){lytescr=d.createElement('script');lytescr.async=true;lytescr.id='lytescr';lytescr.src='http://pinwheelmusic.com/wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js?wylver=0.9.2';h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(lytescr, h)}};The function I use to call the player is this:
<?php if(get_field('music_videos')){ if(function_exists('lyte_parse')) while(the_repeater_field('music_videos')) echo lyte_parse(str_replace('http://', 'httpv://', get_sub_field('youtube_url'))); } ?>Any ideas as to where to start looking? As always, thanks for your awesome support π
The topic ‘[Plugin: WP YouTube Lyte] Uncaught TypeError: … has no method 'getElementByID'’ is closed to new replies.