#200 Simple Problem in the Source Code

BASE
closed-works-for-me
nobody
Interface (166)
5
2009-05-27
2008-08-14
Anonymous
No

Dear Developers,

I found a simple problem in source code of BASE. I´m using the pt_BR translated file. When I try to generate graphs(base_graph_main.php) with any kind of options, it results to the follow graph:

base_graph_display.php?width=600&height=400&pmargin0=50&pmargin1=50&pmargin2=70&pmargin3=80&title=Grfico%20BASE%0ATempo%20vs.%20N%C3%BAmero%20de%20Alertas%0A%20(%2008%2F14%2F2008%20-%2008%2F14%2F2008%20)&xaxis_label=Tempo&yaxis_label=Ocorr%C3%AAncia%20de%20Alertas&yaxis_scale=&rotate_xaxis_lbl=&yaxis_scale=&xaxis_grid=&yaxis_grid=1&chart_type=2&style=bar

and that link returns:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/base/base_qry_common.php:901) in /usr/share/php/Image/Canvas.php on line 644

Warning: Cannot modify header information - headers already sent by (output started at /var/www/base/base_qry_common.php:901) in /usr/share/php/Image/Canvas.php on line 645

Warning: Cannot modify header information - headers already sent by (output started at /var/www/base/base_qry_common.php:901) in /usr/share/php/Image/Canvas.php on line 646

Warning: Cannot modify header information - headers already sent by (output started at /var/www/base/base_qry_common.php:901) in /usr/share/php/Image/Canvas.php on line 647

Warning: Cannot modify header information - headers already sent by (output started at /var/www/base/base_qry_common.php:901) in /usr/share/php/Image/Canvas/GD/PNG.php on line 104

Warning: Cannot modify header information - headers already sent by (output started at /var/www/base/base_qry_common.php:901) in /usr/share/php/Image/Canvas/GD/PNG.php on line 105

I tried in Mozilla Firefox 3.0.1 and IE 6.0

So, trying to fix that, in the code, I've done these changes:

base_graph_display.php, line 38.
"#require_once('Image/Graph.php'); "
The line is commented.. I uncommented it...

base_qry_common.php , EOF.
There are line feeds (I dont remember if there are 2 or more) in the end of file. These lines are causing problems when I generate the graphs. I simple deleted them.

After that, I could generate the graphics w/o problems.

Feel free to keep in touch.

Regards,
Felipe Casquilha
felipecasquilha@hotmail.com

Discussion

  • Logged In: NO

    Hello Felipe,

    what version of BASE exactly are you talking about?
    And where did you download this from?
    The require_once line being commented out is surprising news to me.
    Of course, it cannot work without it...

    Bye, bye

    Juergen

     
  • Kevin Johnson
    Kevin Johnson
    2009-05-12

    • status: open --> pending-works-for-me
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-works-for-me --> closed-works-for-me