-
Notifications
You must be signed in to change notification settings - Fork 712
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
Avatar Generation does not work of single letter users #1628
Comments
Maybe it has to do with imagemagicks policy.xml but I tried to modify that and it still didnt work so out of ideas again... |
Interesting! So yeah, I tried my best but didn't find a solution. Help on this is appreciated! My last thought was that it might be the policy.xml from imaginary but even adjusting that didn't made it work... |
You can check it here: |
btw, one workaround that I've found is disabling imagemagick but this will show a warning in the admin overview so is really only a workaround. |
Thanks for your posts @EgonHeuson! However the more I think about your findings, the more I think that this is a different bug than the one that this issue is about. The bug which this issue is about is only about the default avatars not getting generated correctly. |
Argh damned! 😅 I also have the issue with default avatars generation but hard to distinguish if it is link to the other issue in my case or not... 😥 |
Can you clear the browser cache ans check if it still works? |
it works, i'm testing in incognito to remove cache factor :) |
All right. Just tried on my test instance and avatar generation of single name users does not work even in incognito tab. Are you on arm64? |
|
So it seems to work for you correctly on x64. Now I am even more clueless... |
no! sorry, deleted my upd: it's what i have when i'm using ur hack from another thread |
Sorry for misunderstand. |
Which fix? you mean disabling imagemagick? |
|
This comment is not made by me. |
Ooooooh, all this time i thought it was yours :( |
All good! |
i'm not a real programmer and my english is far from perfect, so ... https://github.com/nextcloud/server/blob/v25.0.0/lib/private/Avatar/Avatar.php#L142 is it right that this line looks like this: catch (\Exception $e) so, in summary:
Did some tests and find out that profile pics are generating in every place (on main dashboard, in list of users) except when you come to user profile, so prob. that's the main problem, exception just won't allow script to generate everything else. i dunno how to show exception by changing Avatar.php, tried this: ps what function are responsible for profile pic generation when u go direct to user profile? |
Sorry, I have also already played with this a lot and no changes in catching the exception make any difference on my test instance. So it should work since no error is thrown but it doesnt generate the avatar. As you, I am out of ideas but thanks for your attempt! |
I might be wrong, but it seems like the problem here = svg format.
before this line: https://github.com/nextcloud/server/blob/v25.0.0/lib/private/Avatar/Avatar.php#L137 In result it should be like this:
Now everything is fine. Avatars are generating in every place as it should be. Am i wrong? ps strange thing here: svg template already have this: |
Cross-linking nextcloud/server#36607 here. However I hope that we'll find a solution to this sooner. |
I've been following this issue for a long time. Why is there no solution yet for a simple thing? It's been months. |
Because we didnt found a solution yet. See our investigations and attempts above. If the solution would be easy, we would have fixed the problem a long time ago. If you have further ideas on a technical solution, feel free to post them here. |
@szaimen Thanks for updating. However i would like to bring the fact that there is no such issue in the docker standalone version of nextcloud. The problem exists only in all-in-one installation of nextcloud. Just curious. |
did you use the fpm-alpine image or the apache version? |
I have the same issue on a linuxserver.io nextcloud image so the issue isn't exclusive to aio. Both are based on alpine though. |
Yes, this is my observation as well. |
after #1628 was fixed Signed-off-by: Simon L <szaimen@e.mail.de>
Already tried a lot of things but nothing did make it work:
The text was updated successfully, but these errors were encountered: