Trying to update to v25.11.1, artisan fails. #5499

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

Originally created by @virtadpt on GitHub (Nov 16, 2025).

Describe the Bug

I'm trying to update to v25.11.1 After installing dependencies, uploading everything to my hosting provider, and running ./artisan with any (or no) command line flags I get the following:

In DateFormatter.php line 10:

  BookStack\Util\DateFormatter::__construct(): Argument #1 ($displayTimezone)
   must be of type string, null given, called in /home/virtadpt/keerthana.drw
  ho.virtadpt.net/BookStack/app/App/Providers/ViewTweaksServiceProvider.php on line 17

As it stands now, my Bookstack install is INOP; I've restored from last night's backup and I'm trying to get it working again.

As a hail Mary after searching Github tickets for this error and not finding anything, I changed the value of APP_TIMEZONE=America/Los_Angeles to "UTC" (which did not work) and added the field APP_DISPLAY_TIMEZONE to my .env file (both with the same timezone as above and UTC). It did not help.

Steps to Reproduce

cd BookStack

git pull origin release

composer install --no-dev

Upload the new version of Bookstack to my hosting provider.

Change to the BookStack/ directory.

./artisan migrate

Get this output:

In DateFormatter.php line 10:

  BookStack\Util\DateFormatter::__construct(): Argument #1 ($displayTimezone)
   must be of type string, null given, called in /home/virtadpt/keerthana.drw
  ho.virtadpt.net/BookStack/app/App/Providers/ViewTweaksServiceProvider.php on line 17

Try running just this: ./artisan

Get this output:

In DateFormatter.php line 10:

  BookStack\Util\DateFormatter::__construct(): Argument #1 ($displayTimezone)
   must be of type string, null given, called in /home/virtadpt/keerthana.drw
  ho.virtadpt.net/BookStack/app/App/Providers/ViewTweaksServiceProvider.php on line 17

Expected Behaviour

I'm not sure what the expected output for this upgrade is supposed to be.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v25.11.1

Originally created by @virtadpt on GitHub (Nov 16, 2025). ### Describe the Bug I'm trying to update to v25.11.1 After installing dependencies, uploading everything to my hosting provider, and running `./artisan` with any (or no) command line flags I get the following: ``` In DateFormatter.php line 10: BookStack\Util\DateFormatter::__construct(): Argument #1 ($displayTimezone) must be of type string, null given, called in /home/virtadpt/keerthana.drw ho.virtadpt.net/BookStack/app/App/Providers/ViewTweaksServiceProvider.php on line 17 ``` As it stands now, my Bookstack install is INOP; I've restored from last night's backup and I'm trying to get it working again. As a hail Mary after searching Github tickets for this error and not finding anything, I changed the value of APP_TIMEZONE=America/Los_Angeles to "UTC" (which did not work) and added the field APP_DISPLAY_TIMEZONE to my .env file (both with the same timezone as above and UTC). It did not help. ### Steps to Reproduce `cd BookStack` `git pull origin release` `composer install --no-dev` Upload the new version of Bookstack to my hosting provider. Change to the BookStack/ directory. `./artisan migrate` Get this output: ``` In DateFormatter.php line 10: BookStack\Util\DateFormatter::__construct(): Argument #1 ($displayTimezone) must be of type string, null given, called in /home/virtadpt/keerthana.drw ho.virtadpt.net/BookStack/app/App/Providers/ViewTweaksServiceProvider.php on line 17 ``` Try running just this: `./artisan` Get this output: ``` In DateFormatter.php line 10: BookStack\Util\DateFormatter::__construct(): Argument #1 ($displayTimezone) must be of type string, null given, called in /home/virtadpt/keerthana.drw ho.virtadpt.net/BookStack/app/App/Providers/ViewTweaksServiceProvider.php on line 17 ``` ### Expected Behaviour I'm not sure what the expected output for this upgrade is supposed to be. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v25.11.1
OVERLORD added the 🐛 Bug label 2026-02-05 10:07:07 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 17, 2025):

Hi @virtadpt,

This error generally leads me to think there's an issue regarding configuration files in this environment, since it's not recognizing existence of the display timezone after the config is parsed.

  • Have you attempted any manual changes to the app/Config/ files at all?
  • Is there a config.php file (or file of similar name) in the bootstrap/cache directory of your install?
@ssddanbrown commented on GitHub (Nov 17, 2025): Hi @virtadpt, This error generally leads me to think there's an issue regarding configuration files in this environment, since it's not recognizing existence of the display timezone after the config is parsed. - Have you attempted any manual changes to the `app/Config/` files at all? - Is there a `config.php` file (or file of similar name) in the `bootstrap/cache` directory of your install?
Author
Owner

@virtadpt commented on GitHub (Nov 18, 2025):

I have not edited anything in app/Config/. I didn't want to go tinkering with running code before troubleshooting.

As for config.php, let me see... yes, there is a bootstrap/cache/config.php file.

@virtadpt commented on GitHub (Nov 18, 2025): I have not edited anything in `app/Config/`. I didn't want to go tinkering with running code before troubleshooting. As for `config.php`, let me see... yes, there is a `bootstrap/cache/config.php` file.
Author
Owner

@ssddanbrown commented on GitHub (Nov 18, 2025):

As for config.php, let me see... yes, there is a bootstrap/cache/config.php file.

Okay, delete that file and try the update steps again.
Are you running any kind of cache or optimize command as part of your update process (or have you ran such a command before)?

@ssddanbrown commented on GitHub (Nov 18, 2025): > As for config.php, let me see... yes, there is a bootstrap/cache/config.php file. Okay, delete that file and try the update steps again. Are you running any kind of cache or optimize command as part of your update process (or have you ran such a command before)?
Author
Owner

@virtadpt commented on GitHub (Nov 19, 2025):

I do (./artisan optimize, ./artisan cache:clear, ./artisan view:clear), but those weren't working, either, same error message.

I've deleted the file, re-synched, and I'm trying again... database migrations are done. ./artisan optimize worked. ./artisan cache:clear worked. ./artisan view:clear worked.

Yep, that did it. Thank you! I'm going to add this to my notes. Might make a good FAQ, also.

@virtadpt commented on GitHub (Nov 19, 2025): I do (`./artisan optimize`, `./artisan cache:clear`, `./artisan view:clear`), but those weren't working, either, same error message. I've deleted the file, re-synched, and I'm trying again... database migrations are done. `./artisan optimize` worked. `./artisan cache:clear` worked. `./artisan view:clear` worked. Yep, that did it. Thank you! I'm going to add this to my notes. Might make a good FAQ, also.
Author
Owner

@ssddanbrown commented on GitHub (Nov 19, 2025):

Good to hear!
Generally we don't document the optimize command anywhere since it can result in these kinds of issues, which are typically file permission issues/differences for the cached files it produces.

@ssddanbrown commented on GitHub (Nov 19, 2025): Good to hear! Generally we don't document the `optimize` command anywhere since it can result in these kinds of issues, which are typically file permission issues/differences for the cached files it produces.
Author
Owner

@virtadpt commented on GitHub (Nov 20, 2025):

That's a good point... hmm.

@virtadpt commented on GitHub (Nov 20, 2025): That's a good point... hmm.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5499