By default, Email Registration and Logintoboggan will not work together.
An anonymous user who tries to view a page with the user login block will receive a fatal error on line 61.
This is caused by logintoboggan alterating the block to a text link by default leaving $form['#validate'] empty. This results in Unsupported operand types.
There are 2 ways to fix it.
1) Make the user change the user login block type from a link to standard (this is set within the logintoboggan module)
Or,
2) Alter the code in Email Registration from:
case 'user_login_block':
$form['name']['#title'] = t('E-mail');
$form['#validate'] = array('email_registration_user_login_validate' => array()) + $form['#validate'];
break;
To:
case 'user_login_block':
if (!empty($form['#validate'])) {
$form['name']['#title'] = t('E-mail');
$form['#validate'] = array('email_registration_user_login_validate' => array()) + $form['#validate'];
}
break;
Comments
Comment #1
jamestombs commentedShould of said this occurs on lines 59-62.
Comment #2
Christopher Herberte commented5.x takers?