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

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

OCS 2.3.1 Compatibility with PHP7?

Hi all,

we need to update OCS 2.3.1 with PHP 5.4.16 installed to the version 7 of PHP. ┬┐Can anyone tell me if OCS is compatible with this version of PHP?

Thank you so much,

Regards,

Carlos
in OCS Inventory NG server for Unix by (180 points)

2 Answers

0 votes

Not working in PHP7 , but front screen was working here log example :

[Wed Oct 25 15:47:37.833981 2017] [:error] [pid 339] [client 192.168.1.199:33068] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: http://192.168.1.11/ocsreports/index.php?function=show_ipdiscover
[Wed Oct 25 15:47:39.729150 2017] [:error] [pid 339] [client 192.168.1.199:33068] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: http://192.168.1.11/ocsreports/index.php?function=account_config&head=1
[Wed Oct 25 15:47:40.916576 2017] [:error] [pid 339] [client 192.168.1.199:33068] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: http://192.168.1.11/ocsreports/index.php?function=visu_computers
[Wed Oct 25 15:47:43.270632 2017] [:error] [pid 339] [client 192.168.1.199:33068] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: http://192.168.1.11/ocsreports/index.php?first
[Wed Oct 25 15:47:45.813485 2017] [:error] [pid 339] [client 192.168.1.199:33068] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: http://192.168.1.11/ocsreports/index.php?function=visu_computers
[Wed Oct 25 15:47:47.716946 2017] [:error] [pid 339] [client 192.168.1.199:33068] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: http://192.168.1.11/ocsreports/index.php?function=search_soft
[Wed Oct 25 15:48:17.345964 2017] [:error] [pid 312] [client 192.168.1.199:33098] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: http://192.168.1.11/ocsreports/index.php?function=tele_package
[Wed Oct 25 15:49:18.909215 2017] [:error] [pid 2510] [client 192.168.1.199:56156] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: https://192.168.1.11/ocsreports/
[Wed Oct 25 15:50:00.632895 2017] [:error] [pid 331] [client 192.168.1.199:56198] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: https://192.168.1.11/ocsreports/
[Wed Oct 25 15:51:33.518017 2017] [:error] [pid 2640] [client 192.168.1.199:56366] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:390\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/html_header.php(121): get_update_json()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/header.php(393): require_once('/usr/share/ocsi...')\n#2 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#3 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 390, referer: https://192.168.1.11/ocsreports/

I wiill try downgrade and inform in here

by (140 points)
0 votes
Hey,

It seems like the curl support is not available since you upgraded to PHP7. Maybe installing it again will fix the issue.

Take a look at this, it may help:

https://stackoverflow.com/questions/34842596/call-to-undefined-function-curl-init-even-it-is-enabled-in-php7

Regards,

Carlos
by (180 points)
 
Powered by Question2Answer
...