Problem/Motivation

After updating from 3.x to 4.0.3 we started getting the error:

"Error: Call to undefined function Drupal\\mail_login\\user_load_by_name() in Drupal\\mail_login\\AuthDecorator->lookupAccount() (line 122 of /var/www/html/docroot/modules/contrib/mail_login/src/AuthDecorator.php) #0 /var/www/html/docroot/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php(104): Drupal\\mail_login\\AuthDecorator->lookupAccount()"

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3525789-2.patch566 byteshchonov

Comments

hchonov created an issue. See original summary.

hchonov’s picture

StatusFileSize
new566 bytes

Probably during the bootstrap process the user.module is not loaded yet. Let us try with using the storage directly.

hchonov’s picture

Status: Active » Reviewed & tested by the community

The solution in here indeed solved the problem for us.

  • mqanneh committed 75dd266c on 4.2.x
    Issue #3525789 by mqanneh, hchonov: Error: Call to undefined function...
mqanneh’s picture

Thanks, this is fixed in the latest version.

mqanneh’s picture

Status: Reviewed & tested by the community » Fixed
mqanneh’s picture

Status: Fixed » Closed (fixed)