Issue when updating Bookstack #4449

Closed
opened 2026-02-05 08:54:48 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @fiphi on GitHub (Feb 6, 2024).

Describe the Bug

Actual version : BookStack v23.06.2
Trying to update to the latest version:
=> git pull origin release
return this :
On branch release
Your branch is behind 'origin/release' by 304 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified: .env.example
modified: .env.example.complete
modified: .gitattributes
modified: .github/CODE_OF_CONDUCT.md
modified: .github/FUNDING.yml
modified: .github/ISSUE_TEMPLATE/api_request.yml
modified: .github/ISSUE_TEMPLATE/bug_report.yml
modified: .github/ISSUE_TEMPLATE/config.yml
modified: .github/ISSUE_TEMPLATE/feature_request.yml
etc...
Already checks done on other issue I have done this:
git config core.fileMode false
Then it returns :
On branch release
Your branch is behind 'origin/release' by 304 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified: resources/views/common/footer.blade.php

Untracked files:
(use "git add ..." to include in what will be committed)
bookstack-files-backup.tar.gz

no changes added to commit (use "git add" and/or "git commit -a")
I have tried : git restore resources/views/common/footer.blade.php
Then : git pull origin release
composer install --no-dev
php artisan migrate
Everything seems to be OK BUT when relaunching the app:
06-02-2024 08-26-05
So, I can NOT do the update ! Anyone has an idea what it is wrong here ?
Thx for feedback/info on this topic.

Steps to Reproduce

See above description

Expected Behaviour

See above description

Screenshots or Additional Context

See above

Browser Details

linux redhat 9.2

Exact BookStack Version

V23.06.2

Originally created by @fiphi on GitHub (Feb 6, 2024). ### Describe the Bug Actual version : [BookStack v23.06.2](https://github.com/BookStackApp/BookStack/releases) Trying to update to the latest version: => git pull origin release return this : On branch release Your branch is behind 'origin/release' by 304 commits, and can be fast-forwarded. (use "git pull" to update your local branch) Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: .env.example modified: .env.example.complete modified: .gitattributes modified: .github/CODE_OF_CONDUCT.md modified: .github/FUNDING.yml modified: .github/ISSUE_TEMPLATE/api_request.yml modified: .github/ISSUE_TEMPLATE/bug_report.yml modified: .github/ISSUE_TEMPLATE/config.yml modified: .github/ISSUE_TEMPLATE/feature_request.yml etc... Already checks done on other issue I have done this: git config core.fileMode false Then it returns : On branch release Your branch is behind 'origin/release' by 304 commits, and can be fast-forwarded. (use "git pull" to update your local branch) Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: resources/views/common/footer.blade.php Untracked files: (use "git add <file>..." to include in what will be committed) bookstack-files-backup.tar.gz no changes added to commit (use "git add" and/or "git commit -a") I have tried : git restore resources/views/common/footer.blade.php Then : git pull origin release composer install --no-dev php artisan migrate Everything seems to be OK BUT when relaunching the app: ![06-02-2024 08-26-05](https://github.com/BookStackApp/BookStack/assets/12034115/471a3a89-02cf-4941-b630-2394bbace4f0) So, I can NOT do the update ! Anyone has an idea what it is wrong here ? Thx for feedback/info on this topic. ### Steps to Reproduce See above description ### Expected Behaviour See above description ### Screenshots or Additional Context See above ### Browser Details linux redhat 9.2 ### Exact BookStack Version V23.06.2
OVERLORD added the 🐛 Bug label 2026-02-05 08:54:48 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 6, 2024):

Hi @fiphi,
Running from your BookStack install directory, can you share the output of running the following?:

php artisan tinker --execute="echo print_r(\BookStack\Settings\Setting::where('setting_key', 'app-footer-links')->first()->toArray());"
@ssddanbrown commented on GitHub (Feb 6, 2024): Hi @fiphi, Running from your BookStack install directory, can you share the output of running the following?: ```bash php artisan tinker --execute="echo print_r(\BookStack\Settings\Setting::where('setting_key', 'app-footer-links')->first()->toArray());" ```
Author
Owner

@fiphi commented on GitHub (Feb 6, 2024):

Thx for your update on this topic, but found the issue in a php file:
cat /var/www/BookStack/resources/views/common/footer.blade.php
@if(empty(setting('app-footer-links', [])) > 0) => replace of count() bye empty solve this issue..
Didi you have any clue about this ?

@fiphi commented on GitHub (Feb 6, 2024): Thx for your update on this topic, but found the issue in a php file: cat /var/www/BookStack/resources/views/common/footer.blade.php @if(empty(setting('app-footer-links', [])) > 0) => replace of count() bye empty solve this issue.. Didi you have any clue about this ?
Author
Owner

@ssddanbrown commented on GitHub (Feb 6, 2024):

Hi @fiphi,
I'm not convinced the issue is with the template itself, since I have not seen this issue elsewhere and since you had previous changes to the footer template, which indicates there may be something non-standard/common in your specific environment.

Your change above is working around the issue, but not reflecting the underlying issue/cause.
Please can you run the command from my last comment and share the output?

@ssddanbrown commented on GitHub (Feb 6, 2024): Hi @fiphi, I'm not convinced the issue is with the template itself, since I have not seen this issue elsewhere and since you had previous changes to the footer template, which indicates there may be something non-standard/common in your specific environment. Your change above is working around the issue, but not reflecting the underlying issue/cause. Please can you run the command from my last comment and share the output?
Author
Owner

@fiphi commented on GitHub (Feb 6, 2024):

Hi,

Here it is :
Array
(
[setting_key] => 0
[value] => []
[created_at] => 2021-09-17T08:36:20.000000Z
[updated_at] => 2021-09-17T08:36:20.000000Z
[type] => string
)
1

@fiphi commented on GitHub (Feb 6, 2024): Hi, Here it is : Array ( [setting_key] => 0 [value] => [] [created_at] => 2021-09-17T08:36:20.000000Z [updated_at] => 2021-09-17T08:36:20.000000Z [type] => string ) 1
Author
Owner

@ssddanbrown commented on GitHub (Feb 6, 2024):

@fiphi Okay, strange, not sure how it got to that type.
From your BookStack install directory, run the following:

php artisan tinker --execute="\BookStack\Settings\Setting::where('setting_key', 'app-footer-links')->update(['type' => 'array']);"

That should change the setting back to expected, then you can revert any custom changes to the view files to avoid update compatibility issues in future.

@ssddanbrown commented on GitHub (Feb 6, 2024): @fiphi Okay, strange, not sure how it got to that type. From your BookStack install directory, run the following: ```bash php artisan tinker --execute="\BookStack\Settings\Setting::where('setting_key', 'app-footer-links')->update(['type' => 'array']);" ``` That should change the setting back to expected, then you can revert any custom changes to the view files to avoid update compatibility issues in future.
Author
Owner

@ssddanbrown commented on GitHub (Apr 16, 2024):

Since there's been no further follow-up on this issue I'll close this off.

@ssddanbrown commented on GitHub (Apr 16, 2024): Since there's been no further follow-up on this issue I'll close this off.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4449