zhanjh / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Garbage in browser window when viewing .../min/ directory #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Upload /min/ to server. 
2) Visit http://sitename.com/min/
3) See garbage on screen as displayed in the attached screenshot.

When running tests (http://sitename.com/min_unit_tests/test_all.php) all
tests pass except the last one which says:

!FAIL: environment : PHP/server does not auto-HTTP-encode content (1 of 72
tests run so far have failed)

Original issue reported on code.google.com by rige...@gmail.com on 6 Jan 2010 at 4:10

Attachments:

GoogleCodeExporter commented 9 years ago
You have a PHP (or server) setting causing all output to be encoded. Minify 
tries to
disable these, but it can't always do that. Check your PHP settings first.

Original comment by mrclay....@gmail.com on 6 Jan 2010 at 4:46

GoogleCodeExporter commented 9 years ago
the two phpini variables that are most likely causing it are:
zlib.zlib.output_compression
zlib.output_compression_level

It's mostly likely coming from lib.output_compression_level try setting it to 
-9:
ini_set('zlib.output_compression_level', '-9');

Also make sure zlib.output_compression is set to Off.

Hope that helps

Original comment by josh.pen...@gmail.com on 6 Apr 2010 at 11:34

GoogleCodeExporter commented 9 years ago
Thanks Josh. I'm gonna go ahead and close this.

Original comment by mrclay....@gmail.com on 7 Apr 2010 at 12:04