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 |
Version ⇒ Git master
State ⇒ Stalled
across this once on Horde 4. Stalling for Horde 3, not an issue with
Horde 4.
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.
Running Horde 3.3.6, and Ansel and Trean are the only applications affected.
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...
from within Ansel. Again, not 100% sure it will help, but thought it
worth a try.
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?
http://lists.horde.org/archives/cvs/Week-of-Mon-20091019/089595.html
upgrade to check the changes? Just a Horde Framework upgrade to 3.3.5,
or are there additional patches needed?
Assigned to Michael Rubinsky
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?
Any ideas on why this is doing this, even with upgraded PHP?
Any ideas on why this is doing this, even with upgraded PHP?
Still does it with PHP 5.2.6.
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
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
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...
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
Thanks Michael. It seems strange that it works sometimes and not others.
Summary ⇒ Ansel randomly loads with no formattingI hThe
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...
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.
New Attachment: style.txt
Twice the size...
The bad load is missing all the style commands at the top.
New Attachment: nostyle.txt
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.
State ⇒ Feedback
Summary ⇒ Ansel randomly loads with no formattingI h
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...
Priority ⇒ 1. Low
State ⇒ Unconfirmed
New Attachment: ansel.jpg
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ansel
Summary ⇒ Ansel randomly loads with no formatting
Type ⇒ Bug
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.