Menu

error when installing the OCSNG extension (php Warning CURL)

2018-10-31
2019-02-14
  • BOER Frédéric

    BOER Frédéric - 2018-10-31

    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

     
  • Yondaime

    Yondaime - 2019-01-17

    I'm also getting the same PHP Warning, using iTop https://www.combodo.com/itop-193

    Could be with PHP config?

     
  • Frank Licik

    Frank Licik - 2019-02-04

    Hi,
    not sure if you still have the issue....
    i had to install php7.0-curl package on Debian
    Frank

     
  • Yondaime

    Yondaime - 2019-02-14

    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

     
  • Yondaime

    Yondaime - 2019-02-14

    got it fix, thank you for your suggestion --> apt-get install php-curl

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.