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.

configuration page blank

Installed OCSNG_UNIX_SERVER-2.2  at RedHat 5.6 x86_64.

When trying to configure it at http://10.10.1.13/ocsreports/install.php just the following page:

page almost blank

there is no error at apache log.

If I try to continue feeding the fields with user root, password, dbname and host got another page

If I call just address http://10.10.1.13/ocsreports/ I got the following error at httpd.log

[Tue Mar 22 17:41:31 2016] [error] [client 10.10.20.80] PHP Parse error:  syntax error, unexpected T_FUNCTION in /usr/share/ocsinventory-reports/ocsreports/require/menu/Menu.php on line 62

I extracted the portion of Menu.php code that contain line 62

    52     public function sortMenu()
     53     {
     54         foreach ($this->getChildren() as $index => $menu) {
     55             if ($menu->hasChildren()) {
     56                 $menu->sortMenu();
     57             }
     58         }
     59
     60         uasort(
     61             $this->_children,
     62                 function($a, $b) {
     63                         if ($a->getPriority() == $b->getPriority()) {
     64                                 return 0;
     65                         }
     66                         return ($a->getPriority() < $b->getPriority()) ? -1 : 1;
     67                 }
     68         );
     69     }
     70

in OCS Inventory NG server for Unix by (380 points)
edited by

2 Answers

0 votes
is there any resolution on this error, i just downloaded the unix server and i get the same error.. blank configuration page.
by (200 points)
0 votes
Hi

All needed modules (php-modules) have been correctly installed?

Regards

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