The sample csv file will produce the warnings. I am using Drupal 4.7.2

* warning: Invalid argument supplied for foreach() in /home/hanschr/public_html/cms/modules/user_import/user_import.module on line 872.
* warning: asort() expects parameter 1 to be array, null given in /home/hanschr/public_html/cms/modules/user_import/user_import.module on line 877.

Comments

xenotica’s picture

Oddly enough this just stopped happening. So the warnings are gone. Not sure What I did. This may not be a bug after all.

robert castelo’s picture

Status: Active » Closed (fixed)
fluitfries’s picture

I also see this error. New drupal 4.7.4 installation, using latest HEAD of user_import. Using PHP 5.2 and Apache/1.3.33 (Darwin). My user_import module is installed to /sites/default/modules/user_import/

Here's the output of the error:

    * warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/sites/default/modules/user_import/user_import.module on line 872.
    * warning: asort() expects parameter 1 to be array, null given in /Library/WebServer/Documents/sites/default/modules/user_import/user_import.module on line 877.

Hope this helps.

fluitfries’s picture

this is the same as issue: http://drupal.org/node/84586

it happened when i had the profile module enabled but had not yet added any profile fields. i simply turned off the profile module and the error disappeared.