Dear Scriptcase-Team,
since 3 weaks I am working on an application. Among other mysterious things, today, everythings went down the drain.
I call my application and the following error occours:
Trying to get property of non-object | Script: /var/www/scriptcase/devel/class/xmlparser/nmXmlparser.class.php linha: 192
The application is compiled and executed, but not correctly!
- 3 Buttons were deleted,
- The Code in one Button is vanished (Code see below),
- The Blocks (about 25) have losted their arrangement and trying to rearrange them does not succeed! The loose their order. Adding many Blocks makes it possible to rearrange and save them!
The Code of the above mentioned button is listed below.
!!! It took me over 3 weaks on work (about 150 hours of work). Please help me, what have I done wrong. Is it a bug, is their a Fix for that??
Desperatly greating,
Hydro…
if ([SearchType] == “Nachfrage”)
{
$str1 = "";
$all_results = "";
$all_results_with_AND = "";
$all_results_with_OR = "";
$all_results_with_NOT = "";
$arr = array(
"Descr_ID" => array ( "Descr_ID"),
"Description" => array ( "Description"),
"Type" => array ( "Type"),
"Wert" => array ( "Wert"),
"Mandatory" => array ( "Mandatory"),
"Reihenfolge" => array ( "Reihenfolge"),
"Level" => array ( "Level"),
"Einheit" => array ( "Einheit"),
"Toleranz"=> array ("Toleranz"),
"LogicOperator"=> array ("LogicOperator")
);
if ({Kriterium2} <> "")
{
sc_lookup(Value, "SELECT DISTINCT Type, Descr_ID, Description, Mandatory, Reihenfolge, Level, Einheit FROM eingabemasken WHERE Descr_ID='{Kriterium2}'");
$str1 = "";
if ( {Value[0][0]} == "zahl" AND {Krit2von} <> "" AND {Krit2bis} <> "")
{
$str1 = "SELECT DISTINCT Inserat_ID FROM market WHERE Kat_ID=" . {Kriterium1} . " AND Descr_ID='" . {Kriterium2} . "' AND Value >= " . mysql_real_escape_string({Krit2von}) . " AND Value <= " . mysql_real_escape_string({Krit2bis}) . "";
$arr["Wert"][2] = ({Krit2bis} + {Krit2von}) / 2;
$arr["Toleranz"][2] = {Krit2von} - ({Krit2bis} + {Krit2von}) / 2;
}
if ({Value[0][0]} == "text" AND {Krit2Contains} <> "")
{
$str1 = "SELECT DISTINCT Inserat_ID FROM market WHERE Kat_ID=" . {Kriterium1} . " AND Descr_ID='" . {Kriterium2} . "' AND Value LIKE '%" . mysql_real_escape_string({Krit2Contains}) . "%'";
$arr["Wert"][2] = mysql_real_escape_string({Krit2Contains});
}
if ({Value[0][0]} == "janein")
{
$str1 = "SELECT DISTINCT Inserat_ID FROM market WHERE Kat_ID=" . {Kriterium1} . " AND Descr_ID='" . {Kriterium2} . "' AND Value LIKE '" . {Krit2janein} . "'";
$arr["Wert"][2] = {Krit2janein};
}
$arr["Type"][2] = {Value[0][0]};
$arr["Descr_ID"][2] = {Value[0][1]};
$arr["Description"][2] = {Value[0][2]};
$arr["Mandatory"][2] = {Value[0][3]};
$arr["Reihenfolge"][2] = {Value[0][4]};
$arr["Level"][2] = {Value[0][5]};
$arr["Einheit"][2] = {Value[0][6]};
$arr["LogicOperator"][2] = {Krit2Operator};
}
$criteria = $arr;
sc_lookup(Ins, "SELECT MAX(Inserat_ID) AS New_Inserat_ID FROM market");
$Inserat_ID = $Ins[0][0];
$Inserat_ID = $Inserat_ID + 1;
$i=2;
while($i<=9)
{
if ($criteria["Descr_ID"][$i] <> "" OR $criteria["Wert"][$i] <> "")
{
$sql_cmd = "INSERT INTO market (Vorfall, Inserat_ID, gultig_bis, User_ID, Kat_ID, Descr_ID, Description, Type, Value, Mandatory, Reihenfolge, Level, Einheit, Toleranz, KeepLooking, LogicOperator) VALUES ('Nachfrage', '$Inserat_ID', '{Nachfrage_bis}', '[User_ID]', '{Kriterium1}', '" . $criteria["Descr_ID"][$i] . "', '" . $criteria["Description"][$i] . "' , '" . $criteria["Type"][$i] . "' , '" . $criteria["Wert"][$i] . "', '" . $criteria["Mandatory"][$i] . "', '" . $criteria["Reihenfolge"][$i] . "', '" . $criteria["Level"][$i] . "', '" . $criteria["Einheit"][$i] . "', '" . $criteria["Toleranz"][$i] . "', '" . {KeepLooking} . "', '" . $criteria["LogicOperator"][$i] . "'))";
sc_exec_sql($sql_cmd);
}
$i++;
}
$sql_cmd = "INSERT INTO market_beschreibung (Inserat_ID, User_ID, Titel, Beschreibung) VALUES ('$Inserat_ID', '[User_ID]', '" . {Gesuche_Titel} . "', '" . {Gesuche_Beschreibung} . "')";
sc_exec_sql($sql_cmd);