Support » Plugin: bpost shipping » Error on cart and checkout pages

  • Hi
    If i activate the debug mode and show the error i can see errors from your plugin and here is the error display on the cart and checkout pages :

    Warning: Use of undefined constant CURLOPT_SSL_VERIFYSTATUS – assumed ‘CURLOPT_SSL_VERIFYSTATUS’ (this will throw an Error in a future version of PHP) in /home/xxxxx/www/wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-api-library/src/Bpost.php on line 235

    Warning: curl_setopt_array(): supplied argument is not a valid File-Handle resource in /home/xxxxx/www/wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-api-library/src/ApiCaller/ApiCaller.php on line 84

    Are u aware of that, and can you fix the problem 🙂 ?
    Thank you

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author Antidot developer

    (@antidot-dev)

    Hi,

    Indeed, it’s a constant added in PHP 7.0.7 (https://www.php.net/manual/en/function.curl-setopt.php).
    What is your version of PHP?

    Regards,

    Thread Starter josselynj

    (@josselynj)

    Hi,

    We are on 7.3.27

    nabilbd

    (@nabilbd)

    Hello,

    i get the same error and it appear on the admin account in front page, the homepage when logged in with administrator.
    Can you provide the solution please?

    Regards

    Plugin Author Antidot developer

    (@antidot-dev)

    Hello,

    What is your version of curl?

    Regards,

    Thread Starter josselynj

    (@josselynj)

    Hi,
    on my side it’s 7.38.0, OpenSSL/1.0.1t

    nabilbd

    (@nabilbd)

    Hrllo,

    Mine is 7.3.27.
    Plz help

    Plugin Author Antidot developer

    (@antidot-dev)

    Hi,

    https://www.php.net/manual/en/function.curl-setopt.php :

    CURLOPT_SSL_VERIFYSTATUS -> Added in cURL 7.41.0. Available since PHP 7.0.7.

    Here the cause of the incompatibility.

    In one of the next release, I will see to check the constant exists before use it.

    Regards,

    nabilbd

    (@nabilbd)

    So if we upgrade the php version to 7.4,the error will be fixed?

    Plugin Author Antidot developer

    (@antidot-dev)

    Not sure, You must upgrade your curl, but to be honest, I don’t know if upgrading PHP will upgrade the curl ext too.

    On which OS/version are you?

    nabilbd

    (@nabilbd)

    Linux webm065

    nabilbd

    (@nabilbd)

    The weared thing is i have a demo of the site installed on bluehost that have php 7.4 enabled and i dont get the error, that why i asked if upgrading php ro version 7.4 resolve the problem.

    Plugin Author Antidot developer

    (@antidot-dev)

    I think it can help indeed.
    The most important is to check the curl version with: curl_version()['version'] in PHP, or curl --version on the server.
    It must be greater than 7.41.

    Plugin Author Antidot developer

    (@antidot-dev)

    I will release today to catch if the constant is not defined (because of PHP, curl, …).
    I let you know.

    Plugin Author Antidot developer

    (@antidot-dev)

    A new plugin version is available (2.3.15).
    Can you update and tell me if the issue is fixed?

    Regards,

    nabilbd

    (@nabilbd)

    Ok i updated the plugin,
    the first error desappered now i have this:

    Warning: curl_setopt_array(): supplied argument is not a valid File-Handle resource in /home/nutriphy/www/wp-content/plugins/bpost-shipping/vendor/antidot-be/bpost-api-library/src/ApiCaller/ApiCaller.php on line 82

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Error on cart and checkout pages’ is closed to new replies.