PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Call to undefined function curl_init() in .../api/HttpClient.php on line 75

  1. What should I find and what should I edit in HttpClient.php on line 75 ?

    private function _init($url,$token)
    	{
    		$this->_url = $url;
    		$this->_token = $token;
    		//init connection
    {75}		$this->_curlConn = curl_init($this->_url);
    		curl_setopt($this->_curlConn, CURLOPT_HEADER, false);
    		curl_setopt($this->_curlConn, CURLOPT_NOBODY, false);
    		curl_setopt($this->_curlConn, CURLOPT_RETURNTRANSFER, true);
    		curl_setopt($this->_curlConn, CURLOPT_FOLLOWLOCATION, true);
    		curl_setopt($this->_curlConn, CURLOPT_USERPWD, $this->_token);
    		curl_setopt($this->_curlConn, CURLOPT_TIMEOUT, 15);
    		curl_setopt($this->_curlConn, CURLOPT_SSL_VERIFYPEER, FALSE); // Validate SSL certificate
    		curl_setopt($this->_curlConn, CURLOPT_SSL_VERIFYHOST, FALSE);
    		curl_setopt($this->_curlConn, CURLOPT_USERAGENT, "FreshBooks API AJAX tester 1.0");
    		return $this;
    	}

    This add-on is not working for me :((

    Posted 11 years ago on Friday February 15, 2013 | Permalink
  2. Don't edit any of the plugin files: it will not help you.

    Please contact your host at it appears that cURL is not enabled on your server in your PHP configuration. The Freshbooks add-on will not work without cURL since that's how the add-on sends the information to Freshbooks.

    Posted 11 years ago on Saturday February 16, 2013 | Permalink