token undefined in oauthlogin -> not sent

197 views
Skip to first unread message

SuperSambo

unread,
May 17, 2012, 3:12:43 PM5/17/12
to yourtwap...@googlegroups.com
hi,
I got some problems when I try to sign in with twitter. twitter says there is no token passed https://twitter.com/oauth/authenticate?oauth_token= (I don't know If you can see this message as I do)

First I thought they just don't accept the token because I use yourtwapperkeeper on another server with the same user (but another app/token), but I created another user and a new app and it doesnt work either.

So now I noticed that yourtwapperkeeper really seems not to send the token
this is the apache log

[Thu May 17 20:26:28 2012] [error] PHP Notice:  Undefined index: oauth_token in /var/www/supersambo/twittercrawl/oauthlogin.php on line 35
[Thu May 17 20:26:28 2012] [error] PHP Notice:  Undefined index: oauth_token_secret in /var/www/supersambo/twittercrawl/oauthlogin.php on line 36
[Thu May 17 20:35:51 2012] [error] PHP Notice:  Undefined index: results in /var/www/supersambo/twittercrawl/index.php on line 102
[Thu May 17 20:35:51 2012] [error] PHP Warning:  Invalid argument supplied for foreach() in /var/www/supersambo/twittercrawl/index.php on line 102
[Thu May 17 20:44:53 2012] [error] PHP Notice:  Undefined index: results in /var/www/supersambo/twittercrawl/index.php on line 102
[Thu May 17 20:44:53 2012] [error] PHP Warning:  Invalid argument supplied for foreach() in /var/www/supersambo/twittercrawl/index.php on line 102
[Thu May 17 20:44:56 2012] [error] PHP Notice:  Undefined index: oauth_token in /var/www/supersambo/twittercrawl/twitteroauth.php on line 82
[Thu May 17 20:44:56 2012] [error] PHP Notice:  Undefined index: oauth_token_secret in /var/www/supersambo/twittercrawl/twitteroauth.php on line 82
[Thu May 17 20:44:56 2012] [error] PHP Notice:  Undefined index: oauth_token in /var/www/supersambo/twittercrawl/oauthlogin.php on line 35
[Thu May 17 20:44:56 2012] [error] PHP Notice:  Undefined index: oauth_token_secret in /var/www/supersambo/twittercrawl/oauthlogin.php on line 36

so what am I doing wrong?


best regards
stephan

John O'Brien

unread,
May 17, 2012, 3:32:58 PM5/17/12
to yourtwap...@googlegroups.com
usually I have seen stuff like this when JSON is not available.  Which version of PHP?

John

SuperSambo

unread,
May 17, 2012, 3:43:31 PM5/17/12
to yourtwap...@googlegroups.com

PHP Version is 5.4.3-4


http://158.255.212.46/supersambo/twittercrawl/info.php


stephan




Am Donnerstag, 17. Mai 2012 21:32:58 UTC+2 schrieb John OBrien:
usually I have seen stuff like this when JSON is not available.  Which version of PHP?

John

SuperSambo

unread,
Jun 1, 2012, 4:46:30 AM6/1/12
to yourtwap...@googlegroups.com
Hi,
I finally figured out the problem! The server clock wasnt set correctly which led to an incorrect token request, since a timestamp is included (as I understand it). Now it works fine.

By the way the Twitter message is kind of misleading because it says no token sent, which is not the case. I suppose it schould say something like token not accepted etc.

However thank for the great tool again!

regards
stephan

Peter Mechant

unread,
Oct 1, 2012, 2:40:04 AM10/1/12
to yourtwap...@googlegroups.com
hey SuperSambo

i seem to be having the same problem (https://twitter.com/oauth/authenticate?oauth_token=) with twitter saying: 

Whoa there!

There is no request token for this page. That's the special key we need from applications asking to use your Twitter account. Please go back to the site or application that sent you here and try again; it was probably just a mistake.


Any pointers on how to set the server clock correctly?


thanks!

SuperSambo

unread,
Oct 1, 2012, 3:24:43 AM10/1/12
to yourtwap...@googlegroups.com
Hi,
I think it was NTP I used to get it work. As I remember I just had to install it, it updated automaticly and afterwords  the oauthlogin was successful.

ww.ntp.org
https://help.ubuntu.com/10.04/serverguide/NTP.html

regars

Peter Mechant

unread,
Oct 2, 2012, 2:56:19 AM10/2/12
to yourtwap...@googlegroups.com
thanks! i tinkered with the date timestamp of the server and succeeded in getting the yTK oauthlogin running again 

SuperSambo

unread,
May 21, 2013, 4:47:10 AM5/21/13
to yourtwap...@googlegroups.com
Hi,
I tried to install yourtwapperkeeper on another machine an ran into the same problem I described here one year ago. Last time I was able to solve this by updating the server clock, but now this isn't working either

the apache error.log shows quite the same messages with some little differences in the line numbering. I suppose this is due to your last update:

[Tue May 21 10:39:26 2013] [error] [client 131.130.84.252] PHP Notice:  Undefined index: access_token in /home/supersambo/www/twapperkeeper/index.php on line 106
[Tue May 21 10:39:29 2013] [error] [client 131.130.84.252] PHP Notice:  Undefined index: oauth_token in /home/supersambo/www/twapperkeeper/twitteroauth.php on line 82, referer: http://schloegl.net/supersambo/twapperkeeper/
[Tue May 21 10:39:29 2013] [error] [client 131.130.84.252] PHP Notice:  Undefined index: oauth_token_secret in /home/supersambo/www/twapperkeeper/twitteroauth.php on line 82, referer: http://schloegl.net/supersambo/twapperkeeper/
[Tue May 21 10:39:29 2013] [error] [client 131.130.84.252] PHP Notice:  Undefined index: oauth_token in /home/supersambo/www/twapperkeeper/oauthlogin.php on line 35, referer: http://schloegl.net/supersambo/twapperkeeper/
[Tue May 21 10:39:29 2013] [error] [client 131.130.84.252] PHP Notice:  Undefined index: oauth_token_secret in /home/supersambo/www/twapperkeeper/oauthlogin.php on line 36, referer: http://schloegl.net/supersambo/twapperkeeper/
 
any idea?

thanks a lot,
stephan
Reply all
Reply to author
Forward
0 new messages