failure on line 160 when activating FrontendUserRegisterEmailValidation
Issue #9
new
failure on line 160 when activating FrontendUserRegisterEmailValidation
Somebody else with this issue?
Comments (4)
-
repo owner -
Hi, I've got the same problem.
The error is "Call to a member function attr() on a non-object" on line 160:
$form->remove($form->get('EmailPreValidation')); //hide the token field before the email is sent = less distraction $form->get('EmailPreValidation')->attr('disabled', true);
To me it looks like you are first removing, and then trying to manipulate the field?
-
Funny thing: just edited out line 160, with the result that the submit button is gone.
-
repo owner You're right, but You should remove line 159 instead of 160!
// krisj / https://processwire.com/talk/topic/9811-frontenduser-login-logout-and-register-users-members/?p=122040 $form->remove($form->get('EmailPreValidation')); //hide the token field before the email is sent = less distraction
It was a PR which should be removed in a later commit...
Could You test it and report back, please?
I think I'll rewrite the module in the future, but at the moment it's minimal maintained...
- Log in to comment
Hi, could you provide a full error message to debug it?