mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #10644
[Bug 1051792] Re: Warnings when adding existing users by CSV
This is only when the upload failed, and so I will target for 1.7
** Changed in: mahara
Status: New => Triaged
** Changed in: mahara
Importance: Undecided => Low
** Changed in: mahara
Milestone: None => 1.7.0
** Tags added: admin bite-sized csvupload
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1051792
Title:
Warnings when adding existing users by CSV
Status in Mahara ePortfolio:
Triaged
Bug description:
Version: all
When admins added a user by CSV (/admin/users/uploadcsv.php), if the
remote username has been taken and the option 'Update users' was
disable, the following warning showed up:
[WAR] 9e (lib/mahara.php:1117) 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/sonn/code/mahara/htdocs/lib/mahara.php", 1117) at /home/sonn/code/mahara/htdocs/lib/errors.php:446
error(4096, "Object of class stdClass could not be converted to...", "/home/sonn/code/mahara/htdocs/lib/mahara.php", 1117, array(size 3)) at Unknown:0
sprintf("Line %s of the file specifies a remote username "%...", 2, "u01", object(stdClass)) at Unknown:0
call_user_func_array("sprintf", array(size 4)) at /home/sonn/code/mahara/htdocs/lib/mahara.php:1117
format_langstring("Line %s of the file specifies a remote username "%...", array(size 3), "en.utf8") at /home/sonn/code/mahara/htdocs/lib/mahara.php:490
get_string_location("uploadcsverrorremoteusertaken", "admin", array(size 3)) at /home/sonn/code/mahara/htdocs/lib/mahara.php:293
get_string("uploadcsverrorremoteusertaken", "admin", 2, "u01", object(stdClass)) at /home/sonn/code/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/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:1324
Pieform->validate(array(size 16)) at /home/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:492
Pieform->__construct(array(size 4)) at /home/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:161
Pieform::process(array(size 4)) at /home/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 4)) at /home/sonn/code/mahara/htdocs/admin/users/uploadcsv.php:646
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1051792/+subscriptions
References