Missing image file in theme raw: no_userphoto100
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned |
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
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/
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
Changed in mahara: | |
importance: | Undecided → Medium |
milestone: | none → 19.10.0 |
status: | New → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/10370