Skip to content

[harmless] Suppress the php error message in logs about an empty template. #26438

@SEsternO

Description

@SEsternO

Steps to reproduce

Create a document (.md, .odt, etc.) inside the NC instance using an empty template.

Expected behaviour

No error messages in logs, just like when you create a document using a template.

Actual behaviour

Log tells me about the undefined variable "template" at /var/www/nextcloud/lib/private/Files/Template/TemplateManager.php#171, which (i guess) is really undefined when you create a document without a template. No actual issues when creating a document though.

Server configuration

Operating system:
Linux cloud 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux

Web server:
nginx/1.14.2

Database:
mariadb Ver 15.1 Distrib 10.3.27-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

PHP version:
PHP 7.3.27-1~deb10u1 (cli) (built: Feb 13 2021 16:31:40) ( NTS )

Nextcloud version: (see Nextcloud admin page)
21.0.0

Updated from an older Nextcloud/ownCloud or fresh install:
fresh install

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions