core icon indicating copy to clipboard operation
core copied to clipboard

/remote.php/core.css outputs gibberish

Open blizzz opened this issue 14 years ago • 38 comments

(Was http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-2039 )

It seems to happen, when the server has (zlib?) compression activated. Thus, the data will be compressed twice before sending, but – of course – only decompressed once by the browser.

To fix: detect if server side compression is activated. If so, do not compress.

blizzz avatar Nov 01 '12 11:11 blizzz

Compression is turned off. (Verified with: http://www.whatsmyip.org/http-compression-test/)

gzip off; (in nginx.conf) zlib.output_compression = Off (in php.ini)

But still you get a screen like this:


ownCloud Abmelden

Dateien
Musik
Kalender
Kontakte
Bilder

Einstellungen Einstellungen 

Neu

Alles leer. Lade etwas hoch!

where you have icons over and under with the text.

hboecher avatar Nov 02 '12 13:11 hboecher

Please delete the cache (without xcache or apc the files should usually be somewhere in /tmp/ afaik)

blizzz avatar Nov 02 '12 13:11 blizzz

Did the same like @hboecher, deleted the caches, restarted nginx and php-fpm and still no go.

tvaril avatar Nov 05 '12 10:11 tvaril

Remove all the empty lines in remote.php : 13,15,20,22

from http://forum.owncloud.org/viewtopic.php?p=11441#p11441

nozof avatar Nov 05 '12 23:11 nozof

@nozof tried that deleted all cachech, restarted PHP5-FPM a Nginx and still no go...

tvaril avatar Nov 06 '12 08:11 tvaril

After adding a new line in config/config.php to enable DEBUG mode [DEFINE("DEBUG", true);]

Everything works fine except the upload button looks a little wired under Chrome: http://puu.sh/1n49L

I don't think that using owncloud with DEBUG mode on is a good idea, but I think this may help you to resolve the bug.

DEBUG on = fine. DEBUG off = mess.

@LukasReschke

RadarNyan avatar Nov 06 '12 11:11 RadarNyan

not much unfortunately, because in DEBUG mode, css and js are not being requested via remote.php.

blizzz avatar Nov 06 '12 12:11 blizzz

Debug mode on helped, now it is working :-)

tvaril avatar Nov 06 '12 12:11 tvaril

That is exactly the solution. ./owncloud/config/config.php looks like:

hboecher avatar Nov 06 '12 13:11 hboecher

well, temporary workaround, not a solution

blizzz avatar Nov 06 '12 14:11 blizzz

So, enable debugging just fixed the web version, but any other services remote.php/carddav remote.php/webdav are giving away now such file or directory errors.

tvaril avatar Nov 06 '12 16:11 tvaril

@myazaki It's probably related to Nginx configuration in your case. Do you have try_files directive like it is specified here http://owncloud.org/support/webserver-notes/ ?

VicDeo avatar Nov 06 '12 21:11 VicDeo

I am having the exact same problem, however I'm running owncloud on Apache (php 5.3). Removing spaces doesn't help, zlib compression is off. Debug mode helps temporarly however I cannot establish a Sync (Mac OS X Client).

Clindbergh avatar Nov 07 '12 11:11 Clindbergh

@Clindbergh Is mod_rewrite enabled in Apache? Do you have owncloud insalled in the domain root or in subdirectory? What is the server response if you browse to http://oC/remote.php/webdav/ in Firefox?

VicDeo avatar Nov 07 '12 18:11 VicDeo

I was using nginx with the configuration provided by owncloud. Now I have switched to Apache and it is working somehow. There is only one minor problem, I cant login through webdav it just do not accept the credentials and keeps asking again. I think it is related to the FastCGI a lot of people reported this as well.

    1. 2012 v 20:27, blizzz [email protected]:

@myazaki which webserver do you use?

— Reply to this email directly or view it on GitHub.

tvaril avatar Nov 08 '12 07:11 tvaril

I cant login through webdav it just do not accept the credentials and keeps asking again.

Does your password contains special characters like äöü?

LukasReschke avatar Nov 08 '12 07:11 LukasReschke

no it contains just lowercase letters and numbers

    1. 2012 v 8:41, Lukas Reschke [email protected]:

I cant login through webdav it just do not accept the credentials and keeps asking again.

Does your password contains special characters like äöü?

— Reply to this email directly or view it on GitHub.

tvaril avatar Nov 08 '12 08:11 tvaril

I suppose @myazaki's issue is a different one than files here (broken css output), more a server config with nginx, now something else with apache.

blizzz avatar Nov 08 '12 12:11 blizzz

I have the same problem running owncloud 4.5 on a Ubuntu Server with Apache 2 and PHP5. When i activate debug, the webinterface is running , but when I turn it off, there´s a terrible mess on the page. When I surf to http://www.polarisfamily.com/polcustcloud/remote.php/webdav then a 404 Not found error appears.

The apache errorlog is showing this messages:

[Fri Nov 09 15:22:16 2012] [error] [client xxx] File does not exist: /var/www/polcustcloud/remote.php/core.css, referer: http://www.xxx.xxx/polcustcloud/?app=files [Fri Nov 09 15:22:16 2012] [error] [client xxx] File does not exist: /var/www/polcustcloud/remote.php/core.js, referer: http://www.xxx.xxx/polcustcloud/?app=files

What is the problem?

Best regards

Martin

POLARISFAMILY avatar Nov 09 '12 14:11 POLARISFAMILY

@POLARISFAMILY it's a different issue.

http://www.polarisfamily.com/polcustcloud/remote.php/core.css returns 404. Probably server config issue, is mod_rewrite enabled?

The problem describe here is when remote.php/core.css returns garbish.

blizzz avatar Nov 09 '12 14:11 blizzz