Admin UI: enabling a birthday calendar for address book returns 500
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 65/100
Rechercherichtung
Start with src/Services/BirthdayService.php around line 348, where createCalendarObject() is called, and trace how birthday entries from an address book are handled during the admin save. Reproduce with a card that has a BDAY property and compare with an empty address book; done when enabling the birthday calendar succeeds and includes the card's birthday without returning a 500.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Create a user with an address book containing at least one card (might need the BDAY property)
- Admin -> Address books -> Edit -> set "Include in birthday calendar" to Yes -> Save
- -> 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.
- Vorherrschende Sprache
- PHP
- Sterne
- 769
- Forks
- 45
- Ø Merge
- 2 T. 9 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus tchapi/davis
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
Run Doctrine migrations automatically on container startEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenfeature request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
-
feature request
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 58/100
-
native installationOffenfeature request
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
-
feature request
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
Ähnliche Issues
-
enhancement priority: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
magicsunday/webtrees-statistics#664 ·
Maintainer antworten meist innerhalb von 1 Tag
-
sync-en
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
sync-en
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Перевод устарел
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
Feature: Financial follow-up UI
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag