First time here? Check out the FAQ!

junior123's profile - activity

2016-01-08 04:00:28 -0500 received badge Teacher ( source )
2016-01-08 04:00:28 -0500 received badge Self-Learner ( source )
2016-01-08 04:00:05 -0500 received badge Notable Question (source)
2015-05-10 05:29:05 -0500 received badge Popular Question (source)
2013-11-23 05:20:40 -0500 received badge Popular Question (source)
2013-11-23 05:20:40 -0500 received badge Notable Question (source)
2013-09-02 22:13:14 -0500 received badge Notable Question (source)
2013-06-28 02:17:51 -0500 received badge Famous Question (source)
2013-06-10 02:56:50 -0500 received badge Famous Question (source)
2013-06-03 04:50:16 -0500 received badge Famous Question (source)
2013-05-31 17:08:25 -0500 received badge Famous Question (source)
2013-05-04 12:28:15 -0500 received badge Popular Question (source)
2013-04-11 15:47:47 -0500 received badge Nice Question (source)
2013-04-04 15:03:13 -0500 received badge Famous Question (source)
2013-03-21 05:07:12 -0500 asked a question Can user profile photo be taken from Facebook Sign-In?

If a user signs in via facebook, can the profile photo be pulled from the facebook profile photo?

2013-03-13 00:29:47 -0500 asked a question Facebook Sign-In: Can Screen Name and Email be auto-populated?

Right now, with facebook sign-in, after the user enters his or her facebook login credentials, a screen comes up, asking for screen name and email - can these two be auto populated so the user can just click on to the next screen, or change if required?

2013-03-12 10:13:33 -0500 asked a question local variable 'oauth_provider_name' referenced before assignment

facebook and twitter sign-in give the following error:

"local variable 'oauth_provider_name' referenced before assignment"

full trace below:

    UnboundLocalError: local variable 'oauth_provider_name' referenced before assignment
/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py TIME: 2013-03-12 10:03:58,558 MSG: base.py:handle_uncaught_exception:215 Internal Server Error: /account/signin/complete-oauth2/
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/askbot/deps/django_authopenid/views.py", line 281, in complete_oauth2_signin
    if csrf_token is None or csrf_token != request.session.pop('oauth2_csrf_token'):
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/backends/base.py", line 54, in pop
    return self._session.pop(key, *args)
KeyError: 'oauth2_csrf_token'

i have tried the following already:

  1. syncing the time, and clearing cache and cookies on the client machine, but error persists.
  2. I have memcached on the server. cleared that as well. Restarted apache. Error persists
  3. Yahoo and Google Sign-Ins are working fine. FB and twitter were also working till recently.
2013-03-12 00:36:45 -0500 answered a question UndefinedError: 'settings' is undefined
/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py TIME: 2013-03-12 00:33:50,722 MSG: base.py:handle_uncaught_exception:215 Internal Server Error: /robots.txt

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 136, in get_response response = response.render() File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 104, in render self._set_content(self.rendered_content) File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 81, in rendered_content content = template.render(context) File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render return self._render(context) File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render return self.nodelist.render(context) File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render bit = self.render_node(node, context) File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 837, in render_node return node.render(context) File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 280, in render if match: File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 130, in __nonzero__ iter(self).next() File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 118, in _result_iter self._fill_cache() File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 875, in _fill_cache self._result_cache.append(self._iter.next()) File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 291, in iterator for row in compiler.results_iter(): File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 763, in results_iter for rows in self.execute_sql(MULTI): File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 818, in execute_sql cursor.execute(sql, params) File "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py", line 40, in execute return self.cursor.execute(sql, params) File "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute return self.cursor.execute(query, args) DatabaseError: relation "robots_rule" does not exist LINE 1: ...s_rule"."robot", "robots_rule"."crawl_delay" FROM "robots_ru...

2013-03-12 00:35:25 -0500 commented question UndefinedError: 'settings' is undefined

I see the following in askbot log: (added as answer for lack of space here)

2013-03-11 00:49:18 -0500 asked a question UndefinedError: 'settings' is undefined

I get this error whenever someone tries to signin to the site - using facebook, twitter or google log-ins. I have done the changes to settings.py suggested in a different thread, but did not help.

Sometimes the login works fine (even though this error is in the log) but sometimes user sees "Internal error occurred" - pls help.

