Date index for Jul 2003
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [achievo] help on bug
In article <Pine.GSO.4.05.10307151123370.2219-100000 dot
, Shengli Fu <sfu dot
>I am running achievo0.9.4, it runs well except a few small bugs. and one
>is about project phase dependency.
>
>after I add one or more dependency, and click "project planning", it give
>me these errors:
>
>ror: [+00.29543s] [2] Cannot modify header information - headers already
>sent by (output started at
>C:\Apache\Apache2\htdocs\achievo-0.9.4\modules\project\projectplanning.inc:586)
>in C:\Apache\Apache2\htdocs\achievo-0.9.4\atk\class.layout.inc (line 131)
>error: [+00.29549s] [2] Cannot modify header information - headers already
>sent by (output started at
>C:\Apache\Apache2\htdocs\achievo-0.9.4\modules\project\projectplanning.inc:586)
>in C:\Apache\Apache2\htdocs\achievo-0.9.4\atk\class.layout.inc (line 132)
>
>but if I did not create any dependency, it shows the planning well. can
>anyone help me on this??? thanks.
Well that error is from projectplanning.inc reacting to an error and
outputting HTML before class.layout.inc can send the headers. It looks
like the error is triggered at line 547.
If you move line 597 to the top of the layout output you should probably
get an Achievo error on screen rather than a PHP error in your logs.
Something like this:
--- projectplanning.inc.orig Tue Jul 15 16:39:51 2003
+++ projectplanning.inc Tue Jul 15 16:40:28 2003
dot
// **********
+ $g_layout->ui_top(text("title_projectplanning"));
+
if ($error)
{
echo "<br><b>ERROR : </b>";
dot
$milestones_table = print_milestones($m,$phase_ids,$phase_names,$h
oursperphase,$project_record);
}
-
- $g_layout->ui_top(text("title_projectplanning"));
$project_info = '<br><table border=0>';
$project_info.= '<tr><td align="right"><b>'.text("name").':
</b></td><td>'.$project_record['name'].'</td></tr>';
Kevin
--
kevin dot