removal of pages removes parent shelf #5374

Open
opened 2026-02-05 10:00:49 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @pvdamsab on GitHub (Jul 25, 2025).

Describe the Bug

Removal of a page in bookstack causes the parent shelf to disappear ; no books or pages are lost, but the shelf needs to be recreated & the existing books reattached to the [recreated] shelf

Steps to Reproduce

1 create a shelf
2 create a book attached to the shelf
3 remove the page
4 shelf has disappeared, but underlying books/pages remain

Expected Behaviour

The expected behaviour seems to me: the page removed, but no parents (books, shelves) should be impacted

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v25.02.2

Originally created by @pvdamsab on GitHub (Jul 25, 2025). ### Describe the Bug Removal of a page in bookstack causes the parent shelf to disappear ; no books or pages are lost, but the shelf needs to be recreated & the existing books reattached to the [recreated] shelf ### Steps to Reproduce 1 create a shelf 2 create a book attached to the shelf 3 remove the page 4 shelf has disappeared, but underlying books/pages remain ### Expected Behaviour The expected behaviour seems to me: the page removed, but no parents (books, shelves) should be impacted ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v25.02.2
OVERLORD added the 🐛 Bug label 2026-02-05 10:00:49 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 25, 2025):

Hi @pvdamsab,
Is this consistently reproducible?

Actions to pages should not have any connection/relation/attachment/action to shelves at all so this sounds quite odd.

@ssddanbrown commented on GitHub (Jul 25, 2025): Hi @pvdamsab, Is this consistently reproducible? Actions to pages should not have any connection/relation/attachment/action to shelves at all so this sounds quite odd.
Author
Owner

@pvdamsab commented on GitHub (Aug 1, 2025):

Hi Dan,
unfortunately, it is recurring. We've had the misfortune of having 3 occassions by now. And yesterday I had a look at the MariaDB and saw only what I saw in the web-interface. Two books were left, all shelves but one were gone. And a lot of work lost.
So, whenever we delete a page, it seems to hit all the parent books & shelves.

@pvdamsab commented on GitHub (Aug 1, 2025): Hi Dan, unfortunately, it is recurring. We've had the misfortune of having 3 occassions by now. And yesterday I had a look at the MariaDB and saw only what I saw in the web-interface. Two books were left, all shelves but one were gone. And a lot of work lost. So, whenever we delete a page, it seems to hit all the parent books & shelves.
Author
Owner

@ssddanbrown commented on GitHub (Aug 1, 2025):

@pvdamsab

  • Is there any indication of such deletions in the audit log?
  • Do you have any active customizations?
    • Any files/folders in the app themes directory?
  • So there's only two rows left in the books table?
  • How was this instance installed?
@ssddanbrown commented on GitHub (Aug 1, 2025): @pvdamsab - Is there any indication of such deletions in the audit log? - Do you have any active customizations? - Any files/folders in the app `themes` directory? - So there's only two rows left in the `books` table? - How was this instance installed?
Author
Owner

@pvdamsab commented on GitHub (Aug 12, 2025):

Is there any indication of such deletions in the audit log?
Not at the moment, but running into this issue, the first priority is to get the app back up & running a.s.a.p.
So far, only a full virtual machine restore did that ; when it occurs again, I will have a look at 'laravel.log' first

Do you have any active customizations?
No customizations were done, but we did import a lot of old data from the Open Atrium application, via the API

Any files/folders in the app themes directory?
The folder ~/bookstack/themes is completely empty, except for one file ".gitignore"

So there's only two rows left in the books table?
The last but one occurrence, that was the case ; reflecting what we saw in the web interface

How was this instance installed?
Following the 'manual installation' on https://www.bookstackapp.com/docs/admin/installation/

Dan, once again, thanks for the reply.
I might be interesting to know what the correct permissions are on the database level.
Maybe I could have a look at the present settings, tweak these if necessary & try to avoid another loss of info

@pvdamsab commented on GitHub (Aug 12, 2025): _Is there any indication of such deletions in the audit log?_ Not at the moment, but running into this issue, the first priority is to get the app back up & running a.s.a.p. So far, only a full virtual machine restore did that ; when it occurs again, I will have a look at 'laravel.log' first _Do you have any active customizations?_ No customizations were done, but we did import a lot of old data from the Open Atrium application, via the API _Any files/folders in the app themes directory?_ The folder ~/bookstack/themes is completely empty, except for one file ".gitignore" _So there's only two rows left in the books table?_ The last but one occurrence, that was the case ; reflecting what we saw in the web interface _How was this instance installed?_ Following the 'manual installation' on https://www.bookstackapp.com/docs/admin/installation/ Dan, once again, thanks for the reply. I might be interesting to know what the correct permissions are on the database level. Maybe I could have a look at the present settings, tweak these if necessary & try to avoid another loss of info
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5374