cannot read property 'message' of undefined Home › Forums › User Registration › cannot read property 'message' of undefined This topic contains 3 replies, has 3 voices, and was last updated by paperweight 1 year, 2 months ago. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts September 12, 2018 at 5:23 pm #3871 MarkFromITUParticipant Hey, Didn’t spot this one on the site, so now I’m posting it. I keep getting this error message when trying to submit a user registration form. It works fine in chrome on my pc, but whenever I try in chrome on my android phone, or my client tries on their iPhone, we receive the type error: “cannot read property ‘message’ of undefined” Not quite sure what to do about it… Any clues? September 13, 2018 at 4:43 am #3883 sanjeev3Member Hello MarkFromITU, Since user registration form is submitted via ajax, this type of error occurs if you have any errors in js. Make sure you have no errors in console while submitting the form. Also, we can look into the issue, if you provide us your site url. Regards, WPEverest Support September 16, 2018 at 12:31 pm #3981 MarkFromITUParticipant Thanks for the reply, man i did some digging and found that i received an 403 forbidden error whenever i tried submitting a form. It was telling me that it couldn’t access /wp-admin/admin-ajax.php since the server was rejecting it. The weird thing is that it was only doing it if users wasn’t logged in already. Turned out i just had to clear the cache……… could have used that info hours ago 😀 have a great day Sanjeev ^_^ October 30, 2018 at 6:16 am #5451 paperweightParticipant 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' ), Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic.