Revision history [back]
linkedin error after changing site URL
We were testing ASKBOT on an internal site, and changed it (with a redirect) after some testing. We made changes in setting.py to reflect the URL. Google, OpenID, Facebook, Yahoo all still work (we have been unsuccessful in getting Twitter to work yet). LinkedIn worked, but once we made the URL change it no longer works. I even made a new LinkedIn site and changed the keys in Askbot, but it still isn't working. Somewhere it appears it is still referencing the URL, etc. from the old site (ssdt-web-13). What do I need to do in order to get this to work again?
Some of the error message:
local variable 'oauth_provider_name'
referenced before assignment
Request Method: GET
Request URL: http://ssdt-web-13.nwoca.org/account/signin/complete-oauth/?oauth_token
=67cc64e9-ca38-429f-b3a7-f45c0247248c&oauth_verifier
=98707
Django Version: 1.3.1
Exception Type: UnboundLocalError
Exception Value: local variable 'oauth_provider_name'
referenced before assignment
Exception Location: /usr/local/lib/python2.6/dist-packages/askbot
/deps/django_authopenid
/views.py in complete_oauth_signin
, line 273
Python Executable: /usr/bin/python
Python Version: 2.6.5
Python Path: ['/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2'
,
'/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/dist-packages',
'/usr/local/lib/python2.6/dist-packages'
,
'/',
'/forum',
'/usr/local/lib/python2.6/dist-packages
/askbot/deps']
AND from the META data in the error message:
wsgi.input
HTTP_HOST 'ssdt-web-13.nwoca.org'
mod_wsgi.callable_object 'application'
TRACEBACK:
Environment:
Request Method: GET
Request URL: http://ssdt-web-13.nwoca.org/account/signin/complete-oauth/?oauth_token=67cc64e9-ca38-429f-b3a7-f45c0247248c&oauth_verifier=98707
Django Version: 1.3.1
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.humanize',
'django.contrib.sitemaps',
'askbot',
'askbot.deps.django_authopenid'
,
'south',
'askbot.deps.livesettings',
'keyedcache',
'robots',
'django_countries',
'djcelery',
'djkombu',
'followit']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'askbot.middleware.anon_user.
ConnectToSessionMessagesMiddleware',
'askbot.middleware.forum_mode.
ForumModeMiddleware,
'askbot.middleware.pagesize.QuestionsPageSizeMiddleware',
'askbot.middleware.cancel.CancelActionMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware'
,
'askbot.middleware.spaceless.SpacelessMiddleware')
Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py"
in get_response
111. response = callback(request, callback_args
, *callback_kwargs
)
File"/usr/local/lib/python2.6/dist-packages/askbot/deps/django_authopenid/views.py"
in complete_oauth_signin
273. ) % { 'provider': oauth_provider_name
}
Exception Type: UnboundLocalError at /account/signin/complete-oauth/
Exception Value: local variable 'oauth_provider_name'
referenced before assignment