Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

PHP error for Ipdiscover : PHP Fatal error: Call to undefined function formGroup()


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:

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;
    $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();"'); ?>

} else {

Any help?


in OCS Inventory NG server for Windows by (280 points)

Please log in or register to answer this question.

Powered by Question2Answer