Hallo paresy,
nach dem Update von heute morgen, erhalte ich folgenden Fehler.
14.07.2015 11:33:15 | ScriptEngine | Result für ScriptID #37835: <br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>23</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>23</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>24</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>24</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>25</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>25</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>27</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>27</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>36</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>36</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>45</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/usr/share/symcon/scripts/37835.ips.php</b> on line <b>45</b><br />
Die Zeile 23 sieht folgend aus.
SetValue(38267 /*[Strom\Speicher\Speicher Mode]*/ ,_getVarValue($response->ENERGY->STAT_STATE));
Sieht nach einem neuen Bug aus.
Grüße
Oli
Wie sieht den $response aus ?
Mach doch mal ein var_dump davon, ich würde den Fehler woanders vermuten.
Michael
Hallo Michael,
hier der VAR_Dump.
object(stdClass)#2 (5) {
["STATISTIC"]=>
object(stdClass)#3 (17) {
["STAT_DAY_E_GRID_IMPORT"]=>
string(11) "fl_3F34BEAB"
["STAT_DAY_E_GRID_EXPORT"]=>
string(11) "fl_3EF3AD7C"
["STAT_DAY_E_HOUSE"]=>
string(11) "fl_4100B488"
["STAT_DAY_BAT_CHARGE"]=>
string(11) "fl_4088BAB2"
["STAT_DAY_BAT_DISCHARGE"]=>
string(11) "fl_40369A7B"
["STAT_DAY_E_PV"]=>
string(11) "fl_411509FD"
["STAT_DAY_U_BAT_MEAN"]=>
string(11) "fl_3F1D654B"
["STAT_DAY_I_BAT_MEAN"]=>
string(11) "fl_3CB095D9"
["STAT_YEAR_E_PV_ARR"]=>
array(31) {
[0]=>
string(11) "fl_00000000"
[1]=>
string(11) "fl_3E00151A"
[2]=>
string(11) "fl_4570B79D"
[3]=>
string(11) "fl_00000000"
[4]=>
string(11) "fl_00000000"
[5]=>
string(11) "fl_00000000"
[6]=>
string(11) "fl_00000000"
[7]=>
string(11) "fl_00000000"
[8]=>
string(11) "fl_00000000"
[9]=>
string(11) "fl_00000000"
[10]=>
string(11) "fl_00000000"
[11]=>
string(11) "fl_00000000"
[12]=>
string(11) "fl_00000000"
[13]=>
string(11) "fl_00000000"
[14]=>
string(11) "fl_00000000"
[15]=>
string(11) "fl_00000000"
[16]=>
string(11) "fl_00000000"
[17]=>
string(11) "fl_00000000"
[18]=>
string(11) "fl_00000000"
[19]=>
string(11) "fl_00000000"
[20]=>
string(11) "fl_00000000"
[21]=>
string(11) "fl_00000000"
[22]=>
string(11) "fl_00000000"
[23]=>
string(11) "fl_00000000"
[24]=>
string(11) "fl_00000000"
[25]=>
string(11) "fl_00000000"
[26]=>
string(11) "fl_00000000"
[27]=>
string(11) "fl_00000000"
[28]=>
string(11) "fl_00000000"
[29]=>
string(11) "fl_00000000"
[30]=>
string(11) "fl_00000000"
}
["STAT_YEAR_E_HOUSE_ARR"]=>
array(31) {
[0]=>
string(11) "fl_00000000"
[1]=>
string(11) "fl_4293869C"
[2]=>
string(11) "fl_453569D1"
[3]=>
string(11) "fl_00000000"
[4]=>
string(11) "fl_00000000"
[5]=>
string(11) "fl_00000000"
[6]=>
string(11) "fl_00000000"
[7]=>
string(11) "fl_00000000"
[8]=>
string(11) "fl_00000000"
[9]=>
string(11) "fl_00000000"
[10]=>
string(11) "fl_00000000"
[11]=>
string(11) "fl_00000000"
[12]=>
string(11) "fl_00000000"
[13]=>
string(11) "fl_00000000"
[14]=>
string(11) "fl_00000000"
[15]=>
string(11) "fl_00000000"
[16]=>
string(11) "fl_00000000"
[17]=>
string(11) "fl_00000000"
[18]=>
string(11) "fl_00000000"
[19]=>
string(11) "fl_00000000"
[20]=>
string(11) "fl_00000000"
[21]=>
string(11) "fl_00000000"
[22]=>
string(11) "fl_00000000"
[23]=>
string(11) "fl_00000000"
[24]=>
string(11) "fl_00000000"
[25]=>
string(11) "fl_00000000"
[26]=>
string(11) "fl_00000000"
[27]=>
string(11) "fl_00000000"
[28]=>
string(11) "fl_00000000"
[29]=>
string(11) "fl_00000000"
[30]=>
string(11) "fl_00000000"
}
["STAT_YEAR_E_GRID_IMP_ARR"]=>
array(31) {
[0]=>
string(11) "fl_00000000"
[1]=>
string(11) "fl_429326E5"
[2]=>
string(11) "fl_445447E5"
[3]=>
string(11) "fl_00000000"
[4]=>
string(11) "fl_00000000"
[5]=>
string(11) "fl_00000000"
[6]=>
string(11) "fl_00000000"
[7]=>
string(11) "fl_00000000"
[8]=>
string(11) "fl_00000000"
[9]=>
string(11) "fl_00000000"
[10]=>
string(11) "fl_00000000"
[11]=>
string(11) "fl_00000000"
[12]=>
string(11) "fl_00000000"
[13]=>
string(11) "fl_00000000"
[14]=>
string(11) "fl_00000000"
[15]=>
string(11) "fl_00000000"
[16]=>
string(11) "fl_00000000"
[17]=>
string(11) "fl_00000000"
[18]=>
string(11) "fl_00000000"
[19]=>
string(11) "fl_00000000"
[20]=>
string(11) "fl_00000000"
[21]=>
string(11) "fl_00000000"
[22]=>
string(11) "fl_00000000"
[23]=>
string(11) "fl_00000000"
[24]=>
string(11) "fl_00000000"
[25]=>
string(11) "fl_00000000"
[26]=>
string(11) "fl_00000000"
[27]=>
string(11) "fl_00000000"
[28]=>
string(11) "fl_00000000"
[29]=>
string(11) "fl_00000000"
[30]=>
string(11) "fl_00000000"
}
["STAT_YEAR_E_GRID_EXP_ARR"]=>
array(31) {
[0]=>
string(11) "fl_00000000"
[1]=>
string(11) "fl_3E26154C"
[2]=>
string(11) "fl_44C14C1B"
[3]=>
string(11) "fl_00000000"
[4]=>
string(11) "fl_00000000"
[5]=>
string(11) "fl_00000000"
[6]=>
string(11) "fl_00000000"
[7]=>
string(11) "fl_00000000"
[8]=>
string(11) "fl_00000000"
[9]=>
string(11) "fl_00000000"
[10]=>
string(11) "fl_00000000"
[11]=>
string(11) "fl_00000000"
[12]=>
string(11) "fl_00000000"
[13]=>
string(11) "fl_00000000"
[14]=>
string(11) "fl_00000000"
[15]=>
string(11) "fl_00000000"
[16]=>
string(11) "fl_00000000"
[17]=>
string(11) "fl_00000000"
[18]=>
string(11) "fl_00000000"
[19]=>
string(11) "fl_00000000"
[20]=>
string(11) "fl_00000000"
[21]=>
string(11) "fl_00000000"
[22]=>
string(11) "fl_00000000"
[23]=>
string(11) "fl_00000000"
[24]=>
string(11) "fl_00000000"
[25]=>
string(11) "fl_00000000"
[26]=>
string(11) "fl_00000000"
[27]=>
string(11) "fl_00000000"
[28]=>
string(11) "fl_00000000"
[29]=>
string(11) "fl_00000000"
[30]=>
string(11) "fl_00000000"
}
["STAT_YEAR_E_BAT_CHR_ARR"]=>
array(31) {
[0]=>
string(11) "fl_00000000"
[1]=>
string(11) "fl_40BC3847"
[2]=>
string(11) "fl_44811543"
[3]=>
string(11) "fl_00000000"
[4]=>
string(11) "fl_00000000"
[5]=>
string(11) "fl_00000000"
[6]=>
string(11) "fl_00000000"
[7]=>
string(11) "fl_00000000"
[8]=>
string(11) "fl_00000000"
[9]=>
string(11) "fl_00000000"
[10]=>
string(11) "fl_00000000"
[11]=>
string(11) "fl_00000000"
[12]=>
string(11) "fl_00000000"
[13]=>
string(11) "fl_00000000"
[14]=>
string(11) "fl_00000000"
[15]=>
string(11) "fl_00000000"
[16]=>
string(11) "fl_00000000"
[17]=>
string(11) "fl_00000000"
[18]=>
string(11) "fl_00000000"
[19]=>
string(11) "fl_00000000"
[20]=>
string(11) "fl_00000000"
[21]=>
string(11) "fl_00000000"
[22]=>
string(11) "fl_00000000"
[23]=>
string(11) "fl_00000000"
[24]=>
string(11) "fl_00000000"
[25]=>
string(11) "fl_00000000"
[26]=>
string(11) "fl_00000000"
[27]=>
string(11) "fl_00000000"
[28]=>
string(11) "fl_00000000"
[29]=>
string(11) "fl_00000000"
[30]=>
string(11) "fl_00000000"
}
["STAT_YEAR_E_BAT_DIS_ARR"]=>
array(31) {
[0]=>
string(11) "fl_00000000"
[1]=>
string(11) "fl_410F4AD4"
[2]=>
string(11) "fl_444B88C0"
[3]=>
string(11) "fl_00000000"
[4]=>
string(11) "fl_00000000"
[5]=>
string(11) "fl_00000000"
[6]=>
string(11) "fl_00000000"
[7]=>
string(11) "fl_00000000"
[8]=>
string(11) "fl_00000000"
[9]=>
string(11) "fl_00000000"
[10]=>
string(11) "fl_00000000"
[11]=>
string(11) "fl_00000000"
[12]=>
string(11) "fl_00000000"
[13]=>
string(11) "fl_00000000"
[14]=>
string(11) "fl_00000000"
[15]=>
string(11) "fl_00000000"
[16]=>
string(11) "fl_00000000"
[17]=>
string(11) "fl_00000000"
[18]=>
string(11) "fl_00000000"
[19]=>
string(11) "fl_00000000"
[20]=>
string(11) "fl_00000000"
[21]=>
string(11) "fl_00000000"
[22]=>
string(11) "fl_00000000"
[23]=>
string(11) "fl_00000000"
[24]=>
string(11) "fl_00000000"
[25]=>
string(11) "fl_00000000"
[26]=>
string(11) "fl_00000000"
[27]=>
string(11) "fl_00000000"
[28]=>
string(11) "fl_00000000"
[29]=>
string(11) "fl_00000000"
[30]=>
string(11) "fl_00000000"
}
["STAT_YEAR_START"]=>
string(7) "u1_07DE"
["STAT_REQ_CLEAR_REM_DATA"]=>
string(5) "u8_00"
["STAT_RESET_DOD_REDUCTION"]=>
string(5) "u8_00"
}
["ENERGY"]=>
object(stdClass)#4 (7) {
["GUI_BAT_DATA_FUEL_CHARGE"]=>
string(11) "fl_427500D5"
["STAT_STATE"]=>
string(5) "u8_0E"
["STAT_STATE_DECODE"]=>
string(5) "u8_0E"
["GUI_BAT_DATA_POWER"]=>
string(11) "fl_44BCE400"
["GUI_INVERTER_POWER"]=>
string(11) "fl_400680C7"
["GUI_HOUSE_POW"]=>
string(11) "fl_44140198"
["GUI_GRID_POW"]=>
string(11) "fl_3FC51EB8"
}
["RTC"]=>
object(stdClass)#5 (7) {
["SET_TIME_BUTT"]=>
string(5) "u8_00"
["WEB_TIME_SEC"]=>
string(5) "u8_37"
["WEB_TIME_MIN"]=>
string(5) "u8_12"
["WEB_TIME_HOUR"]=>
string(5) "u8_0C"
["WEB_TIME_DAY"]=>
string(5) "u8_0E"
["WEB_TIME_MONTH"]=>
string(5) "u8_07"
["WEB_TIME_YEAR"]=>
string(5) "u8_73"
}
["LICENSE"]=>
object(stdClass)#6 (3) {
["DEVICE_ID"]=>
array(3) {
[0]=>
string(11) "u3_00190033"
[1]=>
string(11) "u3_3034510C"
[2]=>
string(11) "u3_39323435"
}
["LICENSE_NUM"]=>
string(3) "st_"
["LICENSE_UPDATE"]=>
string(5) "u8_00"
}
["LOG"]=>
object(stdClass)#7 (1) {
["USER_LEVEL"]=>
string(5) "u8_00"
}
}
Sieht soweit gut aus.
Grüße
Oli
Dann liegt wohl wirklich daran das IPS noch immer nicht automatisch oder nicht alles umwandelt.
Da ich kein Freund von typenlosen Variabeln und SetValue bin, ist mir das bisher nicht aufgefallen.
Michael
paresy
14. Juli 2015 um 23:24
5
Eigentlich gehört der Fehler zu PHP… wir werfen den nämlich nicht. Hat dein Gerät evtl. zwischendrin einen anderen Datensatz gesendet?
Was macht die Funktion „_getVarValue“?
paresy
Hallo paresy,
der Datensatz ist der selbe wie oben aufgeführt.
Ich habe dies hier eingefügt, da der Fehler erst nach dem Update (PI) von heute morgen gekommen ist.
Grüße
Oli