Reviewed:  https://reviews.mahara.org/3836
Committed: 
http://gitorious.org/mahara/mahara/commit/a019b2cbae098c9584e783f23528dfb6645adf5a
Submitter: Robert Lyon (robe...@catalyst.net.nz)
Branch:    1.10_STABLE

commit a019b2cbae098c9584e783f23528dfb6645adf5a
Author: Son Nguyen <s...@catalyst.net.nz>
Date:   Mon Oct 13 16:20:38 2014 +1300

Fix the parameters for remote_avatar_url(). Bug 1380433

Change-Id: Idd084a6f0d28c1749bf8a09a502c4eec7032e842

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1380433

Title:
  error with profile icon and gravitar

Status in Mahara ePortfolio:
  Fix Committed

Bug description:
  When I have 'use gravitar' turned on and then I go to alter view
  access and share with friends I get this error:

  [WAR] ee (lib/user.php:2685) remote_avatar_url: size should be in (16, 20, 
25, 40, 50, 60, 100)
  Call stack (most recent first):

      log_message("remote_avatar_url: size should be in (16, 20, 25, ...", 8, 
true, true) at /home/robertl/htdocs/mahara-devel/mahara/htdocs/lib/errors.php:95
      log_warn("remote_avatar_url: size should be in (16, 20, 25, ...") at 
/home/robertl/htdocs/mahara-devel/mahara/htdocs/lib/user.php:2685
      remote_avatar_url("fr...@catalyst.net.nz", array(size 2)) at 
/home/robertl/htdocs/mahara-devel/mahara/htdocs/thumb.php:78

  [WAR] ee (lib/user.php:2690) Array to string conversion
  Call stack (most recent first):

      log_message("Array to string conversion", 8, true, true, 
"/home/robertl/htdocs/mahara-devel/mahara/htdocs/li...", 2690) at 
/home/robertl/htdocs/mahara-devel/mahara/htdocs/lib/errors.php:439
      error(8, "Array to string conversion", 
"/home/robertl/htdocs/mahara-devel/mahara/htdocs/li...", 2690, array(size 4)) 
at /home/robertl/htdocs/mahara-devel/mahara/htdocs/lib/user.php:2690
      remote_avatar_url("fr...@catalyst.net.nz", array(size 2)) at 
/home/robertl/htdocs/mahara-devel/mahara/htdocs/thumb.php:78

  [DBG] ee (lib/web.php:1012) Missing file in theme default:
  images/no_userphotoArray.png

  
  I notice that the $size being passed in is not a string but an array 
  eg:

  [DBG] ee (lib/user.php:2683) Array
  (
      [maxw] => 25
      [maxh] => 25
  )

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1380433/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to