Support » Plugin: Hustle - Pop-Ups, Slide-ins and Email Opt-ins » Cannot read property ‘data’ of undefined in front_utils.js

  • mickelindahl

    (@mickelindahl)



    Hi,

    Just tried to install the plugin on my wordpress site (https://ny.presensimpro.se/) and it does not work. Looking in the console I get the following error message:

    front_utils.js:74 Uncaught TypeError: Cannot read property ‘data’ of undefined
    at n (front_utils.js:74)
    at c (underscore.min.js?ver=1.8.3:5)

    It stems from this line of code

    if ( data.data.optin_provider === ‘mailchimp’ ) {
    relocate_mailchimp_button(data);
    }

    What could cause the problem?

    /Mikael

Viewing 7 replies - 1 through 7 (of 7 total)
  • nicomollet

    (@nicomollet)

    Same problem here, with last version.

    usernameisinuse

    (@usernameisinuse)

    Yep. The same

    Uncaught TypeError: Cannot read property ‘data’ of undefined
    at n (front_utils.js:74)
    at c (underscore.min.js?ver=1.8.3:5)

    Uncaught TypeError: Cannot read property ‘optin_provider’ of undefined
    at HTMLDocument.n (front_utils.js:74)
    at c (underscore.min.js?ver=1.8.3:5)

    Plugin Support Predrag Dubajic WPMU DEV Support

    (@wpmudev-support1)

    Hey all,

    Can you tell me where does this error show up, in backend or when popup should open on frontend?

    Also, could you tell me which PHP version you have?

    Cheers,
    Predrag

    nicomollet

    (@nicomollet)

    It was on the frontend. (I rolled back to an earlier version to avoid this error).

    My PHP is 7.1.4.

    Plugin Support Predrag Dubajic WPMU DEV Support

    (@wpmudev-support1)

    Hi @nicomollet,

    Thanks for the info, I’m unfortunately still unable to replicate this but I’ve asked our devs to check out the code, in the meantime could you update to latest version and select any other service provider instead of MailChimp and see if it works after that?

    Cheers,
    Predrag

    usernameisinuse

    (@usernameisinuse)

    Custom popup. Should be triggered in exit intent.
    Screenshot http://priscree.ru/img/4725787f412b31.jpg

    ### WordPress Environment ###

    WC Version: 3.1.1
    Log Directory Writable: ✔
    WP Version: 4.8.1
    WP Multisite: ✔
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: ru_RU

    ### Server Environment ###

    Server Info: nginx/1.13.3
    PHP Version: 7.1.8-2+ubuntu16.04.1+deb.sury.org+4
    PHP Post Max Size: 50 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.47.0
    OpenSSL/1.0.2g

    SUHOSIN Installed: –
    Max Upload Size: 10 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### Theme ###

    Name: Avada Child
    Version: 1.0.0
    Author URL: https://theme-fusion.com
    Child Theme: ✔
    Parent Theme Name: Avada
    Parent Theme Version: 5.2.1
    Parent Theme Author URL: http://themeforest.net/user/ThemeFusion
    WooCommerce Support: ✔

    Plugin Support Predrag Dubajic WPMU DEV Support

    (@wpmudev-support1)

    Hi @usernameisinuse,

    Thanks for the additional info, I actually got a confirmation from one of our devs that he was able to replicate the issue over the weekend and the fix is being worked on so we should see it in next release.

    Cheers,
    Predrag

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cannot read property ‘data’ of undefined in front_utils.js’ is closed to new replies.