mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #55841
[Bug 1845051] Re: Missing image file in theme raw: no_userphoto100
** Changed in: mahara
Status: In Progress => Fix Committed
--
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/1845051
Title:
Missing image file in theme raw: no_userphoto100
Status in Mahara:
Fix Committed
Bug description:
When we try and fetch the user's profile icon in some instances we get
the following error:
Missing image file in theme raw: no_userphoto100
This is because it is trying to look for a file called
no_userphoto100.jpg, which does not exist
And it does this because it checks for no_userphoto100 against an
array of extensions
The problem stems from the setting of the 'notfound' option for the
remote_avatar_url function and the default size being 100 and out
default image not being suffixed with 100 (unlike the other options).
To test:
1) Make sure your user has the default profile icon set
2) Then go to: Administration -> Extensions -> Plugin configuration
3) Click on the cog for Mahara mobile and make sure it's enabled / setup with manual tokens
4) Go to Account -> Settings -> Connected Apps -> Mahara mobile and generate a token.
5) Copy this token and add it to the wstoken part of the following url
module/mobileapi/download.php?wsfunction=module_mobileapi_get_user_profileicon&width=60&wstoken=
Then go to that url in your site - you will see the default icon at
width 60px
Then take out the &width=60 part
You should see the default icon at width 100px but you don't - instead
you get 404
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1845051/+subscriptions
References