Title: [Plugin: WordPress.com Stats] JavaScript error in Internet Explorer
Last modified: August 19, 2016

---

# [Plugin: WordPress.com Stats] JavaScript error in Internet Explorer

 *  Resolved [Ralph83](https://wordpress.org/support/users/ralph83/)
 * (@ralph83)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-error-in-internet-explorer/)
 * Internet Explorer gives the following JavaScript error with this plugin activated:“‘
   undefined’ is empty or not an object” I think the problem is here:
 * if ( typeof addLoadEvent != ‘undefined’ ) {addLoadEvent(load_cmc);}
    else {load_cmc();}
 * I’m thinking of changing it into:
 * if ( !addLoadEvent ) {addLoadEvent(load_cmc);}
    else {load_cmc();}
 * Or perhaps:
 * if ( typeof load_cmc != ‘undefined’ ) {addLoadEvent(load_cmc);}
    else {load_cmc();}
 * What would be the best method to get rid of the error without affecting how the
   scripts works? Perhaps there’s a better solution than the ones I suggested?
 * [http://wordpress.org/extend/plugins/stats/](http://wordpress.org/extend/plugins/stats/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Ralph83](https://wordpress.org/support/users/ralph83/)
 * (@ralph83)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-error-in-internet-explorer/#post-2048209)
 * Changed topic status to resolved, as I just discovered the error is actually 
   caused by another script. Sorry 🙂

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WordPress.com Stats] JavaScript error in Internet Explorer’ 
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/stats.svg)
 * [WordPress.com Stats](https://wordpress.org/plugins/stats/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stats/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stats/)
 * [Active Topics](https://wordpress.org/support/plugin/stats/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stats/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stats/reviews/)

## Tags

 * [Stats](https://wordpress.org/support/topic-tag/stats/)

 * 1 reply
 * 1 participant
 * Last reply from: [Ralph83](https://wordpress.org/support/users/ralph83/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-javascript-error-in-internet-explorer/#post-2048209)
 * Status: resolved