Skip to content

Admin UI: enabling a birthday calendar for address book returns 500 #328

Description

@scraptux

Davis version

v5.6.3

Installation method

NixOS module

PHP version (bare metal only)

8.5.12

Database

PostgreSQL

Reverse proxy

Nginx

Authentication method

Internal (ADMIN_LOGIN / ADMIN_PASSWORD)

Affected protocol(s)

  • CalDAV
  • CardDAV
  • WebDAV
  • Admin dashboard
  • API

Client(s) exhibiting the issue

  • Admin UI

Relevant environment variables

APP_ENV=prod
CALDAV_ENABLED=true
CARDDAV_ENABLED=true
WEBDAV_ENABLED=false
PUBLIC_CALENDARS_ENABLED=false
DATABASE_DRIVER=postgresql
DATABASE_URL=postgres://davis@localhost/davis?host=/run/postgresql
APP_TIMEZONE=Europe/Berlin

AUTH_METHOD unset
BIRTHDAY_REMINDER_OFFSET unset

Steps to reproduce

  1. Create a user with an address book containing at least one card (might need the BDAY property)
  2. Admin -> Address books -> Edit -> set "Include in birthday calendar" to Yes -> Save
  3. -> 500

Expected behaviour

Should create a shared birthday calendar containing the birthdays from the selected address book.

Actual behaviour

Creates an empty shared birthday calendar and fails with 500.
Running bin/console dav:sync-birthday-calendar <user> worked/fixed it correctly.

Logs

request.CRITICAL: Uncaught PHP Exception Error: "Call to a member function createCalendarObject() on null" at src/Services/BirthdayService.php line 348

Additional context

Creating a shared birthday calendar for a user with an empty address book showed no problems.

Possibly the same as #251, which couldn't be reproduced. Possible because it ran on an address book without (BDAY) entries.

Activity

  1. added
    bug
    on Nov 19, 2026
  2. tchapi commented on Dec 3, 2026

    @tchapi
    Owner

    Hi @scraptux

    Thanks for the report
    A contributor was working on that but their account was deleted 🤷🏼, so the fix PR was deleted with it. I'll address that bug soon.

  3. self-assigned this
    on Dec 3, 2026
  4. added theissue type on Dec 3, 2026
  5. linked a pull request that will close this issueBirthday backend injection #332on Dec 3, 2026
  6. removed
    bug
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions