caran
Posts: 15
|
Posted: 09/17/2012, 9:46 AM |
|
Hy,
By using the Dependent Listbox i got these Warning:
Wrong server response:
<br />
<b>Warning</b>: Creating default object from empty value in <b>C:\xampp\htdocs\ABAKUS\Dispo2_events.php</b> on line <b>1285</b><br />
[["1", "T - AB WERK"], ["2", "T - FREI HAUS"], ["100", "T - SCHUSTER MOOSEN"], ["101", "T - KR SPEDITION"], ["102", "T - EWALS CARGO CARE"], ["103", "T - TROHA SPEDITION"], ["104", "T - WELZENBACH"], ["105", "T – ALLIED"], ["106", "T - GEORG STEIGER"], ["10
...
There is also a warning for row 1252:
Wrong server response:
<br />
<b>Warning</b>: Creating default object from empty value in <b>C:\xampp\htdocs\ABAKUS\Dispo2_events.php</b> on line <b>1252</b><br />
[]
...
The Code ist automatically produced by CCT:
//CCT Load Ajax Dependent ListBoxes @50-18C33FDB
global $DefaultDateFormat; // Needed for Date type parameters
if (isset($_GET["dlleistungSearchs_fzg_id"])) {
$s_fzg_id->DSType = dsTable; <----- THIS IS ROW 1252
$DataSource = new clsDBWLPG01();
$ds = & $DataSource;
$DataSource->SQL = "SELECT * \n" .
"FROM fahrzeug {SQL_Where} {SQL_OrderBy}";
list($s_fzg_id->BoundColumn, $s_fzg_id->TextColumn, $s_fzg_id->DBFormat) = array("fzg_id", "fzg_match", "");
$DataSource->Parameters["urldlleistungSearchs_fzg_id"] = CCGetFromGet("dlleistungSearchs_fzg_id", NULL);
$DataSource->wp = new clsSQLParameters();
$DataSource->wp->AddParameter("1", "urldlleistungSearchs_fzg_id", ccsInteger, "", "", $DataSource->Parameters["urldlleistungSearchs_fzg_id"], -1, false);
$DataSource->wp->Criterion[1] = $DataSource->wp->Operation(opEqual, "fsp_id", $DataSource->wp->GetDBValue("1"), $DataSource->ToSQL($DataSource->wp->GetDBValue("1"), ccsInteger),false);
$DataSource->Where =
$DataSource->wp->Criterion[1];
$sql = CCBuildSQL($ds->SQL, $ds->Where, $ds->Order);
$ds->query($sql);
$JSHash = '[';
while ($ds->next_record()) {
$JSHash .= '["' . addslashes(intval($ds->f("fzg_id"))) . '", "' .
addslashes($ds->f("fzg_match")) . '"]';
if ($ds->has_next_record()) {
$JSHash .= ', ';
}
}
$JSHash .= ']';
global $Charset;
$Charset = $Charset ? $Charset : "utf-8";
if ($Charset) {
header("Content-Type: text/html; charset=" . $Charset);
}
echo $JSHash;
exit;
}
global $DefaultDateFormat; // Needed for Date type parameters
if (isset($_GET["dlleistungfzg_id"])) {
$fzg_id->DSType = dsTable; <------- THIS IS ROW 1285
$DataSource = new clsDBWLPG01();
$ds = & $DataSource;
$DataSource->SQL = "SELECT * \n" .
"FROM fahrzeug {SQL_Where} {SQL_OrderBy}";
list($fzg_id->BoundColumn, $fzg_id->TextColumn, $fzg_id->DBFormat) = array("fzg_id", "fzg_match", "");
$DataSource->Parameters["urldlleistungfzg_id"] = CCGetFromGet("dlleistungfzg_id", NULL);
$DataSource->wp = new clsSQLParameters();
$DataSource->wp->AddParameter("1", "urldlleistungfzg_id", ccsInteger, "", "", $DataSource->Parameters["urldlleistungfzg_id"], -1, false);
$DataSource->wp->Criterion[1] = $DataSource->wp->Operation(opEqual, "fsp_id", $DataSource->wp->GetDBValue("1"), $DataSource->ToSQL($DataSource->wp->GetDBValue("1"), ccsInteger),false);
$DataSource->Where =
$DataSource->wp->Criterion[1];
$sql = CCBuildSQL($ds->SQL, $ds->Where, $ds->Order);
$ds->query($sql);
$JSHash = '[';
while ($ds->next_record()) {
$JSHash .= '["' . addslashes(intval($ds->f("fzg_id"))) . '", "' .
addslashes($ds->f("fzg_match")) . '"]';
if ($ds->has_next_record()) {
$JSHash .= ', ';
}
}
$JSHash .= ']';
global $Charset;
$Charset = $Charset ? $Charset : "utf-8";
if ($Charset) {
header("Content-Type: text/html; charset=" . $Charset);
}
echo $JSHash;
exit;
}
//End CCT Load Ajax Dependent ListBoxes
If i set in php.ini display errors to Off there is no Problem in working.
I understand that this is no big problem, but it seems for me not really clean
Did somebody know whats wrong?
(I'm using CCS 4.3)
rgds
Robert
|
|
|
MichaelMcDonald
Posts: 640
|
Posted: 09/18/2012, 2:22 AM |
|
ISP's all use varying error checking methods.
If your code works, leave ;error_reporting in php.ini and ignore it.
With CCS in some instances I have had to remark out a default ccs generated line in classes.php because of a fatal error.
_________________
Central Coast, NSW, Australia.
|
|
|
|