PHP Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'curl_setopt', because its argument '$option' content (81) matched the rule 'Please don't turn CURLOPT_SSL_VERIFYHOST off.' Print

  • PHP Fatal error, snuffleupagus, Please don't turn CURLOPT_SSL_VERIFYHOST off
  • 4

Kindly follow the below steps if you find the below error.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is an example of the error that has been triggered while loading the wordpress site.

~~~

[05-Oct-2021 05:01:44 UTC] PHP Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'curl_setopt', because its argument '$option' content (81) matched the rule 'Please don't turn CURLOPT_SSL_VERIFYHOST off.' in /home/jubayerw/public_html/wp-includes/Requests/Transport/cURL.php on line 152

~~~

Kindly find the path for the file "cURL.php" from the above error.

 

Now the file path on the above error is " /home/jubayerw/public_html/wp-includes/Requests/Transport/cURL.php"

 

Take a backup of the file "cURL.php".
~~~
/home/jubayerw/public_html/wp-includes/Requests/Transport/cURL.php--backup
~~~

Changed the following lines in the "cURL.php".

"vi cURL.php"

:set nu --> used to view the line numbers.

From
~~~
152 curl_setopt($this->handle, CURLOPT_SSL_VERIFYHOST, 0);
153 curl_setopt($this->handle, CURLOPT_SSL_VERIFYPEER, 0);
161 curl_setopt($this->handle, CURLOPT_SSL_VERIFYHOST, 0);
~~~

To
~~~
152 curl_setopt($this->handle, CURLOPT_SSL_VERIFYHOST, 1);
153 curl_setopt($this->handle, CURLOPT_SSL_VERIFYPEER, 1);
161 curl_setopt($this->handle, CURLOPT_SSL_VERIFYHOST, 1);

~~~

:wq --> Save the file.

 

Now the issue will be fixed for the website.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

--Roshan Murugan--


Was this answer helpful?

« Back

Powered by WHMCompleteSolution