News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Avatar problems

Started by thestarsaredown, August 26, 2020, 01:06:49 AM

Previous topic - Next topic

thestarsaredown

A board I admin has had for years some issue where you couldn't change an avatar.  The forum didn't allow uploading, and for whatever reason selecting your own avatar from external URL was defaulting it to no avatar as soon as you hit save.

Myself and another admin sat down tonight to try to fix it, and tried to change some settings in the Avatar/Attachments area.  We're on 2.0.17.

Unfortunately, I think what was set as the avatars directory has caused further issues - when people try an avatar with https, it just does the same reset back to no avatar. 

Any time they try it as http instead, they get

"OURFORUMNAME is currently unable to handle this request.
HTTP ERROR 500"

When I try to manually upload an avatar, I get the same error.  So I think it's related to that.  Repair settings.php didn't do the trick.  Any suggestions on

A) how to stop the 500 error and
B) how to get external avatars working?

shawnb61

Sounds like an issue reported here:
https://www.simplemachines.org/community/index.php?topic=573014.0

Try disabling the "Download avatar at given url" setting.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

thestarsaredown

Quote from: shawnb61 on August 26, 2020, 02:04:44 AM
Sounds like an issue reported here:
https://www.simplemachines.org/community/index.php?topic=573014.0

Try disabling the "Download avatar at given url" setting.

It was off, so I figured what the hell, turned it on.

It still does the same thing for https, but for http, it works.  I have no idea where it's putting avatars (certainly not the directory I specified) but it's an improvement for sure

thestarsaredown

To complicate this, users also can't upload gif format, and I'm getting reports that avatars aren't being resized for all users.

Deaks

can you attach a screenshot of how you have your avatar settings in admin panel set up :)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

thestarsaredown



I blanked out the directories, but that's basically as things stand now.

thestarsaredown

It's been a bit, was hoping for any additional suggestions?  Some file formats don't work, and https in the address doesn't work either.  Plus i'm having to have all the avatars downloaded which i don't think is a good solution

CoppeR`


shawnb61

I have a theory regarding some of the problem here... 

Let me know if changing this line of code works. 

In Sources/Profile-Modify.php, ~line 2596, find:
$downloadedExternalAvatar = false;
if ($value == 'external' && allowedTo('profile_remote_avatar') && strtolower(substr($_POST['userpicpersonal'], 0, 7)) == 'http://' && strlen($_POST['userpicpersonal']) > 7 && !empty($modSettings['avatar_download_external']))


And replace with:
$downloadedExternalAvatar = false;
if ($value == 'external' && allowedTo('profile_remote_avatar') && (strtolower(substr($_POST['userpicpersonal'], 0, 7)) == 'http://' || strtolower(substr($_POST['userpicpersonal'], 0, 8)) == 'https://') && strlen($_POST['userpicpersonal']) > 7 && !empty($modSettings['avatar_download_external']))
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

m4z

(Sorry for the noise; reference: internal issue #162)
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

Steve

As the OP was here 5 months after Shawn's suggestion and request without responding, I'm marking this solved.
DO NOT pm me for support!

Advertisement: