← Back to team overview

mahara-contributors team mailing list archive

[Bug 1051792] Re: Warnings when adding existing users by CSV

 

** Also affects: mahara/1.5
   Importance: Undecided
       Status: New

** Also affects: mahara/1.6
   Importance: Undecided
       Status: New

** Also affects: mahara/1.7
   Importance: Undecided
       Status: New

** Changed in: mahara/1.5
    Milestone: None => 1.5.10

** Changed in: mahara/1.6
    Milestone: None => 1.6.5

** Changed in: mahara/1.7
    Milestone: None => 1.7.1

** Changed in: mahara/1.5
       Status: New => Fix Released

** Changed in: mahara/1.6
       Status: New => Fix Released

** Changed in: mahara/1.7
       Status: New => Fix Released

** Changed in: mahara
       Status: In Progress => Fix Committed

** Changed in: mahara/1.5
   Importance: Undecided => Low

** Changed in: mahara/1.6
   Importance: Undecided => Low

** Changed in: mahara/1.7
   Importance: Undecided => Low

-- 
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:
  Fix Committed
Status in Mahara 1.5 series:
  Fix Released
Status in Mahara 1.6 series:
  Fix Released
Status in Mahara 1.7 series:
  Fix Released

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