• Error in code. In file /wp-content/plugins/cloudflare/src/WordPress/ClientActions.php on line 47:

    this line

    $zoneRequest = new Request(‘GET’, ‘zones/’, array(‘name’ => idn_to_ascii($this->wordpressAPI->getOriginalDomain(), IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46), array()));

    needs to either be this:

    $zoneRequest = new Request(‘GET’, ‘zones/’, array(‘name’ => idn_to_ascii($this->wordpressAPI->getOriginalDomain(), IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46)), array());

    or this:

    $zoneRequest = new Request(‘GET’, ‘zones/’, array(‘name’ => idn_to_ascii($this->wordpressAPI->getOriginalDomain(), IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46), array()), array());

    Since the __construct in Request requires 4 parameters. Or, you could do this too:

    public function __construct($method, $url, $parameters, $body=null)

  • The topic ‘Error in arguments to ClientActions.php on line 47:’ is closed to new replies.