Title: Error messae &#8211; CURL
Last modified: March 28, 2023

---

# Error messae – CURL

 *  Resolved [WPbase.eu](https://wordpress.org/support/users/janvasek/)
 * (@janvasek)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-messae-curl/)
 * Can you help please?
 * PHP 7.4
 * **Warning**: Use of undefined constant CURL_SSLVERSION_TLSv1_2 – assumed ‘CURL_SSLVERSION_TLSv1_2’(
   this will throw an Error in a future version of PHP) in **/data/web/virtuals/
   4108/virtual/www/wp-content/plugins/woo-payu-payment-gateway/includes/lib/OpenPayU/
   HttpCurl.php** on line **45**

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [kubadev](https://wordpress.org/support/users/kubadev/)
 * (@kubadev)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-messae-curl/#post-16853095)
 * You need to declare constant:
 *     ```wp-block-code
       if (!defined('CURL_SSLVERSION_TLSv1_2')) {
       define('CURL_SSLVERSION_TLSv1_2', 6);
       }
       curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
       ```
   
 * that is common issue for example in another plugin:
   [https://github.com/wepay/PHP-SDK/issues/26](https://github.com/wepay/PHP-SDK/issues/26)
 *  Plugin Author [PayU GPO](https://wordpress.org/support/users/payusa/)
 * (@payusa)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-messae-curl/#post-16866027)
 * [https://curl.se/libcurl/c/CURLOPT_SSLVERSION.html](https://curl.se/libcurl/c/CURLOPT_SSLVERSION.html)
 *     ```wp-block-code
       CURL_SSLVERSION_TLSv1_2
       TLS v1.2 or later (Added in 7.34.0) 
       ```
   
 * Curl version **7.34.0** was released on **December 17 2013**. This is almost 
   10 years ago. 
   You need to update curl in php on server.
 *  Plugin Author [PayU GPO](https://wordpress.org/support/users/payusa/)
 * (@payusa)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/error-messae-curl/#post-16926730)
 * We added define CURL_SSLVERSION_TLSv1_2 when not exist in our SDK. New version
   of SDK is available in plugin 2.0.31, but if your curl not supported TLS 1.2 
   than communication with PayU it won’t be possible.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error messae – CURL’ is closed to new replies.

 * ![](https://ps.w.org/woo-payu-payment-gateway/assets/icon.svg?rev=3113860)
 * [PayU GPO Payment for WooCommerce](https://wordpress.org/plugins/woo-payu-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-payu-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-payu-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-payu-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-payu-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-payu-payment-gateway/reviews/)

## Tags

 * [constant](https://wordpress.org/support/topic-tag/constant/)
 * [curl](https://wordpress.org/support/topic-tag/curl/)
 * [undefined](https://wordpress.org/support/topic-tag/undefined/)

 * 3 replies
 * 3 participants
 * Last reply from: [PayU GPO](https://wordpress.org/support/users/payusa/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/error-messae-curl/#post-16926730)
 * Status: resolved