"Page not found", but does exist #5340

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

Originally created by @TomSpidge on GitHub (Jul 2, 2025).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I have a single page within a chapter that no-one can see. It claims 'page not found' for all users, including the page owner and admin users (with all rights). When the page is recreated from a copy elsewhere there is no problem.
There are no errors in the logs, turning on APP_DEBUG shows the same page.
When looking in the database, I can see the page in the pages table, alongside the replacement. Both are in the same book and chapter and the only differences are dates, priority, revision count and created by entries.
There are no entries in entity_permissions for either page, so presumably both should inherit the chapter permissions, and yet one works and the other is 'page not found'

Exact BookStack Version

25.05.1

Log Content


Hosting Environment

Ubuntu 24.04.2 LTS
Apache/2.4.58
PHP 8.3.6
MySQL 8.0.42-0ubuntu0.24.04.1

Originally created by @TomSpidge on GitHub (Jul 2, 2025). ### Attempted Debugging - [x] I have read the debugging page ### Searched GitHub Issues - [x] I have searched GitHub for the issue. ### Describe the Scenario I have a single page within a chapter that no-one can see. It claims 'page not found' for all users, including the page owner and admin users (with all rights). When the page is recreated from a copy elsewhere there is no problem. There are no errors in the logs, turning on APP_DEBUG shows the same page. When looking in the database, I can see the page in the `pages` table, alongside the replacement. Both are in the same book and chapter and the only differences are dates, priority, revision count and created by entries. There are no entries in `entity_permissions` for either page, so presumably both should inherit the chapter permissions, and yet one works and the other is 'page not found' ### Exact BookStack Version 25.05.1 ### Log Content ```text ``` ### Hosting Environment Ubuntu 24.04.2 LTS Apache/2.4.58 PHP 8.3.6 MySQL 8.0.42-0ubuntu0.24.04.1
OVERLORD added the 🐕 Support label 2026-02-05 09:58:53 +03:00
Author
Owner

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

Hi @TomSpidge,
If you run the Regenerate Access Permissions command, does this page then show up again? (at least when viewing as a member of the original Admins user role).

@ssddanbrown commented on GitHub (Jul 2, 2025): Hi @TomSpidge, If you run the [Regenerate Access Permissions](https://www.bookstackapp.com/docs/admin/commands/#regenerate-access-permissions) command, does this page then show up again? (at least when viewing as a member of the original Admins user role).
Author
Owner

@TomSpidge commented on GitHub (Jul 3, 2025):

That seemed to fix it. Nothing had been done behind the scenes though - it was only edited through the main pages or API so I'm not sure what caused it.
Thanks for the help (and for bookstack itself!)

@TomSpidge commented on GitHub (Jul 3, 2025): That seemed to fix it. Nothing had been done behind the scenes though - it was only edited through the main pages or API so I'm not sure what caused it. Thanks for the help (and for bookstack itself!)
Author
Owner

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

Happy to help.
This may be related to #4838, which I've been working on via #5689 to be part of the next feature release.

@ssddanbrown commented on GitHub (Jul 3, 2025): Happy to help. This may be related to #4838, which I've been working on via #5689 to be part of the next feature release.
Author
Owner

@TomSpidge commented on GitHub (Jul 3, 2025):

That sounds about right - we have a script that runs through and updates permissions on pages and will generally run a few one after the other, so could trigger it if the timing is right. I've increased the interval between API calls so hopefully shouldn't happen again before you fix it.
I know what to do now if it does, at least

@TomSpidge commented on GitHub (Jul 3, 2025): That sounds about right - we have a script that runs through and updates permissions on pages and will generally run a few one after the other, so could trigger it if the timing is right. I've increased the interval between API calls so hopefully shouldn't happen again before you fix it. I know what to do now if it does, at least
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5340