#1 new
Adam Jenkins

Hash not used at all in component / curl error

Reported by Adam Jenkins | March 17th, 2011 @ 02:22 PM


I noticed that on line 127 you have a curl issue where you need to put $this->__curl instead of $this->curl.

You need to put the following from line 126 just to get the component to not error

            if($this->hash) {
            curl_setopt($this->__curl, CURLOPT_USERPWD, $this->username . ':' . $this->password);
    } elseif($this->username) {
        curl_setopt($this->__curl, CURLOPT_USERPWD, $this->username . ':' . $this->password);
    } else {
        $this->error = 'Missing authentication information (api hash or user/pass)';
        return FALSE;

Also i noticed that even though you set the hash param its not used at all

Kind Regards

Adam Jenkins

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A CakePHP component to interface with the cPanel API

Shared Ticket Bins

People watching this ticket