error 404 trying to delete a page #4964

Closed
opened 2026-02-05 09:29:54 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @chrisoros on GitHub (Sep 26, 2024).

Describe the Bug

Hi - I added a page to a book, then when I tried to save the page, I received a 404 error. Now on the book's table of contents page the bad page shows as an entry, but trying access the page throws a 404. there isn't a way I can find to just delete the page from the Book's table of contents. How can I delete the page without requiring me to enter the page, since I cannot access the page as it throws a 404 error.
thank you!

Steps to Reproduce

  1. go to book's table of contents, there is no way to delete a page from this screen.

Expected Behaviour

be able to delete a page without having to be inside the page.

Screenshots or Additional Context

No response

Browser Details

Chrome, FF, Vivaldi

Exact BookStack Version

23.05.1

Originally created by @chrisoros on GitHub (Sep 26, 2024). ### Describe the Bug Hi - I added a page to a book, then when I tried to save the page, I received a 404 error. Now on the book's table of contents page the bad page shows as an entry, but trying access the page throws a 404. there isn't a way I can find to just delete the page from the Book's table of contents. How can I delete the page without requiring me to enter the page, since I cannot access the page as it throws a 404 error. thank you! ### Steps to Reproduce 1. go to book's table of contents, there is no way to delete a page from this screen. ### Expected Behaviour be able to delete a page without having to be inside the page. ### Screenshots or Additional Context _No response_ ### Browser Details Chrome, FF, Vivaldi ### Exact BookStack Version 23.05.1
OVERLORD added the 🐛 Bug label 2026-02-05 09:29:54 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Sep 26, 2024):

Hi @chrisoros,
Potentially this is caught in a permission issue.

  • Does the creation show in the app audit log (Settings > Audit Log).
  • Does the page show as a draft (purple by default) or a published page (blue by default)?
  • Is this book accessible when logged in through an account that has the original admin role assigned? (This should always have access).
  • Can you try the "Regenerate Access Permissions" command and see if you're able to access afterwards?
  • Can you try updating your instance to the latest release, to see if you're running into an issue that has since been resolved? (Be sure to backup your instance/host before updating!)
@ssddanbrown commented on GitHub (Sep 26, 2024): Hi @chrisoros, Potentially this is caught in a permission issue. - Does the creation show in the app audit log (Settings > Audit Log). - Does the page show as a draft (purple by default) or a published page (blue by default)? - Is this book accessible when logged in through an account that has the original admin role assigned? (This should always have access). - Can you try the ["Regenerate Access Permissions" command](https://www.bookstackapp.com/docs/admin/commands/#regenerate-access-permissions) and see if you're able to access afterwards? - Can you try updating your instance to the latest release, to see if you're running into an issue that has since been resolved? (Be sure to backup your instance/host before updating!)
Author
Owner

@chrisoros commented on GitHub (Sep 27, 2024):

hi @ssddanbrown - thanks for your suggestions!
yes, the page shows in the app audit logs
yes, it shows published , e.g, blue.
the book is accessible from admin, but that one page is not. other pages in the same book are accessible.
tried regenerate access permissions and the same '404 - File or directory not found', but only for that one page.

I have not done an update, but I have daily backups of the files and the db. I'd like to delete the page without having to do a full upgrade. That page doesn't have any content, it is just a page the book thinks it has. I'd really just like to delete that page so it doesn't show up in the book's table of contents. all the other pages in that same book are fine. I'm surprised there seems to be no way to delete a page from a book without having to be inside of that page's hyperlink.

@chrisoros commented on GitHub (Sep 27, 2024): hi @ssddanbrown - thanks for your suggestions! yes, the page shows in the app audit logs yes, it shows published , e.g, blue. the book is accessible from admin, but that one page is not. other pages in the same book are accessible. tried regenerate access permissions and the same '404 - File or directory not found', but only for that one page. I have not done an update, but I have daily backups of the files and the db. I'd like to delete the page without having to do a full upgrade. That page doesn't have any content, it is just a page the book thinks it has. I'd really just like to delete that page so it doesn't show up in the book's table of contents. all the other pages in that same book are fine. I'm surprised there seems to be no way to delete a page from a book without having to be inside of that page's hyperlink.
Author
Owner

@ssddanbrown commented on GitHub (Oct 14, 2024):

Can you share a view of the exact error screen you see?

Just wonder if it's actually something else hijacking/handling the request.

@ssddanbrown commented on GitHub (Oct 14, 2024): Can you share a view of the exact error screen you see? Just wonder if it's actually something else hijacking/handling the request.
Author
Owner

@ssddanbrown commented on GitHub (Nov 28, 2024):

Since there's been no further follow-up I'll go ahead and close this off.

@ssddanbrown commented on GitHub (Nov 28, 2024): Since there's been no further follow-up I'll go ahead and 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#4964