• Hello,
    I’m getting JS error (Uncaught TypeError: Cannot read property ‘defaults’ of undefined) in the browser console on front pages containing UM forms such as registration, login, password-reset.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The same problem is happened to my website. Please fix it because no pages can be visible created by Ultimate Member plugin

    Deactivating plugin like Autoptimize (that is useful to minify css, js and html) the plugin returns to working well, try to deactivate this plugin

    Concerning Autoptimize: as a quick test you can disable AO on a per-request basis by adding ?ao_noptimize=1 to the URL.

    If your site works that way, then disable JS optimization for a second to see if that fixes it. If so, then you’ll probably have to add the plugin’s JS to the comma-separated JS optimization exclusion list. In that process you should keep an eye on your browser’s console for JS errors, as those will help you identify the problem.

    AO’s FAQ has more info on troubleshooting and how to exclude.

    hope this helps,
    frank (ao dev)

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi there,

    Could you upgrade UM to the latest 2.0.31? There was added hotfix.

    Let me know,
    Thanks!

    Thread Starter albertrar

    (@albertrar)

    Hi,
    the previous issue seems to be fixed but now I am facing another one in the console, pointing to duplicated id’s for redirect_to input http://nimb.ws/EmHN0C

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @albertrar

    You could try to delete this line at “wp-content/plugins/ultimate-member/includes/core/um-actions-misc.php”

    https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-actions-misc.php#L16

    Let me know if this works and I will add this fix in the next version,
    Thanks!

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

The topic ‘Uncaught TypeError: Cannot read property ‘defaults’ of undefined’ is closed to new replies.