Reviewed:  https://reviews.mahara.org/2127
Committed: 
http://gitorious.org/mahara/mahara/commit/a862288009ee96af28c89ee6497a0f6083df0878
Submitter: Aaron Wells ([email protected])
Branch:    1.5_STABLE

commit a862288009ee96af28c89ee6497a0f6083df0878
Author: rlyon <[email protected]>
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 <[email protected]>

-- 
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

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to