Ask Your Question

DavyLandman's profile - activity

2020-09-25 22:57:23 -0500 received badge  Popular Question (source)
2016-04-09 09:28:59 -0500 received badge  Good Answer (source)
2015-04-26 14:07:57 -0500 received badge  Famous Question (source)
2014-07-13 02:09:24 -0500 received badge  Notable Question (source)
2012-09-25 06:48:58 -0500 received badge  Popular Question (source)
2012-08-15 10:23:20 -0500 received badge  Nice Answer (source)
2012-08-14 22:35:50 -0500 received badge  Famous Question (source)
2012-03-07 04:49:12 -0500 asked a question signin bug?

I've been getting mails about exceptions in the /account/signing/complete/ action.

Traceback (most recent call last):

 File "/opt/python-2.7.2/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/srv/www/vhosts/askbot/askbot/deps/django_authopenid/views.py", line 670, in complete_signin
   return_to = get_url_host(request) + reverse('user_complete_signin')

 File "/srv/www/vhosts/askbot/askbot/deps/django_authopenid/views.py", line 183, in complete
   openid_response

 File "/srv/www/vhosts/askbot/askbot/deps/django_authopenid/views.py", line 706, in signin_success
   redirect_url = next_url

 File "/srv/www/vhosts/askbot/askbot/deps/django_authopenid/views.py", line 762, in finalize_generic_signin
   user_identifier=user_identifier

 File "/srv/www/vhosts/askbot/askbot/deps/django_authopenid/views.py", line 204, in decorated
   return func(request, *args, **kwargs)

 File "/opt/python-2.7.2/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
   response = view_func(request, *args, **kwargs)

 File "/srv/www/vhosts/askbot/askbot/deps/django_authopenid/views.py", line 904, in register
   return render_into_skin('authopenid/complete.html', data, request)

 File "/srv/www/vhosts/askbot/askbot/skins/loaders.py", line 124, in render_into_skin
   template = get_template(template, request)

 File "/srv/www/vhosts/askbot/askbot/skins/loaders.py", line 116, in get_template
   return skin.get_template(template)

 File "/opt/python-2.7.2/lib/python2.7/site-packages/jinja2/environment.py", line 719, in get_template
   return self._load_template(name, self.make_globals(globals))

 File "/opt/python-2.7.2/lib/python2.7/site-packages/jinja2/environment.py", line 693, in _load_template
   template = self.loader.load(self, name, globals)

 File "/opt/python-2.7.2/lib/python2.7/site-packages/jinja2/loaders.py", line 127, in load
   code = environment.compile(source, name, filename)

 File "/opt/python-2.7.2/lib/python2.7/site-packages/jinja2/environment.py", line 493, in compile
   self.handle_exception(exc_info, source_hint=source)

 File "/srv/www/vhosts/askbot/askbot/skins/common/templates/authopenid/complete.html", line 33, in template
   register new {{provider}} account info, see {{gravatar_faq_url}}{% endtrans %}

TemplateSyntaxError: Encountered unknown tag 'endtrans'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.

not sure if this is related, but they seem to occur when someone uses a yahoo openid?

