Quantcast
Channel: Ocsinventory Q&A - Recent questions
Viewing all articles
Browse latest Browse all 4371

configuration page blank

$
0
0

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


Viewing all articles
Browse latest Browse all 4371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>