6.0.0-alpha14
7/2/25

[#8224] Enabling compress_pages causes pages to load with no formatting
Summary Enabling compress_pages causes pages to load with no formatting
Queue Ansel
Queue Version Git master
Type Bug
State Not Reproducible
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester simon (at) simonandkate (dot) net
Created 04/28/2009 (5909 days ago)
Due
Updated 01/30/2016 (3441 days ago)
Assigned 05/10/2010 (5532 days ago)
Resolved 01/30/2016 (3441 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/30/2016 07:51:01 PM Michael Rubinsky State ⇒ Not Reproducible
Version ⇒ Git master
 
09/03/2011 04:01:41 AM Michael Rubinsky Comment #21
State ⇒ Stalled
Reply to this comment
Been running with compression now for about 3 months without running 
across this once on Horde 4. Stalling for Horde 3, not an issue with 
Horde 4.
06/01/2011 07:44:14 PM Michael Rubinsky Comment #20 Reply to this comment
Stalling this:
I haven't seen this recently in H3, or at all in H4. Either way, I 
have no idea what to do about it if it is still happening. It's caused 
by what I can only assume is a PHP internals issue: A static variable 
is not acting like one.
05/10/2010 01:26:21 PM Jan Schneider State ⇒ Assigned
 
02/15/2010 04:13:52 AM taiken (at) ubishops (dot) ca Comment #19 Reply to this comment
Glad someone else is having this same problem-I thought I was the only one.

Running Horde 3.3.6, and Ansel and Trean are the only applications affected.
10/29/2009 05:19:47 PM Michael Rubinsky Comment #18 Reply to this comment
From what I read on that page, that is changing base.php in the
following apps only: agora, forwards, jonah, passwd, trean and
vacation. Not ansel, which is the main app that throws the errors for
me. Although I do have agora installed to add comments on pics in
ansel...
Yup. Exactly the reason I thought it would help, since Agora is called 
from within Ansel. Again, not 100% sure it will help, but thought it 
worth a try.


10/29/2009 12:13:35 AM simon (at) simonandkate (dot) net Comment #17 Reply to this comment
From what I read on that page, that is changing base.php in the 
following apps only: agora, forwards, jonah, passwd, trean and 
vacation. Not ansel, which is the main app that throws the errors for 
me. Although I do have agora installed to add comments on pics in 
ansel...



Worth a try you think?
10/28/2009 07:09:24 PM Michael Rubinsky Comment #16 Reply to this comment
No idea if this *will* fix your issue, but thought it would be worth a poke.



http://lists.horde.org/archives/cvs/Week-of-Mon-20091019/089595.html
10/28/2009 12:22:32 PM simon (at) simonandkate (dot) net Comment #15 Reply to this comment
Yup... I'm running Horde 3.3.4 still at the moment, what do I need to 
upgrade to check the changes? Just a Horde Framework upgrade to 3.3.5, 
or are there additional patches needed?
10/24/2009 06:29:14 PM Michael Rubinsky Comment #14
Assigned to Michael Rubinsky
Reply to this comment
There were some recent commits regarding output compression in other 
Horde apps. It's a long shot, but it's possible that those commits may 
have fixed this, depending on what other applications were being 
loaded, etc...



Can the original poster please check to see if this is still happening?
06/30/2009 05:28:19 PM Michael Rubinsky Comment #13 Reply to this comment
Michael (or anyone else...)

Any ideas on why this is doing this, even with upgraded PHP?
Nope - which is why the ticket is still open ;)
06/24/2009 05:05:08 AM simon (at) simonandkate (dot) net Comment #12 Reply to this comment
Michael (or anyone else...)



Any ideas on why this is doing this, even with upgraded PHP?
05/29/2009 08:38:22 AM simon (at) simonandkate (dot) net Comment #11 Reply to this comment
:(



Still does it with PHP 5.2.6.




05/29/2009 06:51:24 AM simon (at) simonandkate (dot) net Comment #10 Reply to this comment
OK, I bit the bullet, backed up the virtual machine, and plunged into 
upgrading PHP.



Pointed CentOS at the CentOS testing repo, installed php 5.2.6. 
Immediately ran into some issues with loaded extensions and pecl 
stuff, but managed to get through those without completely borking my 
rpm-based setup... I think. LOL. Had to repackage php-tidy and 
php-mcrypt, but found a good post here 
http://www.webtatic.com/blog/2009/05/installing-php-526-extra-extensions/comment-page-1/#comment-56 that was having the exact same 
need.



I have now re-enabled php compression in Horde, and will see over the 
next few days if it fixes this issue. If it does, I think we can 
safely say that it is an issue with the older version of PHP that I 
was running (5.1.6) rather than
05/07/2009 04:52:57 AM simon (at) simonandkate (dot) net Comment #9 Reply to this comment
I would upgrade to the latest PHP 5.2.x Like I said, I've not had
this problem in quite a while, and the only thing I can think of to
attribute it to was a bug in PHP....of course, YMMV
Hmmm.... My mail box is a CentOS 5.3 box that is (mostly) still as per 
distro install (with the exception of easily segregated apps like 
Horde, which are simple to manage outside of yum). Not sure that 
taking it outside of that with such a critical piece like PHP is going 
to make my life easier in the long run. It IS a virtual though, so I 
could take a snapshot and have a go... will see what the next few 
weeks brings. I'll have to google PHP upgrades. I think a PHP 5.2.x is 
available in the CentOS testing repo...
04/28/2009 10:45:55 PM Michael Rubinsky Comment #8 Reply to this comment
I would upgrade to the latest PHP 5.2.x Like I said, I've not had this 
problem in quite a while, and the only thing I can think of to 
attribute it to was a bug in PHP....of course, YMMV
04/28/2009 10:04:47 PM simon (at) simonandkate (dot) net Comment #7 Reply to this comment

[Show Quoted Text - 11 lines]
PHP 5.1.6 on CentOS 5.3 x64.



Thanks Michael. It seems strange that it works sometimes and not others.


04/28/2009 02:45:31 PM Michael Rubinsky Summary ⇒ Enabling compress_pages causes pages to load with no formatting
 
04/28/2009 02:31:46 PM Michael Rubinsky Comment #6
Summary ⇒ Ansel randomly loads with no formattingI hThe
Reply to this comment
It looks like the exact same issue that I was talking about, though I 
haven't seen this happen personally for a while. What version of PHP 
are you running? In case you, or anyone else with PHP skills and time, 
want to dig,  the code in question is in framework/Horde/Horde.php 
it's in Horde::compressOutput(). What was happening was that for some 
reason the static $started variable was not acting like a static for 
some reason, so the function did not exist early like it should.   
This was bugging me on and off for a a very long time,and was never 
able to get anywhere beyond this.  That being said, it hasn't been 
happening lately, so perhaps a PHP upgrade, or other action, has 
solved it for me...
04/28/2009 05:06:17 AM simon (at) simonandkate (dot) net Comment #5 Reply to this comment
Disabling compression appears to have fixed it... I would ideally like 
to use compression to speed up loading over slow links though. But 
it's fine if it's the only way.



Thanks  Michael for the quick response. If you come up with a fix I'm 
happy to test it for you... :)



This was the only outstanding issue on my Horde install, so all good 
now - for now! :) Thanks for the great software.
04/28/2009 04:43:41 AM simon (at) simonandkate (dot) net Comment #4
New Attachment: style.txt Download
Reply to this comment
Good load Frame source dump attached.



