Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User avatar strange rendering #98

Closed
GhaziTriki opened this issue Feb 10, 2020 · 6 comments
Closed

User avatar strange rendering #98

GhaziTriki opened this issue Feb 10, 2020 · 6 comments
Assignees

Comments

@GhaziTriki
Copy link
Contributor

A screen-shot that tell us much

image

@marcelfolaron
Copy link
Contributor

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
Copy link
Contributor Author

I just updated to version 2.0.6

@marcelfolaron
Copy link
Contributor

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
Copy link

ducdung0909 commented Feb 15, 2020

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
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants