Leantime / leantime

Leantime is a goals focused project management system for non-project managers. Building with ADHD, Autism, and dyslexia in mind.
https://leantime.io
GNU Affero General Public License v3.0
4.41k stars 578 forks source link

User avatar strange rendering #98

Closed GhaziTriki closed 4 years ago

GhaziTriki commented 4 years ago

A screen-shot that tell us much

image

marcelfolaron commented 4 years ago

Hi,

When did this start happening? That usually happens when switching from local file system to S3 (or vice versa). Did you change the config recently? The system does not perform a migration so when moving from one file storage system to another you'll have to move the files manually.

GhaziTriki commented 4 years ago

I just updated to version 2.0.6

marcelfolaron commented 4 years ago

Can you check if the file it is trying to load, something like:

/download.php?module=user&encName=XXX&ext=XXX&realName=userPicture

throws any error or if it is a 404?

ducdung0909 commented 4 years ago

Hi, I got same problem while uploading and choose new avatar image for any user. I got logs as below: NOTICE: PHP message: PHP Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in /var/www/html/public/download.php on line 78

I just installed latest version of leantime on docker.

ducdung0909 commented 4 years ago

Hi, I edit line 78 of download.php file in /var/www/html/public/ like below:

ob_end_clean();

(ob_get_length() > 0) { ob_end_clean(); } Image are now uploaded and display well.

marcelfolaron commented 4 years ago

Thank you, good catch. I'll cut a new release this weekend and will include the fix.