Solution to j.parentnode is empty or not an object in WordPress

Time:2020-2-18

After some investigation, it is found that the j.parentnode call is also found in the swfobject.js file in the flash video player plug-in, so the conflict with the one in WP results in this error. terms of settlement:

Right click the home page to view the source code. There are two references to swfobject.js:

<script type=’text/javascript’ src=’http://liubing41.com/wp-includes/js/swfobject.js?ver=2.1′></script>
<script type=”text/javascript” src=”http://liubing41.com/wp-content/plugins/flash-video-player/swfobject.js”></script>

Since my home page does not use the player function, it’s OK to delete one of the references, or the most lazy way is to find the / wp-includes/js/swfobject.js file to rename.