Topic on Project:Support desk

SOLVED: PHP Notice: curl_setopt_array(): CURLOPT_SSL_VERIFYHOST set to true

4
Benfell (talkcontribs)

Hello,

This is on Arch Linux. The problem has appeared at least since I upgraded to 1.20.2, possibly since 1.20.1--I don't recall attempting to upload any photos while I was on that version. Before that, I was on 1.19.x.

The message in the subject appears in Apache's error log. The full version is:

PHP Notice:  curl_setopt_array(): CURLOPT_SSL_VERIFYHOST set to true which disables common name validation (setting CURLOPT_SSL_VERIFYHOST to 2 enables common name validation) in /home/www/drupal-7.17/mediawiki-1.20.2/includes/HttpFunctions.php on line 749

But it was the appearance of a message that mediawiki had failed setting curl opts on the upload file screen that led me to look at the error log.

Now for the versions:

Product 	Version
MediaWiki 	1.20.2
PHP 	5.4.9 (apache2handler)
MySQL 	5.5.28

The site is https://parts-unknown.org/wiki. The same thing is happening with https://disunitedstates.org/wiki. They're both hosted on the same Linode.

Thanks!

Benfell (talkcontribs)

Additional information:

When I go to a page that is for uploaded media, I get an "Internal error":

[2ff3b7db] 2012-12-14 21:57:10: Fatal exception of type MWException
PleaseStand (talkcontribs)

First, try disabling Extension:MultiUpload. It is known to be incompatible with MediaWiki 1.20. If that doesn't fix your problem with File pages, try disabling or upgrading other extensions as well.

Second, if the PHP notices still happen, you can try applying this patch; tell me whether it fixes your problem. (You can apply the patch by saving it to a file called "patchfile", changing to the directory MediaWiki is installed in, and running patch -p1 < patchfile.)

Benfell (talkcontribs)

Yay!

Disabling extensions was ineffective (but it is just as well I disabled a bunch of them anyway), but the patch worked.

Thank you very much!

Reply to "SOLVED: PHP Notice: curl_setopt_array(): CURLOPT_SSL_VERIFYHOST set to true"