custom/template not work after update #2116

Closed
opened 2025-11-02 04:24:36 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @EnricoFerro on GitHub (Jul 30, 2018).

  • Gitea version (or commit ref): d572336 ( probably from a74426d )
  • Git version:
  • Operating system: Linux Ubuntu
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

In Docker after update from be4ec0c to d572336 the custom/templates is not more read ( in particular after the modification of template/home.tmpl.
The public image ( custom/public/img ) is not affected.

Probably the cause is the a74426d commit.

Screenshots

Before:
image

After:
image

Originally created by @EnricoFerro on GitHub (Jul 30, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): d572336 ( probably from a74426d ) - Git version: - Operating system: Linux Ubuntu - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - [ ] Not relevant - Log gist: ## Description In Docker after update from be4ec0c to d572336 the custom/templates is not more read ( in particular after the modification of template/home.tmpl. The public image ( custom/public/img ) is not affected. Probably the cause is the a74426d commit. ## Screenshots Before: ![image](https://user-images.githubusercontent.com/25525316/43419419-1b88f808-9441-11e8-8f2e-7d1b2b5b6637.png) After: ![image](https://user-images.githubusercontent.com/25525316/43419479-466accfe-9441-11e8-8433-a9a4faa8f42a.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/bug label 2025-11-02 04:24:36 -06:00
Author
Owner

@LER0ever commented on GitHub (Aug 3, 2018):

Hi, same issue here. Probably the this line in this commit caused the tplFileSys to be initialized more than it should be?

@LER0ever commented on GitHub (Aug 3, 2018): Hi, same issue here. Probably the [this line](https://github.com/go-gitea/gitea/commit/a74426d631e3311cc3c460ae9917f76f0221f4de?diff=split#diff-a4fec05dc3a0e1923fa6e6af59ab2b69R115) in [this commit](https://github.com/go-gitea/gitea/commit/a74426d631e3311cc3c460ae9917f76f0221f4de) caused the `tplFileSys` to be initialized more than it should be?
Author
Owner

@sankethpb commented on GitHub (Sep 22, 2018):

could this be back-ported to 1.5.2 ?

@sankethpb commented on GitHub (Sep 22, 2018): could this be back-ported to 1.5.2 ?
Author
Owner

@lafriks commented on GitHub (Sep 22, 2018):

I don't think 1.5 branch has that problem

@lafriks commented on GitHub (Sep 22, 2018): I don't think 1.5 branch has that problem
Author
Owner

@sankethpb commented on GitHub (Sep 22, 2018):

We are facing the same issue in 1.5.1, in docker image.

@sankethpb commented on GitHub (Sep 22, 2018): We are facing the same issue in 1.5.1, in docker image.
Author
Owner

@strk commented on GitHub (Sep 23, 2018):

I don't have problems with custom templates with 1.5.1
(but I'm not using Docker)

@strk commented on GitHub (Sep 23, 2018): I don't have problems with custom templates with 1.5.1 (but I'm not using Docker)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2116