hi all,
today i found that some of my maps stop to works and i've this error
"no trigger with trigger id 100100000013578"
on editor side i can see this error on the map
reset() expects parameter 1 to be array, null given [sysmap.php:229]
Undefined index: description [sysmap.php:231]
i also try to read the code of sysmap.php +229
foreach ($sysmap['links'] as &$link) {
foreach ($link['linktriggers'] as $lnum => $linktrigger) {
$dbTrigger = API::Trigger()->get(array(
'triggerids' => $linktrigger['triggerid'],
'output' => array('description', 'expression'),
'selectHosts' => API_OUTPUT_EXTEND,
'preservekeys' => true,
'expandDescription' => true
));
$dbTrigger = reset($dbTrigger);
$host = reset($dbTrigger['hosts']);
$link['linktriggers'][$lnum]['desc_exp'] = $host['name'].':'.$dbTrigger['description'];
}
order_result($link['linktriggers'], 'desc_exp');
and
+231
$link['linktriggers'][$lnum]['desc_exp'] = $host['name'].':'.$dbTrigger['description'];
it seems to be a linkdb issue, any idea on how to fix?
what's happen... how can i fix it??
today i found that some of my maps stop to works and i've this error
"no trigger with trigger id 100100000013578"
on editor side i can see this error on the map
reset() expects parameter 1 to be array, null given [sysmap.php:229]
Undefined index: description [sysmap.php:231]
i also try to read the code of sysmap.php +229
foreach ($sysmap['links'] as &$link) {
foreach ($link['linktriggers'] as $lnum => $linktrigger) {
$dbTrigger = API::Trigger()->get(array(
'triggerids' => $linktrigger['triggerid'],
'output' => array('description', 'expression'),
'selectHosts' => API_OUTPUT_EXTEND,
'preservekeys' => true,
'expandDescription' => true
));
$dbTrigger = reset($dbTrigger);
$host = reset($dbTrigger['hosts']);
$link['linktriggers'][$lnum]['desc_exp'] = $host['name'].':'.$dbTrigger['description'];
}
order_result($link['linktriggers'], 'desc_exp');
and
+231
$link['linktriggers'][$lnum]['desc_exp'] = $host['name'].':'.$dbTrigger['description'];
it seems to be a linkdb issue, any idea on how to fix?
what's happen... how can i fix it??
Comment