PHP Error

Undefined index: oauth_token

/var/www/protected/modules/social/components/twitter/TwitterOAuth.php(82)

70   /**
71    * Get a request_token from Twitter
72    *
73    * @returns a key/value array containing oauth_token and oauth_token_secret
74    */
75   function getRequestToken($oauth_callback = NULL) {
76     $parameters = array();
77     if (!empty($oauth_callback)) {
78       $parameters['oauth_callback'] = $oauth_callback;
79     } 
80     $request = $this->oAuthRequest($this->requestTokenURL(), 'GET', $parameters);
81     $token = OAuthUtil::parse_parameters($request);
82     $this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
83     return $token;
84   }
85 
86   /**
87    * Get the authorize URL
88    *
89    * @returns a string
90    */
91   function getAuthorizeURL($token, $sign_in_with_twitter = TRUE) {
92     if (is_array($token)) {
93       $token = $token['oauth_token'];
94     }

Stack Trace

#0
+
 /var/www/protected/modules/social/worklets/twitter/WSocialTwitterLogin.php(9): TwitterOAuth->getRequestToken("http://www.inspir.ly/de/user/login")
04     public function taskConfig()
05     {
06         parent::taskConfig();
07 
08         $connection = wm()->get('social.twitter.helper')->oAuth();
09         $request_token = $connection->getRequestToken(aUrl('/user/login'));
10 
11         $_SESSION['oauth_token'] = $token = $request_token['oauth_token'];
12         $_SESSION['oauth_token_secret'] = $request_token['oauth_token_secret'];
13         
14         if ($connection->http_code == 200) {
#2
+
 /var/www/framework/uniprogy/framework/worklets/UWorklet.php(94): call_user_func_array(array(WSocialTwitterLogin, "taskconfig"), array())
89         if(method_exists($this,'before'.$name))
90             if(($before = call_user_func_array(array($this,'before'.$name),$parameters))!==null)
91                 return $before;
92         // worklet task
93         $result = method_exists($this,'task'.$name)
94             ? call_user_func_array(array($this,'task'.$name),$parameters)
95             : parent::__call('task'.$name,$parameters);
96         // worklet after            
97         $parameters['result'] = $result;
98         if(method_exists($this,'after'.$name))
99             if(($after = call_user_func_array(array($this,'after'.$name),$parameters))!==null)
#3
+
 /var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(158): UWorklet->__call("config", array())
153     /**
154      * Worklet builder.
155      */
156     public function taskBuild()
157     {
158         $this->config();
159     }
160     
161     /**
162      * Configures worklet.
163      */
2024-03-29 07:23:11 Apache/2.4.10 (Debian) Yii Framework/1.1.8