I'm trying to install the OCSNG extension. I have modified the files with my configuration.
when I launch the PHP, it shows me a lot of "PHP WARNING"
PHP Notice: Use of undefined constant CURLOPT_SSLVERSION - assumed 'CURLOPT_SSLVERSION' in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 114
PHP Notice: Use of undefined constant CURL_SSLVERSION_SSLv3 - assumed 'CURL_SSLVERSION_SSLv3' in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 114
PHP Warning: constant(): Couldn't find constant CURLOPT_SSLVERSION in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 119
PHP Warning: constant(): Couldn't find constant CURL_SSLVERSION_SSLv3 in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 120
PHP Warning: constant(): Couldn't find constant CURLOPT_SSL_VERIFYHOST in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 119
PHP Warning: constant(): Couldn't find constant CURLOPT_SSL_VERIFYPEER in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 119
what to do?
thank you in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
I'm trying to install the OCSNG extension. I have modified the files with my configuration.
when I launch the PHP, it shows me a lot of "PHP WARNING"
PHP Notice: Use of undefined constant CURLOPT_SSLVERSION - assumed 'CURLOPT_SSLVERSION' in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 114
PHP Notice: Use of undefined constant CURL_SSLVERSION_SSLv3 - assumed 'CURL_SSLVERSION_SSLv3' in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 114
PHP Warning: constant(): Couldn't find constant CURLOPT_SSLVERSION in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 119
PHP Warning: constant(): Couldn't find constant CURL_SSLVERSION_SSLv3 in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 120
PHP Warning: constant(): Couldn't find constant CURLOPT_SSL_VERIFYHOST in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 119
PHP Warning: constant(): Couldn't find constant CURLOPT_SSL_VERIFYPEER in /var/www/html/web/extensions/ocsng-data-collector/core/restclient.class.inc.php on line 119
what to do?
thank you in advance
I'm also getting the same PHP Warning, using iTop https://www.combodo.com/itop-193
Could be with PHP config?
Hi,
not sure if you still have the issue....
i had to install php7.0-curl package on Debian
Frank
Hi Frank, thank you for response.
Yes still the same issue
Top version 2.6.0-4294
Data model: 2.6.0
MySQL: 5.7.25-0ubuntu0.18.04.2
PHP: 7.2.10-0ubuntu0.18.04.1
not sure how to that with ubuntu.. installed 7.2 though
got it fix, thank you for your suggestion --> apt-get install php-curl