Skip to content

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

Closed

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

Activity

  1. added
    0. Needs triage
    on Apr 7, 2021
  2. juliusknorr commented on May 12, 2021

    @juliusknorr
    Member

    Closing as a duplicate of #26817

    A fix is pending in #26963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions