-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stylesheet not being loaded #387
Comments
Duplicate #370 |
This is for Version 2.0.1 and Nextcloud 12, so I guess this isn't quite a duplicate of #370. |
Have you tried clearing your cache? |
Yes, I have. I also tried different machines. Please also see https://help.nextcloud.com/t/contacts-not-showing-up-correctly-after-2-0-1-update/21951 as I don't seem to be the only one. |
Damn, that's strange. Nothing in the source code? |
I'm getting the error I am running Nextcloud with a Docker configuration. I'm on version 12.0.3 with 2.0.1 of contacts. |
Maybe the scss wasn't compiled?
|
It should be compiled automatically by the server and stored into /data/appdata_xxxxxx/css/contacts |
|
@dmp1ce can you check the gzip file? Is the stylesheet in it?
|
Yes, it looks like it:
|
@irgendwie from server? |
'from server'? |
I think it's coming from the server. :) |
I can see a request, that has got the same file hash but very different content: File in /data/appdata_xxxx/css/contacts are:
But with very different content. |
@shieldwed On your source, on the contacts app, can you paste here those lines?
|
@skjnldsv How can I load these lines into the contacts app? I just noticed the following error message in the web console every time I load the contacts app (although I am not certain this is related):
${NONCE} is dynamic though and changes with every reload of the app. content-security-policy:
default-src 'none';base-uri 'none';manifest-src 'self';script-src 'nonce-${NONCE}' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self';frame-src https://${COLLABORA_DOMAIN}
|
@skjnldsv I was just able to insert the following line into the contacts page: <link rel="stylesheet" href="/css/contacts/6874280a60229306c19164c8509ff5a1-style.css?v=2583d054ec168dd15455e32d4141db0a-7"> I had to take the serial numbers and version (v=) field from the other style sheets, but after successfully injecting it into my browser, the page looked actually as it is supposed to. So, I guess the style sheet is generated correctly on the server but not loaded from the contacts main page. |
Do you have anything in your nextcloud log? I find it strange that the scss server fails without warning :) |
2 similar comments
Do you have anything in your nextcloud log? I find it strange that the scss server fails without warning :) |
Do you have anything in your nextcloud log? I find it strange that the scss server fails without warning :) |
@skjnldsv just found this: {"reqId":"6Q5mFZKOvYMFqPqGG4Qh","level":3,"time":"2017-10-07 15:06:37","remoteAddr":"${IP}","user":"${USER}","app":"lib","method":"GET","url":"\/apps\/contacts\/","message":"ResourceLocator can not find a web root (root: \/apps2\/contacts, file: css\/contacts\/6874280a60229306c19164c8509ff5a1-style.css, webRoot: , throw: true)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:56.0) Gecko\/20100101 Firefox\/56.0","version":"12.0.3.3"} |
Perfect!! It's the problem!! :) I think it's been fixed on master but not sure about stable12! |
You are right, it behaves like nextcloud/server#5289 |
Tried on stable12, on master, it's working fine! |
still have the same question on 12.0.3 |
It has been fixed in server. You need to wait for the next release. |
Steps to reproduce
Expected behaviour
The app should be correctly loaded with all style sheets and look awsome
Actual behaviour
The app looks awful and can't really be used properly. Example:
General server configuration
Operating system: Linux edb3a8f52dbd 4.10.0-35-generic #39-Ubuntu SMP Wed Sep 13 07:46:59 UTC 2017 x86_64
Web server: nginx/1.13.4 (fpm-fcgi)
Database: mysql 10.2.8
PHP version: 7.1.9
PHP-modules loaded
Nextcloud configuration
Nextcloud version: 12.0.3 - 12.0.3.3
Updated from an older Nextcloud/ownCloud or fresh install: Updated from older Nextcloud versions (docker containers)
Where did you install Nextcloud from: Docker image wonderfall/nextcloud
Are you using external storage, if yes which one: files_external is disabled
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Signing status
Enabled apps
Disabled apps
Content of config/config.php
Client configuration
Browser: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0
Operating system: Arch Linux
Logs
The text was updated successfully, but these errors were encountered: