explore/repo_list: nil pointer evaluating *user.User.Visibility #10364

Closed
opened 2025-11-02 09:05:22 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @robertschulze on GitHub (Mar 1, 2023).

Description

When logged on as any of the Gitea administrator accounts and navigating to the Explore view, I receive a 500 error. The log file reads:

2023/03/01 20:36:47 ...s/context/context.go:233:HTML() [E] [63ffa94f] Render failed: template: explore/repo_list:29:19: executing "explore/repo_list" at <.Owner.Visibility.IsPrivate>: nil pointer evaluating *user.User.Visibility

For non-admin users, the Explore view opens fine.

Gitea Version

1.18.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Gitea binary download from GitHub release page (gogit)

Database

None

Originally created by @robertschulze on GitHub (Mar 1, 2023). ### Description When logged on as any of the Gitea administrator accounts and navigating to the Explore view, I receive a 500 error. The log file reads: 2023/03/01 20:36:47 ...s/context/context.go:233:HTML() [E] [63ffa94f] Render failed: template: explore/repo_list:29:19: executing "explore/repo_list" at <.Owner.Visibility.IsPrivate>: nil pointer evaluating *user.User.Visibility For non-admin users, the Explore view opens fine. ### Gitea Version 1.18.1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Gitea binary download from GitHub release page (gogit) ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:05:22 -06:00
Author
Owner

@robertschulze commented on GitHub (Mar 3, 2023):

The cause were missing organizations. Somehow they were deleted when removing single users (despite that they weren't the last ones). I was able to recover by restoring the organizations and teams from a backup gitea.db file via SQL INSERT statements

@robertschulze commented on GitHub (Mar 3, 2023): The cause were missing organizations. Somehow they were deleted when removing single users (despite that they weren't the last ones). I was able to recover by restoring the organizations and teams from a backup gitea.db file via SQL INSERT statements
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10364