Drupal 7.22, LoginToboggan 7.x-1.3 using the unified login/registration page:

Notice: Undefined index: actions in theme_ajax_register_wrapper() (line 14 of /var/www/clients/client7/web29/web/sites/all/modules/ajax_register/ajax_register.theme.inc).

This error only appears when the two forms are presented simultaneously. I tried a dsm() just before that line 13 and watched the two forms render:

$form['#id'] = user-login - http://pastebin.com/eFCV4Vq1
$form['#id'] = user-register-form - http://pastebin.com/LwDFY57y

It turns out that the user_register_form is missing its $form['actions'] parameter (as the error states) and interestingly when the registration form is submitted, no visible errors are thrown. Fields are highlighted during failed login form submission though.

Headers for the submitted form requrest are here: http://pastebin.com/g6J194qr
Response for that request is here: http://pastebin.com/rsKYk688

Note that the only failed field should have been the captcha, but regardless of failure no fields are highlighted as errors. Should the user-register-form have an 'actions' variable so that the ajax response can be handled properly?

Comments

emcniece’s picture

A 'debug' mode that prints the CAPTCHA solution in comments or visibly would be pretty cool too... yahoo scope creep.

emcniece’s picture

Issue summary: View changes

adding code references