-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
error calling AvatarLink: runtime error: invalid memory address or nil pointer dereference #22516
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
Comments
I'm using postgresql on arm64 ubuntu 22.04, everything's at latest version. Can reproduce the issue. This only occurs when the user is logged in, so users that are not logged in can still see the homepage just fine. Everything else works fine AFAIK. Tested all tabs of the admin UI, and a few trivial Git actions on test repos. Edit: It seems to fail when loading user icons that are from Git users that don't exist in the Gitea database. For example in my mirror of the Linux kernel source, Torvalds had his profile picture set on Github and that displayed fine in the mirror on 1.18. But now it fails because he's not registered as a user on my instance. It also attempts to display the profile pic of the person who committed recently on the homepage when I'm logged in so that also triggers the same error that the person who's posting got. My profile picture displays fine in some places but fails in others. For example on my repository's homepage my committer profile pic is showing but when I click on the list of commits I get a slightly different Rolling back to 1.18 for now. |
Disabling Gravatar works around the problem |
Nope, disabling Gravatar does not fix the problem. Set |
Since this is |
Got it. Disabling Gravatar from the admin page worked and it didn't even need a restart to get fixed. Thanks! However now I can't see external contributors' profile pics. This is just a temporary workaround. |
This has been fixed in coming v1.18.2. |
Fixed by #22479 |
Description
homepage render 500 after upgraded to 1.18.1
settings
Gitea Version
1.18.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
2.36.3
Operating System
docker
How are you running Gitea?
we use official docker image
gitea/gitea
Database
MySQL
The text was updated successfully, but these errors were encountered: