Saturday, July 21, 2012
php twitter: undefined index: oauth_token_secret
The problem is that there is an error in the request so you don't get oauth_token_secret in the respond from Twitter. Instead you get an error message.
Turn of php notice by typing the following at the top of the page
error_reporting(E_ALL ^ E_NOTICE);
print_r() the $request_token or $request variable to the screen. It will show you the type of error returned by twitter
print_r($request_token );
An example of the error message when you print the array is "Desktop applications only support the oauth_callback value 'oob' /oauth/request_token?oauth_callback=...."
Go to your app settings on twitter and make the correct settings.
In the case of the above error, set the callback url to the one you send in the request and try again!!
Good Luck.
Tuesday, July 17, 2012
svnserve: Can't bind server socket: Address already in use
I was done setting up svn and i ran "svnserve -d -r path" and got the following:
svnserve: Can't bind server socket: Address already in use.
In my case I had previously set up svn which was already listening on the default port 3690.
I solved this simply by looking for that svn process and killing it.
Grep it on commandline with;
ps -ef | grep svnserve
This will show the running svn process. Just get the processID/number and kill it and you should be set..
e.g sudo kill processID.
svnserve: Can't bind server socket: Address already in use.
In my case I had previously set up svn which was already listening on the default port 3690.
I solved this simply by looking for that svn process and killing it.
Grep it on commandline with;
ps -ef | grep svnserve
This will show the running svn process. Just get the processID/number and kill it and you should be set..
e.g sudo kill processID.
Subscribe to:
Posts (Atom)