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.8 available

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

Bug ocsreports/index.php?function=visu_computers


my ocs installation work perfectly on my apache web server (by internet) but I've got a problem in local.

When I access my OCS page with Internet, everything's good, I can go on different tab without error; exemple I click on "All Computers" then on OCS logo, then return on "All Computers" without error.

But, if I do the same in local (direct connexion to I've got this page displayed when I select "all computer" after selected OCS logo. (

 * Copyright 2005-2016 OCSInventory-NG/OCSInventory-ocsreports contributors.
 * See the Contributors file for more details about them.
 * This file is part of OCSInventory-NG/OCSInventory-ocsreports.
 * OCSInventory-NG/OCSInventory-ocsreports is free software: you can redistribute
 * it and/or modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 2 of the License,
 * or (at your option) any later version.
 * OCSInventory-NG/OCSInventory-ocsreports is distributed in the hope that it
 * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with OCSInventory-NG/OCSInventory-ocsreports. if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.

// Check for mbstring before loading session and conf data
if (!extension_loaded('mbstring')) {
    die("Please install php mbstring extension");


// Before session_start to allow objects to be unserialized from session


$debut = microtime(true);

// Is it an AJAX call ? (ajax.php)
if (!defined('AJAX')) {
    define('AJAX', false);

require ('require/header.php');
addLog('PAGE', $protectedGet[PAG_INDEX]);

if (!AJAX && !isset($protectedGet["popup"]) && !isset($protectedGet["no_footer"])) {
    require (FOOTER_HTML);
If I deleted the index.php from the URL then the "All Computers" page is displayed correctly. (
I don't understand why I've got this problem on local and not when I used Internet.
Thx for help
in OCS Inventory NG server for Unix by (650 points)

1 Answer

0 votes

What errors have you in apache error log file ?


by (79.6k points)
Powered by Question2Answer