View Issue Details

IDProjectCategoryView StatusLast Update
0008537mantisbtbugtrackerpublic2009-06-26 12:01
Reportertinjaw Assigned Togiallu  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
OSlinux 
Product Version1.1.0rc2 
Summary0008537: Advanced Report Page Not Fully Rendering
Description

When selecting the "Advanced Report" link on the "Report Issue" page, the page returned does not fully render. It gets as far as rendering the "Reproducability" drop-down and then stops. The HTML source of the page returned confirms this.

Steps To Reproduce

Install a fresh copy of rc2 and create a brand new database. Create a project with everything at the default setting. (i.e. Just give it a name.) Go to the Report Issue page. (The Simple Report version will render fine.) Click on the link for Advanced Report. The page will stop rendering part way through.

Additional Information

I have experiences this on my production version as well. I had a version 1.0.8 install that worked fine. I moved to a4, rc1, and rc2. It is broken in rc1 and rc2. I cannot recall if it was broken in a4. I did a fresh install of rc2 to confirm that it wasn't a problem strictly with upgrading and the problem exists in a fresh install as well.

I have attached a screenshot.

TagsNo tags attached.
Attached Files
bug_report_advanced_page.php.txt (4,118 bytes)   
5<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<link rel="stylesheet" type="text/css" href="http://test2.chaimgang.com/css/default.css" />
	<script type="text/javascript" language="JavaScript"><!--
		if(document.layers) {document.write("<style>td{padding:0px;}<\/style>")}
	// --></script>
	<meta http-equiv="Content-type" content="text/html;charset=utf-8" />
	<meta http-equiv="Expires" content="Fri, 02 Nov 2007 14:08:18 GMT" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />	<title>Report Issue - Mantis</title>
	<script type="text/javascript" language="JavaScript" src="javascript/common.js"></script>
	<script type="text/JavaScript" src="javascript/ajax.js"></script>
<script type="text/javascript" src="javascript/projax/prototype.js"></script><script type="text/javascript" src="javascript/projax/scriptaculous.js"></script></head>
<body>
<div class="center"><span class="pagetitle"></span></div>
<div align="left"><a href="http://www.mantisbt.org" title="Free Web Based Bug Tracker"><img border="0" width="242" height="102" alt="Mantis Bugtracker" src="images/mantis_logo.gif" /></a></div><table class="hide"><tr><td class="login-info-left">Logged in as: <span class="italic">administrator</span> <span class="small">(administrator)</span></td><td class="login-info-middle"><span class="italic">2007-11-02 07:08 PDT</span></td><td class="login-info-right"><form method="post" name="form_set_project" action="set_project.php">Project: <select name="project_id" class="small" onchange="document.forms.form_set_project.submit();"><option value="0">All Projects</option>
<option value="1" selected="selected" >test2</option>
</select> <input type="submit" class="button-small" value="Switch" /><a href="http://test2.chaimgang.com/issues_rss.php?username=administrator&amp;key=8da4681d3c9b138fea47e96b37bf30be&amp;project_id=1"><img src="images/rss.gif" alt="RSS" style="border-style: none; margin: 5px; vertical-align: middle;" /></a></form></td></tr></table><table class="width100" cellspacing="0"><tr><td class="menu"><a href="main_page.php">Main</a> | <a href="my_view_page.php">My View</a> | <a href="view_all_bug_page.php">View Issues</a> | <a href="bug_report_page.php">Report Issue</a> | <a href="changelog_page.php">Change Log</a> | <a href="roadmap_page.php">Roadmap</a> | <a href="summary_page.php">Summary</a> | <a href="proj_doc_page.php">Docs</a> | <a href="manage_user_page.php">Manage</a> | <a href="news_menu_page.php">Edit News</a> | <a href="account_page.php">My Account</a> | <a href="logout_page.php">Logout</a></td><td class="menu right nowrap"><form method="post" action="jump_to_bug.php"><input type="text" name="bug_id" size="10" class="small" value="Issue #" onfocus="if (this.value == 'Issue #') this.value = ''" onblur="if (this.value == '') this.value = 'Issue #'" />&nbsp;<input type="submit" class="button-small" value="Jump" />&nbsp;</form></td></tr></table>
<br />
<div align="center">
<form name="report_bug_form" method="post" enctype="multipart/form-data" action="bug_report.php">
<table class="width75" cellspacing="1">


<!-- Title -->
<tr>
	<td class="form-title">
		<input type="hidden" name="m_id" value="0" />
		<input type="hidden" name="project_id" value="1" />
		Enter Report Details	</td>
	<td class="right">
		<span class="bracket-link">[&nbsp;<a href="bug_report_page.php">Simple Report</a>&nbsp;]</span> 	</td>
</tr>


<!-- Category -->
<tr class="row-1">
	<td class="category" width="30%">
		<span class="required">*</span>Category 	</td>
	<td width="70%">
				<select tabindex="1" name="category">
			<option value="" selected="selected">(select)</option>		</select>
	</td>
</tr>


