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 ??