Gitea can not start with version 1.22.2 #13344

Closed
opened 2025-11-02 10:39:12 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @Jimleerx on GitHub (Jul 30, 2024).

Description

2024/07/30 08:56:46 ...ates/htmlrenderer.go:140:wrapTmplErrMsg() [F] Gitea can't run with template errors: template error: custom:repo_list:6 : function "repoAvatar" not defined

Gitea Version

1.22.2

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?

personal use

Database

MySQL/MariaDB

Originally created by @Jimleerx on GitHub (Jul 30, 2024). ### Description 2024/07/30 08:56:46 ...ates/htmlrenderer.go:140:wrapTmplErrMsg() [F] Gitea can't run with template errors: template error: custom:repo_list:6 : function "repoAvatar" not defined ### Gitea Version 1.22.2 ### 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? personal use ### Database MySQL/MariaDB
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:39:12 -06:00
Author
Owner

@wolfogre commented on GitHub (Jul 30, 2024):

Hmm, where did you get v1.22.2? Since I checked that the latest version is v1.22.1 for now.

@wolfogre commented on GitHub (Jul 30, 2024): Hmm, where did you get v1.22.2? Since I checked that the latest version is v1.22.1 for now.
Author
Owner

@wolfogre commented on GitHub (Jul 30, 2024):

Are you using custom templates? If so, I think the error is related to #26387, repoAvatar has been removed and you need to update your custom templates.

@wolfogre commented on GitHub (Jul 30, 2024): Are you using custom templates? If so, I think the error is related to #26387, `repoAvatar` has been removed and you need to update your custom templates.
Author
Owner

@wxiaoguang commented on GitHub (Jul 31, 2024):

Pretty sure it is caused by "custom templates"

And when using 1.22, there are more breaking changes for "custom templates" (#29395), so you need to either delete the old custom template files, or re-exact them and re-edit them.

@wxiaoguang commented on GitHub (Jul 31, 2024): Pretty sure it is caused by "custom templates" And when using 1.22, there are more breaking changes for "custom templates" (#29395), so you need to either delete the old custom template files, or re-exact them and re-edit them.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13344