Here is another observation: If i restart apache immediately after I see this error, things seem to work fine for some time, but then this problem starts again.

I have memcached installed, I dont know if that has got to do anything with this, I have confirmed that memcached is working fine, by doing the somekey someval thing.

Thanks

 [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47] mod_wsgi (pid=26844): Exception occurred processing WSGI script '/home/ubuntu/drdoubt/django.wsgi'.
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47] Traceback (most recent call last):
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 241, in __call__
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]     response = self.get_response(request)
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 179, in get_response
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 228, in handle_uncaught_exception
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]     return callback(request, **param_dict)
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]   File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py", line 91, in _wrapped_view
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]     response = view_func(request, *args, **kwargs)
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]   File "/usr/local/lib/python2.7/dist-packages/django/views/defaults.py", line 33, in server_error
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]     return http.HttpResponseServerError(t.render(Context({})))
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]   File "/usr/local/lib/python2.7/dist-packages/coffin/template/__init__.py", line 55, in render
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]     return super(Template, self).render(**context)
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47]     return self.environment.handle_exception(exc_info, True)
    [Mon Mar 11 00:37:35 2013] [error] [client 66.249.74.47 ...
(more)
2013-03-09 11:00:56 -0500 received badge Editor ( source )
2013-03-09 10:48:18 -0500 answered a question Will twitter sign-in only work if debug=true?

Evgeny, I was basically following your response here - http://askbot.org/en/question/3182/any-way-to-twitter-login/

"Twitter login worked for me - just tested. Does not work for you?

Are you not kicked by mistake to askbot.org on successful authentication? If so - please change the base url parameter in the "URLS" section.

Secondly the error might occur if your server time is out of sync with the world and to fix that one can run: ntpdate us.pool.ntp.org as root (the ntpdate tool may need to be installed).

Finally - just enable debug mode in the settings.py by changing DEBUG = False to DEBUG = True."

That is why I changed it, and that is when it worked !

Update: But now I changed debug back to false and twitter sign-in works !

2013-03-09 10:38:47 -0500 asked a question Will twitter sign-in only work if debug=true?

I was able to get twitter sign-in to work only after changing debug=true in settings.py - as a result now i have a message on top of website - "Debug mode is on, do not use it in production. To turn it off, use DEBUG = False in your settings.py file."

Will twitter signin work only if debug=true? if yes, how do i get rid of this message?

2013-03-09 05:39:32 -0500 answered a question Google Sign-In Does Not Work

I had a lot of other issues related to caching as well, so I went ahead and installed memcached. Which seems to have solved this problem.

2013-03-08 23:41:35 -0500 asked a question Google Sign-In Does Not Work

If I click on google in the sign-in page, it takes me to the Google log in page - it says "signing into your site with Google Id" and all that - but after I sign-in from the google box, i am returned automatically to a page that asks for screen name and email. that results in me going back to the exact same askbot sign in page again (with all google, yahoo logos in it)

All help would be appreciated. Steps to reproduce:

  1. Click on Sign-In
  2. Click on Google icon
  3. Provide any valid Google credentials
  4. You will be returned to a screen asking for Screen Name and email
  5. Provide details
  6. You will go back to screen shown in step 2 i.e. the same screen with Google Yahoo open id logos in it
2013-03-07 15:56:19 -0500 received badge Student (source)
2013-03-07 01:20:19 -0500 answered a question On syncdb getting TypeError: Item in ``from list'' not a string

Thanks a lot Evgeny, that worked.

2013-03-07 01:18:53 -0500 received badge Scholar ( source )
2013-03-06 23:56:29 -0500 asked a question On syncdb getting TypeError: Item in ``from list'' not a string

Have been struggling for two days with this issue: after a pip install of askbot, and setup etc, when i run python manage.py syncdb, i get an error saying

WARNING!!! You are using a 'locmem' (local memory) caching backend,
which is OK for a low volume site running on a single-process server.
For a multi-process configuration it is neccessary to have a production
cache system, such as redis or memcached.

With local memory caching and multi-process setup you might intermittently
see outdated content on your site.

TypeError: Item in ``from list'' not a string

It is the typeError that does not go away - i googled for hours together and found that the issue could be a force_str so now my settings.py is full of force_str wherever i could find a string but of no use. The TypeError just does not go away.

PLS HELP !!