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()

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

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

Please log in or register to answer this question.

 
Powered by Question2Answer
...