Template errors after update #13080

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

Originally created by @Pawel-Bedn4rczyk on GitHub (May 31, 2024).

Description

Hi when I update gitea version. I can't run docker anymore.
I get many template errors like:

2024/05/31 13:30:34 ...ates/htmlrenderer.go:140:wrapTmplErrMsg() [F] Gitea can't run with template errors: template error: custom:admin/dashboard:5 : function "Str2html" not defined
----------------------------------------------------------------------
                                <p>{{(ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer) | Str2html}}</p>
                                                                                                                ^^^^^^^^
----------------------------------------------------------------------

When I start new instance of gitea docker with clean data everything works fine ;(

Any help or hint? Thanks

Gitea Version

1.22

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Linux 6.1.79-Unraid x86_64

How are you running Gitea?

Docker selfhosted

Database

MySQL/MariaDB

Originally created by @Pawel-Bedn4rczyk on GitHub (May 31, 2024). ### Description Hi when I update gitea version. I can't run docker anymore. I get many template errors like: ``` 2024/05/31 13:30:34 ...ates/htmlrenderer.go:140:wrapTmplErrMsg() [F] Gitea can't run with template errors: template error: custom:admin/dashboard:5 : function "Str2html" not defined ---------------------------------------------------------------------- <p>{{(ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer) | Str2html}}</p> ^^^^^^^^ ---------------------------------------------------------------------- ``` When I start new instance of gitea docker with clean data everything works fine ;( Any help or hint? Thanks ### Gitea Version 1.22 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Linux 6.1.79-Unraid x86_64 ### How are you running Gitea? Docker selfhosted ### Database MySQL/MariaDB
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:29:39 -06:00
Author
Owner

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

It has been documented in the release blog:

image

image

@wxiaoguang commented on GitHub (May 31, 2024): It has been documented in the release blog: ![image](https://github.com/go-gitea/gitea/assets/2114189/b0872025-f839-4def-938d-de7bcb40a18c) ![image](https://github.com/go-gitea/gitea/assets/2114189/f930f1a7-e16b-4c8b-8131-cb424898d84e)
Author
Owner

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

Your log custom:admin/dashboard:5 shows that you are using "custom templates". If you don't need the custom templates, you could simply remove them.

@wxiaoguang commented on GitHub (May 31, 2024): Your log `custom:admin/dashboard:5` shows that you are using "custom templates". If you don't need the custom templates, you could simply remove them.
Author
Owner

@Pawel-Bedn4rczyk commented on GitHub (May 31, 2024):

Ok thx for help @wxiaoguang . I resolved it by copied all new templates from repo and put some changes from my old templates now it works again ;)

@Pawel-Bedn4rczyk commented on GitHub (May 31, 2024): Ok thx for help @wxiaoguang . I resolved it by copied all new templates from repo and put some changes from my old templates now it works again ;)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13080