Tue Sep 08 2009, 06:45PM
Hi,
I almost went crazy to find out what were wrong in diferent e107 servers with shadowbox.

I´ve discovered that it doesn´t work when you have Apache configured to compress all the javascript files.

I´ve checked in Firebug that when this is configured, the jslib.php response is a lot of rubish, and because of that shadowbow dosen´t work.

To check this in your apache2, enable mod_deflate and add this to httpd.conf
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE text/javascript
    DeflateCompressionLevel 5


The problem is in jslib.php in function clw_page_out() between the if( $encoding ).
If you comment this it will work, for this cases.
There most be a way to work for both cases, but I don´t know how.

Thanks

[ Edited Tue Apr 06 2010, 10:05AM ]
Back to top
Wed Sep 09 2009, 12:25AM
Thanks for your report. These are bad news, as I'm sure there is no good (100%) way of detecting this via PHP script. The worst part is - v0.8 script is acting in the exact same way, so in this scenario it'll be broken as well...
Back to top
Wed Sep 09 2009, 11:55AM
well, it there isn´t any good way of detecting this, I think then the best solution is an option to turn this 'on the fly' compression off ?
You only have to bypass the code inside the 'if', I´ve told above.
Thanks :)
Back to top
Wed Sep 09 2009, 04:05PM
tricky, but possible
Back to top
Wed Sep 30 2009, 11:10AM
I've had exactly the same problem as dolphin713 and tracked it down to the same issue - effectively its double compression. I'd like an option to be able to turn it off because I have other js files which do need compressing on the fly.
Back to top
Wed Sep 30 2009, 02:43PM
I'll add this to the next release, for now - open jslib.php and force function clw_browser_enc() to return always empty string (return '';)
Back to top
Thu Oct 01 2009, 10:32AM
Thanks very much, your time is appreciated.
Back to top
Sat Apr 03 2010, 12:07AM
Hi

where do I have to add these code in jslib.php?

Thanks a lot.

Cheers

Mario
Back to top
Mon Apr 05 2010, 01:04AM
You don't have to add any code, there is already 'no compression' setting (see Administration / CL Widgets / Settings)
Back to top
Moderators: SonicE, veskoto, SecretR, Stoewarius, steved, McFly, Cameron, yanniiwanow
Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF

Jump:     Back to top