Skip to content

Share template falls back to default after updating to v0.94.0. #5777

@luxaeternati

Description

@luxaeternati

Description

I am pretty sure the template (~shareTemplate=<TEMPLATE>) should work, since it has always been working. After pulling the docker image and docker compose up -d, the template stopped working. It is using the default template. shareCSS and shareJS are working fine.

In addition, there should be an error message

log.error(`Rendering user provided share template (${templateId}) threw exception ${errMessage} with stacktrace: ${errStack}`);

if the template is not properly being rendered and falling back to the default view, but there is none. Instead, whenever I'm trying to load a shared page, I get exactly two instances of the following message:

triliumnext  | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
triliumnext  |     at ServerResponse.setHeader (node:_http_outgoing:699:11)
triliumnext  |     at Xl.set.Xl.header (/usr/src/app/main.cjs:815:25361)
triliumnext  |     at Xl.contentType.Xl.type (/usr/src/app/main.cjs:815:24459)
triliumnext  |     at Xl.send (/usr/src/app/main.cjs:815:20622)
triliumnext  |     at /usr/src/app/main.cjs:2073:2636
triliumnext  |     at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
triliumnext  |   code: 'ERR_HTTP_HEADERS_SENT'

(I am not sure whether the log is related.)

TriliumNext Version

0.94.0

What operating system are you using?

Other Linux

What is your setup?

Server access only

Operating System Version

Linux 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64 GNU/Linux

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions