snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.96k stars 3.16k forks source link

CSS/JS missing from webpage #15608

Open dawidwi2004 opened 1 week ago

dawidwi2004 commented 1 week ago

Debug mode

Describe the bug

CSS/JSS missing from webpage and DevTools > Sources

Reproduction steps

Navigate to Snipe IT in browser (I've tried both IE and Google Chrome)

Expected behavior

Webpage with same UI as Snipe IT demo

Screenshots

image image image

Snipe-IT Version

7.0.13

Operating System

Windows

Web Server

IIS

PHP Version

8.3.11

Error messages

Debug message: "LOG.debug: SAML page requested, but samlData seems empty."
Error console message: "Error with Feature-Policy header: Unrecognized feature: 'document-domain'."
Error is not reproducible on demo.
No info in storage/logs

"php -m" output:

[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
gd
hash
iconv
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
Phar
random
readline
Reflection
session
SimpleXML
sodium
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]

Additional context

Is this a fresh install or an upgrade?

Fresh install

What OS and web server you're running Snipe-IT on

Windows server 2019, IIS

What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)

Manual installation

Include what you've done so far in the installation, and if you got any error messages along the way.

Followed this guide. Error with composer install which was solved with enabling zip-extension in PHP.

Indicate whether or not you've manually edited any data directly in the database

No

welcome[bot] commented 1 week ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 1 week ago

The demo runs the same code as is on master, so the code isn't missing. Also it's in the repo:

This is usually a configuration issue related to your APP_URL, but without more detail, I'm not sure what's going on with your installation. What are the errors in your browser console?

GitHub
snipe-it/public/css/dist/all.css at master · snipe/snipe-it
A free open source IT asset/license management system - snipe/snipe-it
GitHub
snipe-it/public/js/dist/all.js at master · snipe/snipe-it
A free open source IT asset/license management system - snipe/snipe-it
dawidwi2004 commented 1 week ago

I apologize for the confusion, by refrencing the demo i only meant the css/js styling of the webpage.

I did read on the Common Issues page that the APP_URL could be the cause of the issue, although the APP_URL is the same as the DNS entry used to navigate to the page.

The all.js and all.css are also present in wwwroot/snipeit, but it seems like the page can't read the content of the CSS and JS files.

There are no errors present in the browser console, only this warning: "Error with Feature-Policy header: Unrecognized feature: 'document-domain'.

Is there more detail you could need?