When the email address and/or username needs to be updated in Drupal, the following error is thrown.

Notice: Undefined variable: message_tokens in _ldap_authentication_user_login_authenticate_validate() (line 557 of /var/www/drupal-7.15/sites/all/modules/ldap/ldap_authentication/ldap_authentication.inc).

Recoverable fatal error: Argument 2 passed to t() must be an array, null given, called in /var/www/drupal-7.15/sites/all/modules/ldap/ldap_authentication/ldap_authentication.inc on line 557 and defined in t() (line 1478 of /var/www/drupal-7.15/includes/bootstrap.inc).

The attached patch fixes this.

CommentFileSizeAuthor
0105-fix-unidentified-variable-error.patch1.28 KBblc

Comments

johnbarclay’s picture

Title: Undefined variable: message_tokens in _ldap_authentication_user_login_authenticate_validate() » LDAP Authentication: Undefined variable: message_tokens in _ldap_authentication_user_login_authenticate_validate()
Status: Active » Fixed

Thanks. This is fixed and in 7.x-2.x-dev. The $message_tokens should have been $watchdog_tokens.

johnbarclay’s picture

this is fixed in 7.x-1.x-dev also.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.