mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #21290
[Bug 1380433] A change has been merged
Reviewed: https://reviews.mahara.org/3789
Committed: http://gitorious.org/mahara/mahara/commit/da977d001e74d155c43c1be11be7f23486cb47da
Submitter: Son Nguyen (son.nguyen@xxxxxxxxxxxxxxx)
Branch: master
commit da977d001e74d155c43c1be11be7f23486cb47da
Author: Son Nguyen <sonn@xxxxxxxxxxxxxxx>
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:
In Progress
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("fredt@xxxxxxxxxxxxxxx", 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("fredt@xxxxxxxxxxxxxxx", 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
References