<!-- Reproducibility -->
<tr class="row-2">
	<td class="category">
		Reproducibility 	</td>
	<td>
		<select tabindex="2" name="reproducibility">
			<option value="10">always</option><option value="30">sometimes</option><option value="50">random</option><option value="70" selected="selected" >have not tried</option><option value="90">unable to reproduce</option>

Relationships

related to 0009997 closedgrangeway Add check for Zend Optimizer version 

Activities

tinjaw

tinjaw

2007-11-02 10:20

reporter   ~0016063

I have attached the source of the page as returned by Mantis.

jreese

jreese

2007-11-02 11:09

reporter   ~0016066

What have you modified that is outputting '5' before the rest of the page contents? That seems to be a possible part of the problem.

tinjaw

tinjaw

2007-11-02 11:12

reporter   ~0016067

I have not modified anything other than adding the necessary info to config_inc.php to connect to the database.

tinjaw

tinjaw

2007-11-02 13:36

reporter   ~0016070

I may have found out why the '5' was showing up, but the bug reported still remains.

I downloaded the source and unzipped on a Windows box and uploaded the files via FTP to the Linux box originally. I deleted them and this time untared the file directly on the Linux box. The '5' is now gone, but this bug remains.

Tristan

Tristan

2007-11-23 17:52

reporter   ~0016267

Last edited: 2007-11-23 20:23

I can confirm this bug as I was actually in here to see if anyone had already reported it. The Simple Report is fine, but activating Advanced Report leaves only the Backend and Reproducibility dropdowns, the latter of which is empty on mine.

I also just tried it on the version currently in the SVN trunk, and the problem is still there. It seems to be a problem with the function print_enum_string_option_list() that, even though it's called with the same information as in bug_report_page.php stops at some point. In the case of the latest trunk, it stops after printing out: <option value="10">always</option>

It seems like it might affect the output a bit if I comment out the Projax API requirement, but that only makes it output a few more lines before stopping.

It's as if there's something that makes it stop loading before it's done.

vjacobs

vjacobs

2008-01-07 07:33

reporter   ~0016573

Last edited: 2008-01-07 07:38

I'm still experiencing this problem with 1.1.0 stable. Could it be that this is related to 0008538? It's similar behavior and I'm having trouble with that one as well.

shared server

PHP version: 4.4.7

MySQL version: 4.1.14

Mantis: 1.1.0 stable

lucasvr

lucasvr

2008-03-24 01:03

reporter   ~0017441

I'm experiencing the same problem in today's svn snapshot. Does anybody have any ideas on why is that happening?

thraxisp

thraxisp

2008-03-24 08:27

reporter   ~0017442

You may be getting a php error that we can't trap. Do you have access to the web server logs to check for this? It could be a segmentation fault, timeout, or memory overflow.

lucasvr

lucasvr

2008-03-24 16:00

reporter   ~0017444

This problem is happening in a domain hosted at Dreamhost.com. I do have a log directory for my domain there, but despite a few missing png files that I really didn't have, there are no other messages in error.log. Do you know another way to debug this other than using apache's log files?

sommer

sommer

2008-03-25 19:35

reporter   ~0017454

Also on dreamhost.com, inserting the marked line before l. 195 of core/profile_api.php helped:

$query = "SELECT
FROM $t_user_profile_table
WHERE user_id='$c_user_id'
ORDER BY platform, os, os_build";
/
workaround? */ if ($p_user_id != 0) return array();
$result = db_query( $query );

Apparently something that cannot be trapped goes wrong with the query -- although it runs just file for p_user_id==0...

lucasvr

lucasvr

2008-03-25 23:10

reporter   ~0017457

Interesting, this indeed does the trick..

rleins

rleins

2008-04-10 05:49

reporter   ~0017582

Hi all,

i have debugged this issue with my zend debugger and can point the problem to line 171 in file database_api.php:
$t_backtrace = debug_backtrace();

This line ends up with a segfault.

Interestingly it segfaults only at the second db-request (with $user_id != 0).

CADbloke

CADbloke

2008-05-08 09:18

reporter   ~0017797

I had issues I traced to this.

Sommer's mod (0017454) worked for me on both 1.1.0rc2 and 1.2.0a1.

1.2.0a1 started giving me '500' server errors until I updated php.ini to turn register globals off.

Another unproven suspicion of mine was the deletion of user #0 - the original admin account.

Now all the kittens are happy. For now

giallu

giallu

2009-02-09 07:30

reporter   ~0020820

Reports like this are starting to be associated to an older, buggy version of Zend Optimizer.

For this reason, we added a check for it's presence in 1.2 (I guess that could be ported to 1.1.7 also); version 3.3.3 is known to be fine, older ones could be but we are not sure what is the version where this problem is fixed.

giallu

giallu

2009-02-09 07:34

reporter   ~0020821

I'm closing this for now. Please reopen this or another one if you are experiencing the issue and you are running the Zend Optimizer >= 3.3.3 (or you are 100% sure you are not running it, check with phpinfo())