Relationship Graph

Relationship Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0005089mantisbtotherpublic2005-04-18 10:27
Reporterguideweb Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0005089: When user create already existing account
Description

When user try to create an accound, and the username is taken folllowing error are show
...
APPLICATION ERROR 0000800

That username is already being used. Please go back and select another one.
.....
Warning: Cannot modify header information - headers already sent by (output started at /home/admin/public_html/bugTracker2/core/html_api.php:169) in /home/admin/public_html/bugTracker2/core/gpc_api.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at /home/admin/public_html/bugTracker2/core/html_api.php:169) in /home/admin/public_html/bugTracker2/core/print_api.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/admin/public_html/bugTracker2/core/html_api.php:169) in /home/admin/public_html/bugTracker2/core/print_api.php on line 40

TagsNo tags attached.

Relationships

related to 0005044 closedthraxisp No warning message for missing strings 
has duplicate 0005259 closedgrangeway Problem during login to the Mantis 

Activities

guideweb

guideweb

2005-01-10 18:17

reporter   ~0008916

Same error for invalid email

guideweb

guideweb

2005-01-10 18:18

reporter   ~0008917

Same error for invalid email

thraxisp

thraxisp

2005-01-10 21:56

reporter   ~0008922

I think that this is related to 0005044. The error handler is not stopping properly after detecting the error. Can you set $g_display_errors = array( E_WARNING => 'inline', E_NOTICE => 'none', E_USER_ERROR => 'halt', E_USER_WARNING => 'inline', E_USER_NOTICE => 'none' ); in your config_inc.php file and retest?

guideweb

guideweb

2005-01-10 22:16

reporter   ~0008924

Last edited: 2005-01-10 22:21

Replace gpc_api.php line 251 by :

dont try to send cookie if headers are send (guideweb)

if(!headers_sent())
return setcookie( $p_name, '', -1, $p_path, $p_domain );
else
return false;

guideweb

guideweb

2005-01-10 22:18

reporter   ~0008925

Last edited: 2005-01-10 22:22

Replace print_api.php on line 35 by :

if(!headers_sent( )) # dont try to send headers if they are send (guideweb)
header( 'Content-Type: text/html; charset=' . lang_get( 'charset' ) );

guideweb

guideweb

2005-01-10 22:21

reporter   ~0008926

Last edited: 2005-01-10 22:23

Replace print_api.php on line 40... by

if(!headers_sent( )) # dont try to send headers if they are send (guideweb)
    {
        if ( ON == $t_use_iis ) {
            header( "Refresh: 0;url=$p_url" );
        } else {
            header( "Location: $p_url" );
        }
    }
guideweb

guideweb

2005-01-10 22:21

reporter   ~0008927

it fix error on my Bugtracker instalation

thraxisp

thraxisp

2005-01-11 07:55

reporter   ~0008934

I think you've managed to mask the problem, not resolve it's root cause. I don't see the same errors here unless I disable some of the error reporting. Many parts of the system assume that the error handler will not return after handling an error. In your case, it is.

guideweb

guideweb

2005-01-11 10:52

reporter   ~0008937

You should awalays check if headers are sent before trying to send them.

i am currently getting more familiar with code, i hope to find solution quikly

thraxisp

thraxisp

2005-01-11 11:17

reporter   ~0008938

Could you add the full text from the failing page (or a screen shot)?

guideweb

guideweb

2005-01-11 16:55

reporter   ~0008949

No more error with the last cvs.

I can reinstal old version if you want

thraxisp

thraxisp

2005-01-11 17:13

reporter   ~0008952

Last edited: 2005-01-11 17:14

This leads me to believe that the fix for 5044 was the root cause.

May I resolve this issue?

staszkiewicz

staszkiewicz

2005-02-18 16:36

reporter   ~0009339

guideweb's bugfixes (0008924),(0008925),(0008926) resolved the problem.
It really works :-)

Thanks a lot guideweb.

thraxisp

thraxisp

2005-02-20 17:59

reporter   ~0009356

Code to protect from these errors has been added in CVS.