FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: BookStack\Auth\User::getDefault(): Return value must be of type #3623

Closed
opened 2026-02-05 07:08:10 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ArtemDolor on GitHub (Mar 16, 2023).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I deleted a guest user in the database and everything crashed, in the logs

Exact BookStack Version

v23.02

Log Content

FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: BookStack\Auth\User::getDefault(): Return value must be of type BookStack\Auth\User, null returned in /bookstack/app/Auth/User.php:106

PHP Version

8.2

Hosting Environment

Debian 11, Nginx and MariaDB

Originally created by @ArtemDolor on GitHub (Mar 16, 2023). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I deleted a guest user in the database and everything crashed, in the logs ### Exact BookStack Version v23.02 ### Log Content FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: BookStack\Auth\User::getDefault(): Return value must be of type BookStack\Auth\User, null returned in /bookstack/app/Auth/User.php:106 ### PHP Version 8.2 ### Hosting Environment Debian 11, Nginx and MariaDB
OVERLORD added the 🐕 Support label 2026-02-05 07:08:10 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3623