|
|
|
|
|
Joined: Thu Aug 09 2007, 10:58AM
Posts: 10
|
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 ]
|
|
|
|
e107 developer
Joined: Sat Nov 18 2006, 06:29PM
Posts: 1170
|
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...
|
|
|
|
Joined: Thu Aug 09 2007, 10:58AM
Posts: 10
|
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 :)
|
|
|
|
e107 developer
Joined: Sat Nov 18 2006, 06:29PM
Posts: 1170
|
Wed Sep 09 2009, 04:05PM
|
|
|
|
tricky, but possible
|
|
|
|
Joined: Wed May 23 2007, 05:09PM
Posts: 10
|
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.
|
|
|
|
e107 developer
Joined: Sat Nov 18 2006, 06:29PM
Posts: 1170
|
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 '';)
|
|
|
|
Joined: Wed May 23 2007, 05:09PM
Posts: 10
|
Thu Oct 01 2009, 10:32AM
|
|
|
|
Thanks very much, your time is appreciated.
|
|
|
|
Joined: Sat Dec 19 2009, 03:31AM
Posts: 45
|
Sat Apr 03 2010, 12:07AM
|
|
|
Hi
where do I have to add these code in jslib.php?
Thanks a lot.
Cheers
Mario
|
|
|
|
e107 developer
Joined: Sat Nov 18 2006, 06:29PM
Posts: 1170
|
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)
|
|
|
|
|
|
Moderators: SonicE, veskoto, SecretR, Stoewarius, steved, McFly, Cameron, yanniiwanow
|
|