If profile module is enabled, but no profile fields exist yet, when you attempt to import a user you receive:

    * warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/pug/modules/contrib/user_import/user_import.module on line 872.
    * warning: asort() expects parameter 1 to be array, null given in /Applications/MAMP/htdocs/pug/modules/contrib/user_import/user_import.module on line 877.
CommentFileSizeAuthor
#1 user_import.module.patch414 bytesdanieljrmay

Comments

danieljrmay’s picture

Status: Active » Needs review
StatusFileSize
new414 bytes

There where a couple of arrays which were not initalised. The attached patch seems to fix this for me using 4.7, I have not tested it with 4.6.

Cheers, Dan

fluitfries’s picture

same issue as: http://drupal.org/node/68407

read more details there. in my case, i did not need profile.module at the time of import so simply disabling that module took care of the errors.

robert castelo’s picture

Status: Needs review » Fixed

Fixed in User Import 4.7.x-1.0 version

Anonymous’s picture

Status: Fixed » Closed (fixed)