Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0002953mantisbtbugtrackerpublic2003-12-13 04:41
Reportervboctor Assigned Tojfitzell  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Summary0002953: View all bugs page empty
Description

After updating my Mantis version at home from CVS, the view all bugs page is empty, even the filter is not displayed. This was fixed when I commented the compress_enable(); line.

Additional Information

IIS
IE 6
PHP 4.1.2
MySQL Client API version 3.23.39

TagsNo tags attached.

Relationships

has duplicate 0003004 closedgrangeway view_all_bug_page.php - Displays The page cannot be displayed 

Activities

vboctor

vboctor

2003-02-19 13:46

manager   ~0003732

Also everything worked fine when I disabled the compression feature:
$g_compress_html = OFF;

vboctor

vboctor

2003-02-21 04:41

manager   ~0003774

Julian, can you please have a look at this one.

jfitzell

jfitzell

2003-02-21 18:54

reporter   ~0003776

Yeah I'll have a look on the weekend... though I tested it pretty thoroughly and didn't see any problems so I may not be able to reproduce.

jfitzell

jfitzell

2003-02-22 09:46

reporter   ~0003782

Victor, I can't reproduce this at all. Can you confirm that you still see this with CVS HEAD? The blank screen on view_all_bug_page was the problem I always used to see any time there was an error on that page. That was the exact problem I was solving when I rewrote the compression stuff. I've tried triggering a warning and an error both before and after the compression is turned on and I can't make it happen.

I'm using IE 6 and I've tried it against php 4.1.2, 4.2.x and 4.3.x

I don't have IIS so I can't test that.

vboctor

vboctor

2003-02-22 14:31

manager   ~0003786

I committed a workaround that will be included in 0.18.0a3. This is to automatically disable compression when running on an IIS server. Although this is not an optimum solution, it will save the 0.18.0 users from dealing with this
problem. Since this is a temporary fix, I will leave the bug open.

scottcarr

scottcarr

2003-03-14 21:41

reporter   ~0003982

Last edited: 2003-03-14 21:42

I am running on Apache on windows and I am seeing the same problem. view_all_bugs is completely blank.

I am running a3. ;-(

edited on: 03-14-03 21:42

scottcarr

scottcarr

2003-03-14 21:58

reporter   ~0003983

Last edited: 2003-03-14 22:00

Look at the manual for ob_gzhandler. The first note states you have to compile --with-zlib or you don't get any error just don't get anything.

I don't think the Windows PHP is compiled with this.

You may want to default this feature to OFF, and allow the user to turn it on if they want.

edited on: 03-14-03 22:00

jfitzell

jfitzell

2003-03-15 02:41

reporter   ~0003985

can you confirm that? The docs for the ZLib extension on the php page say:

"The windows version of PHP has built in support for this extension. You do not need to load any additional extension in order to use these functions."

Also, the server on calaquendi.net does not have zlib compiled in and it does have compression turned on, so it looks like ob_gzhandler() is smart enough to notice that it can't do the compression. Either that or the comment you refer to is wrong.

If you run "php -m" you'll get a list of modules which should include zlib if it is compiled in (you could also look at phpinfo() output of course)

If you are correct this is an interesting lead and I can certainly add a check to make sure zlib is there before we try to compress. Perhaps this is problematic only in certain versions of PHP? Actually, I'm going to commit the check for the module so try updating and let me know if it helps or not.

scottcarr

scottcarr

2003-03-15 07:36

reporter   ~0003986

It looks as if it is compiled. Just compiled as a module that is not turned on by default.

You need to go into php.ini and remove the ; infront of the php_zlib extension.

I haven't tried this because the server is at work, but I will on Monday. This sounds like it'll work though.

jfitzell

jfitzell

2003-03-15 22:20

reporter   ~0003988

Ok, well if you wouldn't mind trying to new code to see if it prevents the blank screen first that would be very helpful. Then if you can get compression working, so much the better - we'll need to add an FAQ for it if it works.

scottcarr

scottcarr

2003-03-17 17:00

reporter   ~0003997

Ok. I just tested with 0.18.0a3. To get this to work on Windows, you need to:

  • Within php.ini, you need to remove the ; in the php_zlib.dll file.
  • Restart your web server.

PHP Windows is compiles the zlib as an insertable module. I have tested this on my Apache, Win2k box and it fixed my problem.

jfitzell

jfitzell

2003-03-17 23:52

reporter   ~0004000

I will add a comment to the config file about that. Any chance you could test the code in CVS (with that library still commented out) just to see if my fix got rid of the blank screen problem?

It should detect that the zlib library isn't present and disable compression. I'd like to know for sure that my fix works before closing this issue if possible.

Note to self: Add something to the admin/check.php script for this as well.

scottcarr

scottcarr

2003-03-18 00:25

reporter   ~0004002

Will do in the morning...

scottcarr

scottcarr

2003-03-18 22:04

reporter   ~0004004

Ok. I tested this in CVS and it is fixed. Even with php_zlib commented out, I get the page.

Thanks

jfitzell

jfitzell

2003-03-19 08:51

reporter   ~0004008

Mark fixed based on user feedback. See issue 0003065 which I added to deal with adding this check to admin/check.php

Related Changesets

MantisBT: master 9a2b1697

2003-02-22 08:29

vboctor


Details Diff
Fix 0002953: View all bugs page empty
- This problem only occurs under IIS and with compression ON, for now
we will automatically disable compression when running on an IIS server.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1989 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0002953
mod - core/compress_api.php Diff File
mod - doc/ChangeLog Diff File

MantisBT: master 4a3c5c34

2003-03-14 20:42

Julian Fitzell


Details Diff
Based on comments in issue 0002953 and on the php doc site, try adding a check for zlib before attempting compression. This doesn't seem to be needed in all versions but maybe it will help the people who are having problems.

* core/compress_api.php
(compress_is_enabled): add a check to see if zlib is available

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2102 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0002953
mod - core/compress_api.php Diff File