• Resolved Brian Shim

    (@brianrshim)


    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

    (@ronalfy)

    Do you have anything blocking admin-ajax.php?

    Thread Starter Brian Shim

    (@brianrshim)

    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.