Date index for Jul 2002
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Debug-info-problem
Hi (again :) )
I've created a module, and I keep getting no-sense-making error messages
when accesing pages related to the module.
This is from class.vacation.php, error messages follows after:
<?php
useattrib("atkdateattribute");
useattrib("atkdummyattribute");
class vacation extends atkNode {
function vacation() {
$this->atkNode("vacation");
$this->add(new atkAttribute("id",
AF_PRIMARY|AF_HIDE|AF_AUTO_INCREMENT));
$this->add(new atkDateAttribute("entrydate",AF_HIDE));
$this->add(new atkDateAttribute("vacationdatestart","F d Y","d F Y", 0,
0, AF_OBLIGATORY));
$this->add(new atkDummyAttribute("descr_text", text('until'),
AF_NO_LABEL|AF_HIDE_LIST));
$this->add(new atkDateAttribute("vacationdateend","F d Y","d F Y", 0, 0,
AF_OBLIGATORY));
$this->add(new atkDummyAttribute("descr_text2",
text('vacation_warning'), AF_NO_LABEL|AF_HIDE_LIST));
$this->add(new atkAttribute("userid", AF_HIDE_ADD));
$this->add(new atkRadioAttribute("status",
Array(text('undecided'),text('allowed'),text('declined')), Array(0,1,2),
AF_HIDE_ADD));
$this->addFilter("vacation.status = 0");
$this->setTable("vacation");
$this->setOrder("userid");
}
function initial_values()
{
global $g_user;
return array("userid"=>strtolower($g_user["name"]),
"entrydate"=>Array("year"=>date("Y"),
"month"=>date("m"),
"day"=>date("d")));
}
}
?>
Error message (including debug text):
error: [2] Cannot add header information - headers already sent by (output
started at
/usr/local/service/tidred/docs/achievo-0.9.0/modules/vacation/class.vacation.inc:136)
in /usr/local/service/tidred/docs/achievo-0.9.0/atk/class.layout.inc (line
98)
error: [2] Cannot add header information - headers already sent by (output
started at
/usr/local/service/tidred/docs/achievo-0.9.0/modules/vacation/class.vacation.inc:136)
in /usr/local/service/tidred/docs/achievo-0.9.0/atk/class.layout.inc (line
99)
error: [2] Cannot add header information - headers already sent by (output
started at
/usr/local/service/tidred/docs/achievo-0.9.0/modules/vacation/class.vacation.inc:136)
in /usr/local/service/tidred/docs/achievo-0.9.0/atk/class.layout.inc (line
100)
error: [2] Cannot add header information - headers already sent by (output
started at
/usr/local/service/tidred/docs/achievo-0.9.0/modules/vacation/class.vacation.inc:136)
in /usr/local/service/tidred/docs/achievo-0.9.0/atk/class.layout.inc (line
101)
error: [2] Cannot add header information - headers already sent by (output
started at
/usr/local/service/tidred/docs/achievo-0.9.0/modules/vacation/class.vacation.inc:136)
in /usr/local/service/tidred/docs/achievo-0.9.0/atk/class.layout.inc (line
104)
dbg: [ dot
authorizationtype: db, scheme: group)
dbg: [+00.00023s] atkSecurityManager() constructing class auth_db
dbg: [+00.04652s] creating sessionManager (namespace: default)
dbg: [+00.04702s] ATKLEVEL : -1
dbg: [+00.04711s] Cleaning stack
dbg: [+00.04723s] New level on session stack
dbg: [+00.04771s] Using session for authentication / user = administrator
dbg: [+00.04826s] atkmysqldb.query(): SELECT theme from employee where
userid='administrator'
dbg: [+00.05033s] Constructing a new node - vacation.vacation
dbg: [+00.06118s] Action add
dbg: [+00.06361s] Retrieving metadata for vacation
dbg: [+00.06459s] Metadata for vacation complete
dbg: [+00.09762s] Disconnecting from database...
dbg: [+00.09775s] disconnected from the database
All actions etc works, but the error message is still shown on every page.
Any ideas what I have to do to get rid of the error message?
/Jonas
_________________________________________________________________
MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig ett eget konto
du också: http://www.hotmail.com