Unable to edit the page content #3956

Closed
opened 2026-02-05 07:57:15 +03:00 by OVERLORD · 13 comments
Owner

Originally created by @namannj46 on GitHub (Aug 8, 2023).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hi, there is no content page is showing when i visit on page edit section.
Not able to edit or add new content on the pages
image

Exact BookStack Version

v23.05.2

Log Content

No response

PHP Version

No response

Hosting Environment

ubuntu 22.04

Originally created by @namannj46 on GitHub (Aug 8, 2023). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario Hi, there is no content page is showing when i visit on page edit section. Not able to edit or add new content on the pages [ <img width="950" alt="image" src="https://github.com/BookStackApp/BookStack/assets/140008506/d2010bff-6780-4eaa-ba17-6f143bb5f48b"> ](url) ### Exact BookStack Version v23.05.2 ### Log Content _No response_ ### PHP Version _No response_ ### Hosting Environment ubuntu 22.04
OVERLORD added the 🐕 Support label 2026-02-05 07:57:15 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Aug 8, 2023):

Hi @namannj46,
Please can you describe your scenario a bit more:

  • Is this a new fresh instance?
  • Or is this a new issue on an existing instance that worked before?
  • How did you install BookStack?
  • Do you have any customizations set or any hacks applied?
@ssddanbrown commented on GitHub (Aug 8, 2023): Hi @namannj46, Please can you describe your scenario a bit more: - Is this a new fresh instance? - Or is this a new issue on an existing instance that worked before? - How did you install BookStack? - Do you have any customizations set or any hacks applied?
Author
Owner

@namannj46 commented on GitHub (Aug 9, 2023):

Yeah sure,

