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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | user_import.module.patch | 414 bytes | danieljrmay |
Comments
Comment #1
danieljrmay commentedThere 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
Comment #2
fluitfries commentedsame 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.
Comment #3
robert castelo commentedFixed in User Import 4.7.x-1.0 version
Comment #4
(not verified) commented