Site Style not being loaded #3501

Closed
opened 2026-02-05 06:54:49 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @Conker224 on GitHub (Feb 9, 2023).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

After multiple fresh installs using both the script for Ubuntu 20.04 and manually. Upon browsing to the site, All icons are large and there is no formatting to the rest of the site.

I have checked the .env file for the APP_URL it is correct.
I have checked for Web Socket issues, haven't found any.
Confirmed i am using the release branch.
Unable to check laravel.log as it doesn't exist, though the directory is writable.
When using Chrome's inspect view there are 404 warnings trying to load content for styles.css.map, print-styles.css.map and app.js.map.

Any help would be appreciated.

Exact BookStack Version

v23.01.1

Log Content

No response

PHP Version

7.4.3

Hosting Environment

Ubuntu 20.04.5 LTS VM
4GB Memory
Virtual CPUs: 4, 1 socket with 4 cores per socket.

Currently installed via 20.04 Ubuntu Installation Script.

Originally created by @Conker224 on GitHub (Feb 9, 2023). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario After multiple fresh installs using both the script for Ubuntu 20.04 and manually. Upon browsing to the site, All icons are large and there is no formatting to the rest of the site. I have checked the .env file for the APP_URL it is correct. I have checked for Web Socket issues, haven't found any. Confirmed i am using the release branch. Unable to check laravel.log as it doesn't exist, though the directory is writable. When using Chrome's inspect view there are 404 warnings trying to load content for styles.css.map, print-styles.css.map and app.js.map. Any help would be appreciated. ### Exact BookStack Version v23.01.1 ### Log Content _No response_ ### PHP Version 7.4.3 ### Hosting Environment Ubuntu 20.04.5 LTS VM 4GB Memory Virtual CPUs: 4, 1 socket with 4 cores per socket. Currently installed via 20.04 Ubuntu Installation Script.
OVERLORD added the 🐕 Support label 2026-02-05 06:54:49 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 9, 2023):

Hi @Conker224,

Any chance you can screenshot the browser console log? The console should be opened, then the browser window refreshed, then screenshotted.

@ssddanbrown commented on GitHub (Feb 9, 2023): Hi @Conker224, Any chance you can screenshot the browser console log? The console should be opened, then the browser window refreshed, then screenshotted.
Author
Owner

@Conker224 commented on GitHub (Feb 9, 2023):

Hello,
Hopefully below is what you are after.

image

@Conker224 commented on GitHub (Feb 9, 2023): Hello, Hopefully below is what you are after. ![image](https://user-images.githubusercontent.com/124874206/217813337-42a070cf-4d1d-4175-898a-f856979e1d5a.png)
Author
Owner

@ssddanbrown commented on GitHub (Feb 9, 2023):

@Conker224 Thanks, info in the screenshot looks fine.

By viewing your instance URL directly myself, I can see that your setup/hosting/webserver is attempting some kind of optimization/minification of the content served by BookStack, and it looks like this is messing up the CSS.
This may be done via a proxy/cache system if you have such a system sitting in front of BookStack.
Please turn that minification layer off, as it's often not that beneficial in reality as long as the webserver has gzip active.

@ssddanbrown commented on GitHub (Feb 9, 2023): @Conker224 Thanks, info in the screenshot looks fine. By viewing your instance URL directly myself, I can see that your setup/hosting/webserver is attempting some kind of optimization/minification of the content served by BookStack, and it looks like this is messing up the CSS. This may be done via a proxy/cache system if you have such a system sitting in front of BookStack. Please turn that minification layer off, as it's often not that beneficial in reality as long as the webserver has gzip active.
Author
Owner

@Conker224 commented on GitHub (Feb 9, 2023):

Hello,

Thank you, turns out that our firewall WAF rule had rewrite HTML turned on. Turning this off fixed our issue.

@Conker224 commented on GitHub (Feb 9, 2023): Hello, Thank you, turns out that our firewall WAF rule had rewrite HTML turned on. Turning this off fixed our issue.
Author
Owner

@ssddanbrown commented on GitHub (Feb 9, 2023):

👍 will therefore close this off.

@ssddanbrown commented on GitHub (Feb 9, 2023): :+1: will therefore 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#3501