• ResolvedModerator Steven Stern (sterndata)

    (@sterndata)


    Volunteer Forum Moderator

    I have several WP sites on my server, but only one running 4.6 alpha. This one reports the following when trying to run a scan:

    Scan terminated with error: There was an error connecting to the the Wordfence scanning servers: cURL error 3: malformed

    Alpha version is 4.6-alpha-37518).

    https://wordpress.org/plugins/wordfence/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi sterndata,

    Wordfence has a fallback if curl is not available. So it must be available but failing. This is either a bug with WordPress, or Wordfence will need to be changed before the next release. I will pass this on to the dev team and see what they say.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    thanks. I’ll mark this as resolved for now.

    still happening with 4.6-alpha-37597

    I am having this issue and I am on the public wordpress plugin repo/market place. Is there a correction to this issue that one can apply?

    I am getting the error when attempting to acquire the free API key:
    “we encountered a problem fetching the free key: There was an error connecting to the the Wordfence scanning servers: cURL error 3: malformed”

    (I made an account to post this, so hope it helps)

    After digging with debugger for a few hours. I found the issue in a new part of WP.

    In: wp-includes/class-reuqests.php
    Lines: 593-597

    if ($options['idn'] !== false) {
    			$iri = new Requests_IRI($url);
    			$iri->host = Requests_IDNAEncoder::encode($iri->ihost);
    			$url = $iri->uri;
    		}

    In class Request_IRI, $this->uri seems to be never set.

    Dirty fix:

    if ($options['idn'] !== false) {
    			$iri = new Requests_IRI($url);
    			$iri->host = Requests_IDNAEncoder::encode($iri->ihost);
    //			$url = $iri->uri;
    		}

    And wordfence works.
    So it’s either not a wordfence bug. Or somehow the idn option needs to be false for the 4.6.x version.

    Either way, i’ll look into it better later and make a bug report.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    scvwebfire: Great work!

    Plugin Author WFMattR

    (@wfmattr)

    Hi all,

    There is a change coming in the next Wordfence version to prevent this error message, which will be available before WordPress 4.6 is out.

    @sterndata: I saw that WFAsa already caught up with you on slack, but thought I’d reply here too, since other users may find this post by searching. Your post from the WP alpha did make it in our system, so thanks for the early warning!

    -Matt R

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Curl error’ is closed to new replies.