Welcome Guest, Not a member yet? Register   Sign In
I use libraries tweet.php , but error like this. help me
#1

[eluser]bongbee[/eluser]
http://localhost/ELC/tweet_test/

i do it in my local computer, So I have error like this :

----------------------------------------------

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: libraries/tweet.php

Line Number: 205[/code]

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: libraries/tweet.php

Line Number: 205

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: libraries/tweet.php

Line Number: 478

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\ELC\system\core\Exceptions.php:170)

Filename: libraries/tweet.php

Line Number: 389
hi there

exception 'tweetException' with message '401 | Request Failed: - ' in D:\AppServ\www\ELC\application\libraries\tweet.php:205
Stack trace:
#0 D:\AppServ\www\ELC\application\libraries\tweet.php(172): tweetConnection->_getResponse('Resource id #42')
#1 D:\AppServ\www\ELC\application\libraries\tweet.php(110): tweetConnection->_addCurl('http://api.twit...', Array)
#2 D:\AppServ\www\ELC\application\libraries\tweet.php(502): tweetConnection->get('http://api.twit...', Array)
#3 D:\AppServ\www\ELC\application\libraries\tweet.php(483): tweetOauth->_httpRequest('GET', 'http://api.twit...')
#4 D:\AppServ\www\ELC\application\libraries\tweet.php(477): tweetOauth->_getRequestToken()
#5 D:\AppServ\www\ELC\application\libraries\tweet.php(389): tweetOauth->_getAuthorizationUrl()
#6 D:\AppServ\www\ELC\application\libraries\tweet.php(34): tweetOauth->login()
#7 D:\AppServ\www\ELC\application\controllers\tweet_test.php(31): tweet->login()
#8 D:\AppServ\www\ELC\system\core\CodeIgniter.php(288): Tweet_test->__construct()
#9 D:\AppServ\www\ELC\index.php(201): require_once('D:\AppServ\www\...')
#10 {main}





Please Help me!!!!!
:down:
#2

[eluser]isawhat[/eluser]
You need to post your code, without it no one can help you.
#3

[eluser]bongbee[/eluser]
please help me!!!
Code:
private function _getResponse($key = NULL)
        {
            if ( $key == NULL ) return FALSE;
            
            if ( isset($this->_responses[$key]) )
            {
                return $this->_responses[$key];
            }
            
            $running = NULL;
            
            do
            {
                $response = curl_multi_exec($this->_mch, $running_curl);
                
                if ( $running !== NULL && $running_curl != $running )
                {
                    $this->_setResponse($key);
                    
                    if ( isset($this->_responses[$key]) )
                    {
                        $response = new tweetResponseOauth( (object) $this->_responses[$key] );
                        
                        if ( $response->__resp->code !== 200 )
                        {
                            throw new tweetException($response->__resp->code.' | Request Failed: '.$response->__resp->data->request.' - '.$response->__resp->data->error);
                        }
                        
                        return $response;
                    }
                }
                
                $running = $running_curl;
                
            } while ( $running_curl > 0);
            
        }
Code:
private function _getAuthorizationUrl()
        {
            $token = $this->_getRequestToken();
            return $this->_authorizationUrl.'?oauth_token=' . $token->oauth_token;
        }
Code:
public function login()
        {
            if ( ($this->_getAccessKey() === NULL || $this->_getAccessSecret() === NULL) )
            {
                header('Location: '.$this->_getAuthorizationUrl());
                return;
            }
            
            return $this->_checkLogin();
        }




Theme © iAndrew 2016 - Forum software by © MyBB