swfobject error in IE and WordPress

Friday 12/5/2008  –  Category: Uncategorized

I ran into a minor annoyance today with a JS error popping up in IE:

'J.parentNode' is null or not an object

It turns out that a couple plugins that were active (nextgen-gallery and flash-video-player) were both including the swfobject.js in the header.  Solution: disable one of the plugins.  If you really need both plugins, the other alternative would be to statically include your plugin files in header.php rather than relying on the wp_head(); function.

Leave a Reply