Render failed, failed to render template: repo/settings/webhook/new #14101

Closed
opened 2025-11-02 11:02:51 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @maantje on GitHub (Feb 5, 2025).

Description

@lunny After doing the upgrade to v1.23.2 the webhook add/update pages show an internal server error.

I assume it is related to https://github.com/go-gitea/gitea/pull/33442 but have not looked into it further yet.

500 Internal Server Error

An error occurred:

Render failed, failed to render template: repo/settings/webhook/new, error: template error: builtin(bindata):repo/settings/webhook/settings:116:55 : executing "repo/settings/webhook/settings" at <.Webhook.HookEvents.Get>: can't evaluate field Get in type webhook.HookEvents
----------------------------------------------------------------------
					<input name="status" type="checkbox" {{if .Webhook.HookEvents.Get "status"}}checked{{end}}>
					                                                  ^
----------------------------------------------------------------------

Gitea Version: 1.23.2

If you believe that this is a Gitea bug, please search for issues on [GitHub](https://github.com/go-gitea/gitea/issues) or open a new issue if necessary.

Gitea Version

1.23.2

Can you reproduce the bug on the Gitea demo site?

Not sure, site seems down at the moment.

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker gitea/gitea:1.23.2-rootless

Database

MySQL/MariaDB

Originally created by @maantje on GitHub (Feb 5, 2025). ### Description @lunny After doing the upgrade to v1.23.2 the webhook add/update pages show an internal server error. I assume it is related to https://github.com/go-gitea/gitea/pull/33442 but have not looked into it further yet. ``` 500 Internal Server Error An error occurred: Render failed, failed to render template: repo/settings/webhook/new, error: template error: builtin(bindata):repo/settings/webhook/settings:116:55 : executing "repo/settings/webhook/settings" at <.Webhook.HookEvents.Get>: can't evaluate field Get in type webhook.HookEvents ---------------------------------------------------------------------- <input name="status" type="checkbox" {{if .Webhook.HookEvents.Get "status"}}checked{{end}}> ^ ---------------------------------------------------------------------- Gitea Version: 1.23.2 If you believe that this is a Gitea bug, please search for issues on [GitHub](https://github.com/go-gitea/gitea/issues) or open a new issue if necessary. ```` ### Gitea Version 1.23.2 ### Can you reproduce the bug on the Gitea demo site? Not sure, site seems down at the moment. ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Docker gitea/gitea:1.23.2-rootless ### Database MySQL/MariaDB
GiteaMirror added the type/bug label 2025-11-02 11:02:51 -06:00
Author
Owner

@lunny commented on GitHub (Feb 5, 2025):

related to #33493

@lunny commented on GitHub (Feb 5, 2025): related to #33493
Author
Owner

@lunny commented on GitHub (Feb 6, 2025):

Fixed by #33512

@lunny commented on GitHub (Feb 6, 2025): Fixed by #33512
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14101