failure on line 160 when activating FrontendUserRegisterEmailValidation

Issue #9 new
Former user created an issue

failure on line 160 when activating FrontendUserRegisterEmailValidation

Somebody else with this issue?

Comments (4)

  1. Fredrik Stipps

    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?

  2. pwFoo 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...

    https://bitbucket.org/pwFoo/frontenduser/src/308afb5ae6517c210a0712fe0124f6892e2fd48f/FrontendUser/FrontendUserRegisterEmailValidation.module?at=master&fileviewer=file-view-default#FrontendUserRegisterEmailValidation.module-159

    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...

  3. Log in to comment