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

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

Blank Page after install / PHP Fatal Error

Hello , 

I have an issue with the installation of OCS server .

I'm on Ubuntu 21.10

I have installed Lamp ,perl and all the required module , Manualy create my database and my user . Everything was good until i lanch the /ocsreports/install.php confiugration . When i add my conf :

ocsuser

password

ocsdb

localhost 

I have a blank page and nothing happened .(When i use a bad password i have an error message ) .

I Saw this message on the error.log file :

PHP Fatal error:  Uncaught TypeError: mysqli_fetch_object(): Argument #1 ($result) must be of type mysqli_result, bool given in /usr/share/ocsinventory-reports/ocsreports/install.php:138\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/install.php(138): mysqli_fetch_object()\n#1 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/install.php on line 138, referer: http://IPSERVER/ocsreports/install.php

I have allready check if my php 7.0 was disabled #a2dismod php7.0 

Do you have any idea where this error come from ?

PHP 8.1.2 (cli)

mysql  Ver 15.1 Distrib 10.6.7-MariaDB

Server version: Apache/2.4.52 (Ubuntu

[PHP Modules]

calendar

Core

ctype

curl

date

dom

exif

FFI

fileinfo

filter

ftp

gd

gettext

hash

iconv

json

libxml

mbstring

mysqli

mysqlnd

openssl

pcntl

pcre

PDO

pdo_mysql

Phar

posix

readline

Reflection

session

shmop

SimpleXML

soap

sockets

sodium

SPL

standard

sysvmsg

sysvsem

sysvshm

tokenizer

xdebug

xml

xmlreader

xmlrpc

xmlwriter

xsl

Zend OPcache

zlib

[Zend Modules]

Xdebug

Zend OPcache

Thank for your help .

in OCS Inventory NG server for Unix by (160 points)

3 Answers

0 votes
You write 'I installed', but how ? For example, no indication on requirements, no indication for database creation, no log search (apache), ... is Apache Ok ?

Here and on Internet you can find lot of tutorials for installing OCS (for Debian usually, it's similar for Ubuntu).

Please consider to follow these tutorials (and use a LTS version of Ubuntu or, better for me, a fresh Debian network installation).
by (20.1k points)
0 votes
Thank you for your replay jacquesh .
I have finaly try create a new server on ubuntu 20.04 and follow an other Tutoriel :

https://websiteforstudents.com/how-to-install-ocs-inventory-server-on-ubuntu-18-04-16-04/

There are juste somme missing module but the install page follow you the informations .

I don't know where the mistake was but I finally reached my goal .

Thx
by (160 points)
0 votes
I have the same problem. After login I only get a blank page. If I see the code of this blank page is also blank.

Where I can find the error.log file?
by (200 points)
 
Powered by Question2Answer
...