Twice the size...



The bad load is missing all the style commands at the top.
04/28/2009 04:42:12 AM simon (at) simonandkate (dot) net Comment #3
New Attachment: nostyle.txt Download
Reply to this comment

[Show Quoted Text - 14 lines]
Well! Very interesting...



Attached file nostyle.txt is the frame source from a "bad" load.



I will attach the "good" load text next (I can't attach multiple files 
in a comment?)



The Bad load is missing a lot of data.



I *do* have compress pages on, will try without it for a while too.
04/28/2009 03:51:30 AM Michael Rubinsky Comment #2
State ⇒ Feedback
Summary ⇒ Ansel randomly loads with no formattingI h
Reply to this comment
I seem to remember an issue similar to this quite a while ago that was 
related to having the $conf[compress_pages] set to true.  IIRC, there 
was a static variable somewhere in the call stack that was not acting 
like a static. Anyway, I haven't seen this happen in a while, and when 
it did happen, it wasn't restricted to just Ansel and/or Trean.



Can you 1) view the source of the page when it come back unstyled and 
see if it is really just missing the style, or if it's actually 
missing part of the end of the page as well? and 2) look to see if you 
have $conf['compress_pages'] enabled...and if you do, try disabling it 
and see if it helps...




04/28/2009 02:01:08 AM simon (at) simonandkate (dot) net Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
New Attachment: ansel.jpg Download
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ansel
Summary ⇒ Ansel randomly loads with no formatting
Type ⇒ Bug
Reply to this comment
About 10% of the time Ansel is called on to load a page, it loses all 
of its formatting and displays as per the attached screenshot. 
Re-loading the page fixes it most of the time, but again sometimes it 
randomly repeats it. Nothing is logged to HTTPD error logs, and access 
logs show no different entries on a successful load to a bad one.



Trean does it too. No other Horde apps in my stack do it (Turba, 
Kronolith, Dimp, Gollem, Ingo, Imp, Mnemo, Passwd, Nag).



I'm running Horde 3.3.4-RC1, Ansel 1.0.1-cvs, with Horde accessed by 
Apache reverse proxy.

Saved Queries