GET:<QueryDict: {u'openid.op_endpoint': [u'https://open.login.yahooapis.com/openid/op/auth'],
2012-03-01 13:57:50 -0500 answered a question list of askbot sites

Ask Rascal: The Q&A site for our meta programming language.

2012-03-01 04:17:10 -0500 received badge  Necromancer (source)
2012-03-01 03:40:09 -0500 answered a question What to improve in the askbot theme?

I would advice changing the "Yvonne Kaffeesatz" font, especially on mac's it looks strange.

See the screenshot:

strange fonts

Somehow the rendering (in Chrome) is stange (height is more than width) but if I look on Windows (in Chrome) it looks a lot better.

But after upgrading, all my mac users complained, so I suggest finding a different font. Perhaps not using the (performance intensive) webfonts but just one of the regular fonts?

2012-02-28 10:21:43 -0500 commented question DatabaseError: column askbot_thread.text_search_vector does not exist

yes DROP FUNCTION get_dependent_answers_tsv(question_id integer); seemed to solve it..

2012-02-28 09:37:35 -0500 commented question DatabaseError: column askbot_thread.text_search_vector does not exist

I'll give it a shot.. I'm also getting messages when posting a comment: DatabaseError: relation "answer" does not exist LINE 1: SELECT concat_tsvectors(text_search_vector) FROM answer WHER... ^ QUERY: SELECT concat_tsvectors(text_search_vector) FROM answer WHERE question_id = 103 AND deleted=false CONTEXT: PL/pgSQL function "get_dependent_answers_tsv" line 9 at FOR over EXECUTE statement PL/pgSQL function "thread_update_trigger" line 3 at assignment SQL statement

2012-02-28 09:27:03 -0500 commented question DatabaseError: column askbot_thread.text_search_vector does not exist

postgres (PostgreSQL) 9.1.1

2012-02-28 09:25:40 -0500 commented question DatabaseError: column askbot_thread.text_search_vector does not exist

it's a clean clone from github. I do not know about the line numbers reported but if I open the file and check line 172 is shows the same as in github.

2012-02-28 09:04:14 -0500 commented answer DatabaseError: column askbot_thread.text_search_vector does not exist

I've added the output of the .plsql file to the question.

2012-02-28 09:03:48 -0500 received badge  Editor (source)
2012-02-28 08:59:55 -0500 commented answer DatabaseError: column askbot_thread.text_search_vector does not exist

askbot=&gt; CREATE LANGUAGE plpgsql; ERROR: language "plpgsql" already exists

2012-02-28 08:02:32 -0500 asked a question DatabaseError: column askbot_thread.text_search_vector does not exist

Hi Guys,

I recently upgraded from 0.29 to the latest git-master and everything worked fine (love the migrations!)

but some pages (example: questions/scope:all/sort:activity-desc/query:dissapear/page:3/) generate a 500 server error with the following message:

 VariableDoesNotExist: Failed lookup for key [request] in u'[{}]'

but if I look in the askbot.log I actually see this error occuring:

/opt/python-2.7.2/lib/python2.7/site-packages/django/core/handlers/base.py TIME: 2012-02-28 14:42:10,377 MSG: base.py:handle_uncaught_exception:209 Internal Server Error: /questions/scope:all/sort:activity-desc/query:dissapear/page:3/
Traceback (most recent call last):
  File "/opt/python-2.7.2/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/srv/www/vhosts/askbot/askbot/views/readers.py", line 80, in questions
    if paginator.num_pages < search_state.page:
  File "/opt/python-2.7.2/lib/python2.7/site-packages/django/core/paginator.py", line 60, in _get_num_pages
    if self.count == 0 and not self.allow_empty_first_page:
  File "/opt/python-2.7.2/lib/python2.7/site-packages/django/core/paginator.py", line 48, in _get_count
    self._count = self.object_list.count()
  File "/opt/python-2.7.2/lib/python2.7/site-packages/django/db/models/query.py", line 334, in count
    return self.query.get_count(using=self.db)
  File "/opt/python-2.7.2/lib/python2.7/site-packages/django/db/models/sql/query.py", line 401, in get_count
    number = obj.get_aggregation(using=using)[None]
  File "/opt/python-2.7.2/lib/python2.7/site-packages/django/db/models/sql/query.py", line 367, in get_aggregation
    result = query.get_compiler(using).execute_sql(SINGLE)
  File "/opt/python-2.7.2/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 735, in execute_sql
    cursor.execute(sql, params)
  File "/opt/python-2.7.2/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
    return self.cursor.execute(query, args)
DatabaseError: column askbot_thread.text_search_vector does not exist
LINE 1: ...estion'  AND "askbot_post"."deleted" = false  AND askbot_thr...

Is this a bug or did something go wrong with the migrations?

syncdb output:

> python manage.py syncdb
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.

Synced:
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > django.contrib.staticfiles
 > django.contrib.admin
 > django.contrib.sitemaps
 > south
 > askbot.deps.livesettings
 > keyedcache
 > robots
 > django_countries
 > djcelery
 > djkombu
 > followit

Not synced (use migrations):
 - askbot.deps.django_authopenid
 - askbot
(use ./manage.py migrate to migrate these)

migrate output:

> python manage.py migrate
Running migrations for django_authopenid:
- Nothing to migrate.
 - Loading initial data for django_authopenid.
No fixtures found.
Running migrations for askbot:
- Nothing to migrate.
 - Loading initial data for askbot.
No fixtures found.

(running against a postgres db)

I just ran the askbot/search/postgresql/thread_and_post_models_01162012.plsql file:

> psql -U askbot -f askbot/search/postgresql/thread_and_post_models_01162012.plsql 
Password for user askbot: 
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
 setup_aggregates 
------------------
 t
(1 row)

CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
psql: askbot/search/postgresql/thread_and_post_models_01162012.plsql:154: ERROR:  cannot ...
(more)
2011-11-04 22:59:22 -0500 received badge  Teacher (source)
2011-11-04 22:59:22 -0500 received badge  Necromancer (source)
2011-11-04 08:53:22 -0500 commented answer change community wiki question to a regular one?

When I go into the django admin site and go to /admin/askbot/question/21/ you can set the wiki boolean to false, but if you try to save, it will say that you need to fill in "followed by" (I guess somewhere it says it shouldn't be null?)

2011-11-03 05:32:06 -0500 answered a question change community wiki question to a regular one?

So a moderator can revert the wiki state, but since you have to go to the django page for the question, there is a bug since that page requires a follower for a question.