Hi,

I am experiencing a problem with line 805 in user_import.module
while ($data = fgetcsv($handle, $user_import_line_max, ',')) {

I can't confirm whether this is a problem with my install or not but I have setup the module according to the readme file and run into this problem with the sample.csv and my own csv files.

URL: http://oratostage.randomlink.com/index.php?q=admin/settings/user_import/add

ERROR MESSAGE:
warning: fgetcsv(): supplied argument is not a valid stream resource in D:\wwwroot\oratostage.randomlink.com\modules\user_import\user_import.module on line 805.
warning: fclose(): supplied argument is not a valid stream resource in D:\wwwroot\oratostage.randomlink.com\modules\user_import\user_import.module on line 896.
warning: Cannot modify header information - headers already sent by (output started at D:\wwwroot\oratostage.randomlink.com\includes\common.inc:384) in D:\wwwroot\oratostage.randomlink.com\includes\common.inc on line 192.

I also get an error when I try and modify the configuration:
When I try and edit the max users or length of line I get this message:

"Value must be a number. Default has been set.
Value must be a number. Default has been set.
Home » administer » settings
Maximum Users/Process:

Maximum number of users to import each time the file is processed, useful for controling the rate at which emails are sent out.
Maximum length of line:

The default is set at 1,000 characters, if a line in your csv is longer than this you should set a higher maximum here. Setting higher maximums will slow down imports.
Default Settings:
-- none --test
Select if you want to use a previously saved set of settings as default for all imports.
"

I have allowed authenticated users permissions to import users for testing so you can sign up and log in to test or email me and I can send you a login.

thanks for any help on this,
Loc

Comments

robert castelo’s picture

Hi,
better to not allow authenticated users to import users to your site, if you want me to take a look just create a 'developer' role, give the 'developer' role permition to import users, then create an account for me and set it to 'developer' role.

You can send me the account info by clicking on my username and using the contact tab.

robert castelo’s picture

Status: Active » Closed (fixed)