Undefined index oauth_token in line 85 twitteroauth.php


#21

did you find the solution?


#22

I have downloaded the latest api of twitter from git. When i login using the credentials of my twitter account. I am being redirected to my twitter homepage instead of redirecting to my return url.This is the Link


#23

Interesting fix, but that did the trick for me.


#24

Hi there …

suddenly this error raised in the project when i used the twitter authentication API …

Notice: Undefined index: oauth_token in D:\tabara3\application\library\Twitter\twitteroauth.php on line 121
Call Stack

Time Memory Function Location

1 0.0005 380512 {main}( ) …\index.php:0
2 0.0996 6848096 Zend_Application->run( ) …\index.php:36
3 0.0997 6848096 Zend_Application_Bootstrap_Bootstrap->run( ) …\Application.php:366
4 0.0997 6848152 Zend_Controller_Front->dispatch( ) …\Bootstrap.php:97
5 0.1103 7299784 Zend_Controller_Dispatcher_Standard->dispatch( ) …\Front.php:954
6 0.1212 7629208 Zend_Controller_Action->dispatch( ) …\Standard.php:295
7 0.1213 7632424 User_LoginController->indexAction( ) …\Action.php:516
8 0.1384 9366968 User_Model_Auth->loginWithTwitter( ) …\LoginController.php:45
9 0.9922 9694992 TwitterOAuth->getAccessToken( ) …\Auth.php:246

This is the function that raise the error


function getAccessToken($oauth_verifier = FALSE) {
$parameters = array();
if (!empty($oauth_verifier)) {
$parameters[‘oauth_verifier’] = $oauth_verifier;
}

$request = $this->oAuthRequest($this->accessTokenURL(), 'GET', $parameters);  
$token = OAuthUtil::parse_parameters($request);
$this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
return $token;

}

Any solution known ??


#25

any help me


#26

Thank you for the link! It’s exactly same version. Is there debugged very of this one?


#27

Infact the page was getting die!


#28

Error

/*
Create a new TwitterOAuth object, and then
get a request token. The request token will be used
to build the link the user will use to authorize the
application.

You should probably use a try/catch here to handle errors gracefully
*/
$to = new TwitterOAuth($consumer_key, $consumer_secret);
$tok = $to->getRequestToken();

Warning: Missing argument 1 for TwitterOAuth::getRequestToken(), called in /home/a9712642/public_html/tech/twit/index.php on line 34 and defined in /home/a9712642/public_html/tech/twit/twitterOAuth/twitterOAuth.php on line 75

function getRequestToken($oauth_callback) {


#29

Hi. I’m same this bug.
Because I didn’t config OAUTH_CALLBACK
Hope helpful for you.


#30

dwd


#31

Me too facing this error, I am actually doing first time. If anyone can help me out in this it would be a great help,

Here is the error msg.

Notice: Undefined index: oauth_token in E:\xampp\htdocs\Twitter_login\index.php on line 12

Notice: Undefined index: port in E:\xampp\htdocs\Twitter_login\lib\EpiOAuth.php on line 147