Title: JavaScript Uncaught TypeError
Last modified: October 23, 2018

---

# JavaScript Uncaught TypeError

 *  Resolved [Brian Shim](https://wordpress.org/support/users/brianrshim/)
 * (@brianrshim)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-uncaught-typeerror/)
 * I’m trying to simply select a user photo in the “Click to Edit” field and I’m
   getting this error in the console (Chrome) when I select a photo from the Media
   Library:
 * mpp.js?ver=20180819:45
    Uncaught TypeError: Cannot read property ‘style’ of null
   at mt_display_block (mpp.js?ver=20180819:45) at Object.success (mpp.js?ver=20180819:
   108) at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-
   ui-widget,zxcvbn-async,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jquery-
   ui-sort&load[]=able&ver=4.9.8:2) at Object.fireWith [as resolveWith] (load-scripts.
   php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,zxcvbn-async,
   jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sort&load[]=able&
   ver=4.9.8:2) at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,
   jquery-ui-widget,zxcvbn-async,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,
   jquery-ui-sort&load[]=able&ver=4.9.8:4) at XMLHttpRequest.c (load-scripts.php?
   c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,zxcvbn-async,jquery-
   ui-core,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sort&load[]=able&ver=4.9.8:
   4)
 * The spinner spins forever.
 * The failing line is line 45 of mpp.js:
    temp.firstElementChild.style.display 
   = ‘block’;
 * I’m using V1.5.5 of the plugin. Any ideas what is going on?
 * Thanks,
    Brian

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-uncaught-typeerror/#post-10809233)
 * Do you have anything blocking `admin-ajax.php`?
 *  Thread Starter [Brian Shim](https://wordpress.org/support/users/brianrshim/)
 * (@brianrshim)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-uncaught-typeerror/#post-10809291)
 * Hi Ronald,
 * Thanks for your fast response! I tried disabling WordFence and other potential
   troublemakers but I’m still getting the error on my local install.
 * However, it’s working fine on my live site so I can move forward with that.
 * Many thanks,
    Brian

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JavaScript Uncaught TypeError’ is closed to new replies.

 * ![](https://ps.w.org/metronet-profile-picture/assets/icon-256x256.png?rev=2464419)
 * [User Profile Picture](https://wordpress.org/plugins/metronet-profile-picture/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/metronet-profile-picture/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/metronet-profile-picture/)
 * [Active Topics](https://wordpress.org/support/plugin/metronet-profile-picture/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/metronet-profile-picture/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/metronet-profile-picture/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Brian Shim](https://wordpress.org/support/users/brianrshim/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-uncaught-typeerror/#post-10809291)
 * Status: resolved