Reply To: cannot read property 'message' of undefined

Home Forums User Registration cannot read property 'message' of undefined Reply To: cannot read property 'message' of undefined

#5451

paperweight
Participant

I fixed this (I think). It was happening all the time, and then a week ago I fixed some things and I have not seen the problem happen again. I solved it with a few tweaks:

1) First, I use a cache plugin, so I made sure to NOT cache the user registration page.

2) I also use Cloudflare, so I made sure NOT to cache the user registration page on Cloudflare’s page rules.

3) By default, the plugin uses a minified js. SO I changed it to the full js. I tweaked this file class-ur-frontend-scripts.php:

//'src' => self::get_asset_url( 'assets/js/frontend/user-registration' . $suffix . '.js' ),
'src' => self::get_asset_url( 'assets/js/frontend/user-registration' . '.js' ),