mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #12187
[Bug 1051792] A change has been merged
Reviewed: https://reviews.mahara.org/2125
Committed: http://gitorious.org/mahara/mahara/commit/30a3ed500d8bf3be9a0a065ff68da1fe4446c48a
Submitter: Aaron Wells (aaronw@xxxxxxxxxxxxxxx)
Branch: 1.7_STABLE
commit 30a3ed500d8bf3be9a0a065ff68da1fe4446c48a
Author: rlyon <rlyon@xxxxxxxxxxxxxxx>
Date: Wed Apr 17 14:43:29 2013 +1200
Fix the remote username warning (Bug #1051792)
Trying to pass stdClass Object rather than the wanted username string
Change-Id: Ide5323d239854fa0d131c3941731432e81c7d0d7
Signed-off-by: rlyon <rlyon@xxxxxxxxxxxxxxx>
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/1051792
Title:
Warnings when adding existing users by CSV
Status in Mahara ePortfolio:
In Progress
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