I recently upgraded a site to
Revo 2.1.3 (trad) and
Login to 1.6.5. The upgrade overwrote some changes I’d made to the Login chunks, so after I restored those (in newly named chunks this time!), I thought everything should be back to normal. Not so...
The Register and ChangePassword forms both fail silently. The UpdateProfile form even gives me a success message when it’s not actually doing anything! My main concern is the new user registration for now...
I had to fiddle with the Register form to get the validation working correctly again. It seems strange that the snippet validates the form ok (gives errors), but if everything is fine, it fails.
I suspect there’s something obvious that needs to be changed in the form templates. Here’s everything:
Register snippet call
[[!Register? &activationEmailTpl=`cieActivationEmailTpl` &usergroups=`Free` &submittedResourceId=`160` &activationResourceId=`161` &postHooks=`lgnAdminNotice` &validate=`username:required, password:required, password_confirm:password_confirm=^password^, fullname:required, email:required:email, company:required, phone:required, state:required`]]
Register form template
<form class="form" action="[[~[[*id]]]]" method="post">
<input type="hidden" name="nospam:blank" value="" />
[[+error.message]]
<label for="username">[[%register.username? &namespace=`login` &topic=`register`]]
<input type="text" name="username" id="username" value="[[+username]]" />
[[+error.username]]
</label>
<label for="password">[[%register.password]]
<input type="password" name="password" id="password" value="[[+password]]" />
[[+error.password]]
</label>
<label for="password_confirm">[[%register.password_confirm]]
<input type="password" name="password_confirm" id="password_confirm" value="[[+password_confirm]]" />
[[+error.password_confirm]]
</label>
<label for="Company">Company name
<input type="text" name="Company" id="Company" value="[[+Company]]" />
[[+error.Company]]</span>
</label>
<label for="fullname">Contact name
<input type="text" name="fullname" id="fullname" value="[[+fullname]]" />
[[+error.fullname]]
</label>
<label for="email">Email address
<input type="text" name="email" id="email" value="[[+email]]" />
[[+error.email]]
</label>
<label for="phone">Contact number
<input type="text" name="phone" id="phone" value="[[+phone]]" />
[[+error.phone]]
</label>
<label for="state">I understand that this website is for QLD based jobs only
<input type="checkbox" name="state" id="state" value="Qld" />
[[+error.state]]
</label>
[[+register.recaptcha_html]]
[[+error.recaptcha]]
<input type="submit" name="login-register-btn" value="Register" />
</form>
When I fill out the form incorrectly, I get appropriate errors. When I fill it out correctly, the form re-loads and re-populates with the fields I just entered, except for the State checkbox not being ticked (understandably). A new user is not made.
The form worked after the upgrades, using the default Login template. I’ve just compared the default one and mine pretty closely and can’t see anything obvious, though.
Any pointers would be much appreciated!!
Thanks
(Linux Zeus server, Mysql 5.1.56, PHP 5.2.17)