You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2013-06-25 13:20:19

fontenelesantana
Member
Registered: 2013-06-25
Posts: 1

Versão do OCS-NG inválida: Requer RC3

Hello, I have GLPI version 0.83.9 and when I set the MODE OCS displays the error: Version OCS-NG invalid: Requires RC3
I've tried the procedure as the link: http://forums.ocsinventory-ng.org/viewtopic.php?id=4961
I've tried to do: you have to change something in your ocsserver.class.php, Try this.. row number 1025 till row number 1033

FILE OCSSERVER.CLASS

    # Check OCS version
      if ($what & 1) {
         $result = $DBocs->query("SELECT `TVALUE`
                                  FROM `config`
                                  WHERE `NAME` = 'GUI_VERSION'");

         // Update OCS version on ocsservers
         if ($DBocs->numrows($result)) {
            $server = new OcsServer();
            $server->update(array('id'          => $DBocs->ocsservers_id,
                                  'ocs_version' => $DBocs->result($result, 0, 0)));
         }

         if ($DBocs->numrows($result) != 1
             || ($DBocs->result($result, 0, 0) < self::OCS_VERSION_LIMIT
                 && strpos($DBocs->result($result, 0, 0),'2.0') !== 0)) { // hack for 2.0 RC
            return false;
         }
      }

Offline

Board footer

Powered by FluxBB