I have installed bookstack application BookStack v23.05.2 on my ec2 ubuntu(22.04) instance.
with this following doc
(https://www.bookstackapp.com/docs/admin/installation/#ubuntu-2204)

In starting we are able to edit and change the content in pages. but now the title content page is not showing any content when we are trying to edit or add.
Or is this a new issue on an existing instance that worked before?
it is new issue

Do you have any customizations set or any hacks applied?

yes we enable google auth in it.

Please help here

@namannj46 commented on GitHub (Aug 9, 2023): Yeah sure, I have installed bookstack application [BookStack v23.05.2](https://github.com/BookStackApp/BookStack/releases) on my ec2 ubuntu(22.04) instance. with this following doc (https://www.bookstackapp.com/docs/admin/installation/#ubuntu-2204) In starting we are able to edit and change the content in pages. but now the title content page is not showing any content when we are trying to edit or add. **_Or is this a new issue on an existing instance that worked before?_** it is new issue ### **Do you have any customizations set or any hacks applied?** yes we enable google auth in it. Please help here
Author
Owner

@yogikortisa commented on GitHub (Aug 18, 2023):

I have the same problem with my instances, is there any solutions for this? the content of page always blank/empty whenever create new page or edit existing page.

  • Is this a new fresh instance?
    yes BookStack v23.06.2 docker version on ubuntu server 22.04 instance

  • Or is this a new issue on an existing instance that worked before?
    yes, it's last worked 6 days ago in my instance based on the history

  • How did you install BookStack?
    docker install
    https://github.com/linuxserver/docker-bookstack#usage

  • Do you have any customizations set or any hacks applied?
    the database is using external db connection

@yogikortisa commented on GitHub (Aug 18, 2023): I have the same problem with my instances, is there any solutions for this? the content of page always blank/empty whenever create new page or edit existing page. - Is this a new fresh instance? yes [BookStack v23.06.2](https://github.com/BookStackApp/BookStack/releases) docker version on ubuntu server 22.04 instance - Or is this a new issue on an existing instance that worked before? yes, it's last worked 6 days ago in my instance based on the history - How did you install BookStack? [docker install](https://www.bookstackapp.com/docs/admin/installation/#docker) https://github.com/linuxserver/docker-bookstack#usage - Do you have any customizations set or any hacks applied? the database is using external db connection
Author
Owner

@namannj46 commented on GitHub (Aug 18, 2023):

Hi Yogi,

I managed to resolve my issue using CSP. Could you kindly verify whether a Content Security Policy is enabled for Bookstack? I suspect that CSP might be causing the current problem I'm facing.

One more thing please inspect on the page where you are getting error, check the error it is showing

@namannj46 commented on GitHub (Aug 18, 2023): Hi Yogi, I managed to resolve my issue using CSP. Could you kindly verify whether a Content Security Policy is enabled for Bookstack? I suspect that CSP might be causing the current problem I'm facing. One more thing please inspect on the page where you are getting error, check the error it is showing
Author
Owner

@yogikortisa commented on GitHub (Aug 21, 2023):

Hello @namannj46 I think my problem is the same as the CSP error, the error from console log is:
Refused to set the document's base URI to '' because it violates the following Content Security Policy directive: "base-uri 'self'".
Can you tell me how exactly step you take to solve the problem? thank you anyway for your info..

@yogikortisa commented on GitHub (Aug 21, 2023): Hello @namannj46 I think my problem is the same as the CSP error, the error from console log is: `Refused to set the document's base URI to '' because it violates the following Content Security Policy directive: "base-uri 'self'".` Can you tell me how exactly step you take to solve the problem? thank you anyway for your info..
Author
Owner

@namannj46 commented on GitHub (Aug 21, 2023):

Please add these line in bookstack.conf file inside the site-enabled folder of apache2

Header add Content-Security-Policy " default-src 'self' ; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; font-src 'self'; connect-src 'self'; object-src 'none'; media-src 'self';

@namannj46 commented on GitHub (Aug 21, 2023): Please add these line in bookstack.conf file inside the site-enabled folder of apache2 Header add Content-Security-Policy " default-src 'self' ; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; font-src 'self'; connect-src 'self'; object-src 'none'; media-src 'self';
Author
Owner

@yogikortisa commented on GitHub (Aug 21, 2023):

I use docker version from: https://github.com/linuxserver/docker-bookstack that use nginx and when I add these line with change Header add to add_header (nginx syntax) the problem still persist. I checked on https://demo.bookstackapp.com/ the console log is the same but the problem with not send posting content is not there. I doubt is CSP caused this problem or not. I want try to disable CSP setting but I have checked all place on the container but not found any CSP settings there..

@yogikortisa commented on GitHub (Aug 21, 2023): I use docker version from: https://github.com/linuxserver/docker-bookstack that use nginx and when I add these line with change Header add to add_header (nginx syntax) the problem still persist. I checked on https://demo.bookstackapp.com/ the console log is the same but the problem with not send posting content is not there. I doubt is CSP caused this problem or not. I want try to disable CSP setting but I have checked all place on the container but not found any CSP settings there..
Author
Owner

@ssddanbrown commented on GitHub (Aug 21, 2023):

@yogikortisa

  • Have you properly set a APP_URL parameter for the container to match the URL that BookStack is being used on?
  • Do you see any other (red) errors in the browser development console log after reloading the edit page in the non-working state?

@namannj46 Just a warning, Those CSP lines will remove a lot of the security controls BookStack adds via CSP.

@ssddanbrown commented on GitHub (Aug 21, 2023): @yogikortisa - Have you properly set a `APP_URL` parameter for the container to match the URL that BookStack is being used on? - Do you see any other (red) errors in the browser development console log after reloading the edit page in the non-working state? @namannj46 Just a warning, Those CSP lines will remove a lot of the security controls BookStack adds via CSP.
Author
Owner

@yogikortisa commented on GitHub (Aug 21, 2023):

@yogikortisa

  • Have you properly set a APP_URL parameter for the container to match the URL that BookStack is being used on?
  • Do you see any other (red) errors in the browser development console log after reloading the edit page in the non-working state?

@namannj46 Just a warning, Those CSP lines will remove a lot of the security controls BookStack adds via CSP.

Oh yes my bad. I figured out the problem is on APP_URL, I set http instead https, thank you @ssddanbrown

@yogikortisa commented on GitHub (Aug 21, 2023): > @yogikortisa > > * Have you properly set a `APP_URL` parameter for the container to match the URL that BookStack is being used on? > * Do you see any other (red) errors in the browser development console log after reloading the edit page in the non-working state? > > @namannj46 Just a warning, Those CSP lines will remove a lot of the security controls BookStack adds via CSP. Oh yes my bad. I figured out the problem is on APP_URL, I set http instead https, thank you @ssddanbrown
Author
Owner

@ssddanbrown commented on GitHub (Aug 21, 2023):

@yogikortisa Good to hear that worked.

Since both of you have mentioned this being resolved in some way, I'll go ahead and close this off.

@ssddanbrown commented on GitHub (Aug 21, 2023): @yogikortisa Good to hear that worked. Since both of you have mentioned this being resolved in some way, I'll go ahead and close this off.
Author
Owner

@yogikortisa commented on GitHub (Aug 23, 2023):

Hello @ssddanbrown recently my problem is back again, I checked all the settings including APP_URL but the behaviour is the same, the problem is I can not view the content of a page whenever when on the add form / edit form of a page. But when I used Burp Suite's internal browser (chromium) when opened Burp Suite and access my BookStack instance, there is no problem! I checked the request & response is the same between normal browser and Burp's browser. Any clue?? I really confused about this weird behavior.. @ssddanbrown @namannj46

@yogikortisa commented on GitHub (Aug 23, 2023): Hello @ssddanbrown recently my problem is back again, I checked all the settings including APP_URL but the behaviour is the same, the problem is I can not view the content of a page whenever when on the add form / edit form of a page. But when I used Burp Suite's internal browser (chromium) when opened Burp Suite and access my BookStack instance, there is no problem! I checked the request & response is the same between normal browser and Burp's browser. Any clue?? I really confused about this weird behavior.. @ssddanbrown @namannj46
Author
Owner

@ssddanbrown commented on GitHub (Aug 23, 2023):

@yogikortisa Do you see any other (red) errors in the browser development console log after reloading the edit page in the non-working state?

@ssddanbrown commented on GitHub (Aug 23, 2023): @yogikortisa Do you see any other (red) errors in the browser development console log after reloading the edit page in the non-working state?
Author
Owner

@yogikortisa commented on GitHub (Aug 24, 2023):

@ssddanbrown I just discovered what caused this problem, I think it's the conf on my load balancer changes in my case, I revoke the change and after that clear cache on the browser, the problem is gone. Thank you.

@yogikortisa commented on GitHub (Aug 24, 2023): @ssddanbrown I just discovered what caused this problem, I think it's the conf on my load balancer changes in my case, I revoke the change and after that clear cache on the browser, the problem is gone. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3956