mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #11742
[Bug 731647] Re: Ignore duplicates in CSV upload
Also related to this, is that when you try to upload a file that
contains duplicate users, it generates a warning message:
[WAR] e8 (lib/mahara.php:1123) Object of class stdClass could not be converted to string
Call stack (most recent first):
log_message("Object of class stdClass could not be converted to...", 8, true, true, "/home/aaronw/www/mahara/htdocs/lib/mahara.php", 1123) at /home/aaronw/www/mahara/htdocs/lib/errors.php:446
error(4096, "Object of class stdClass could not be converted to...", "/home/aaronw/www/mahara/htdocs/lib/mahara.php", 1123, array(size 3)) at Unknown:0
sprintf("Line %s of the file specifies a remote username "%...", 4, "Polly", object(stdClass)) at Unknown:0
call_user_func_array("sprintf", array(size 4)) at /home/aaronw/www/mahara/htdocs/lib/mahara.php:1123
format_langstring("Line %s of the file specifies a remote username "%...", array(size 3), "en.utf8") at /home/aaronw/www/mahara/htdocs/lib/mahara.php:496
get_string_location("uploadcsverrorremoteusertaken", "admin", array(size 3)) at /home/aaronw/www/mahara/htdocs/lib/mahara.php:293
get_string("uploadcsverrorremoteusertaken", "admin", 4, "Polly", object(stdClass)) at /home/aaronw/www/mahara/htdocs/admin/users/uploadcsv.php:338
uploadcsv_validate(object(Pieform), array(size 16)) at Unknown:0
call_user_func_array("uploadcsv_validate", array(size 2)) at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:1324
Pieform->validate(array(size 16)) at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:492
Pieform->__construct(array(size 4)) at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:161
Pieform::process(array(size 4)) at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 4)) at /home/aaronw/www/mahara/htdocs/admin/users/uploadcsv.php:646
We should clean that up.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/731647
Title:
Ignore duplicates in CSV upload
Status in Mahara ePortfolio:
Confirmed
Bug description:
When an institution wants to upload their users via a csv file, but
some of their users already have a Mahara account, i.e. the email
address already exists in Mahara, an error message is returned and no
new user accounts are created.
Instead, only these duplicates should be ignored and all other
accounts should be created. Thus, when a csv file is uploaded and
existing accounts / email addresses are encountered, convert the error
message into a warning that is printed to the screen and keep going
with the account creation.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/731647/+subscriptions
References