Hi,
I'm trying to perform an IPDiscovery using a Linux agent for my Windows OCS Server, but when I try to access the IPdiscover table, I only find a blank page.
Here is what I find in my httpd error_log :
PHP Fatal error: Call to undefined function formGroup() in /usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_ipdiscover/ms_ipdiscover.php on line 63, referer: http://10.132.13.48/ocsreports/index.php?function=debug&head=1
So i checked the file and here si the part of the code where the error is :
if (isset($_SESSION['OCS']["ipdiscover"])) {
$dpt = array_keys($_SESSION['OCS']["ipdiscover"]);
array_unshift($dpt, "");
foreach ($dpt as $key => $value) {
$list_index[$key] = $value;
}
asort($list_index);
$list_index[0] = ' ';
?>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<?php formGroup('select', 'DPT_CHOISE', $l->g(562), '', '', $protectedPost['DPT_CHOISE'], '', $list_index, $list_index, 'onchange="document.ipdiscover.submit();"'); ?>
</div>
</div>
<?php
} else {
msg_info(mb_strtoupper($l->g(1134)));
}
Any help?
Thx