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.

WARN_UPDATE OCS 2.3

Bonjour,

suite à l'installation de la 2.3 RC, j'avais eu des soucis avec l'option WARN_UPDATE activé par défaut, l'interface était horriblement lente. Suite à la désactivation de cette option, tout était rentré dans l'ordre.

J'ai installé la version 2.3 Stable, j'ai voulu réactivé cette option, résultat, plus rien ne s'affiche, peu importe le menu.

Voilà ce que j'ai :

[Mon Jan 16 14:11:19 2017] [error] [client 10.22.100.16] PHP Fatal error:  Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390,

La ligne 390 correspond bien à cette option :

/*
 * Return a json from the website which help ocs determine if a new version is available
 */

function get_update_json() {

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, UPDATE_JSON_URI);
    curl_setopt($ch, CURLOPT_TIMEOUT, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

    $content = curl_exec($ch);
    curl_close($ch);

    if (!$content) {
        return false;
    }

    $json = json_decode($content);

    if ($json != null) {
        return $json;
    } else {
        return false;
    }
}

Comment puis-je régler le souci ?

in OCS Inventory NG server for Unix by (1.2k points)

1 Answer

+1 vote
Bonjour

Il faut installer le package php-curl sur le serveur ocs.

Cordialement

Frank
by (88.5k points)
 
Powered by Question2Answer
...