View Issue Details

IDProjectCategoryView StatusLast Update
0007013mantisbtinstallationpublic2006-05-07 03:51
Reportertakahidehiguchi Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.1 
Fixed in Version1.1.0a1 
Summary0007013: newbie admins may be redirected to blank page
Description

Users are redirected to blank page after installation if there are one blank line in the configuraion file (config_inc.php).

I believe this is a kind of design flaw of user interface. It was very hard for me to find what causes the blank page since there is no information on blank page and I am not familier with PHP.

Additional Information

I suggest an attached patch. I believe that we should avoid blank page in all error cases. we should try to show some useful messages even if redirection had failed.

Please someone write a better patch because my patch have some problems: it requires PHP 4.3.0, it does not follow coding standards, and I can't test enough this patch since I'm not familier with mantis yet..

TagsNo tags attached.
Attached Files
mantis.diff (685 bytes)   
--- /home/takahide/debs/mantis/mantis-1.0.1/core/print_api.php	2006-02-03 12:56:33.000000000 +0900
+++ core/print_api.php	2006-05-03 02:14:35.715340115 +0900
@@ -37,7 +37,7 @@
 		$t_url = string_sanitize_url( $p_url );
 
 		# don't send more headers if they have already been sent (guideweb)
-		if ( ! headers_sent() ) {
+		if ( ! headers_sent( $t_file, $t_linenum ) ) {
 			header( 'Content-Type: text/html; charset=' . lang_get( 'charset' ) );
 
 			if ( ON == $t_use_iis ) {
@@ -46,6 +46,7 @@
 				header( "Location: $t_url" );
 			}
 		} else {
+                        print "ERROR: Redirection failed. May be problem is in line $t_linenum of $t_file .";
 			return false;
 		}
 
mantis.diff (685 bytes)   

Relationships

parent of 0007041 closedvboctor Port: newbie admins may be redirected to blank page 

Activities

vboctor

vboctor

2006-05-05 11:37

manager   ~0012783

Great idea. This problem now triggers a standard Mantis application error. The error is also localised.