Project

General

Profile

Bug #573

JA-Askbot gives HTML500 when trying to post questions.

Added by Alexander Werner over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
2014-08-10
% Done:

0%

Estimated time:
Tags:
URL:

Description

After turning on DEBUG:
@Environment:

Request Method: POST
Request URL: http://ask.libreoffice.org/ja/questions/ask/

Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('longerusername',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.humanize',
'django.contrib.sitemaps',
'django.contrib.messages',
'compressor',
'askbot',
'askbot.deps.django_authopenid',
'south',
'askbot.deps.livesettings',
'keyedcache',
'robots',
'django_countries',
'djcelery',
'djkombu',
'followit',
'tinymce',
'group_messaging',
'avatar')
Installed Middleware:
('django.middleware.locale.LocaleMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware',
'askbot.middleware.forum_mode.ForumModeMiddleware',
'askbot.middleware.cancel.CancelActionMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware')

Traceback:
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/handlers/base.py" in get_response
111. response = callback(request, callback_args, **callback_kwargs)
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/utils/decorators.py" in wrapped_view
91. response = view_func(request, *args, **kwargs)
File "/srv/ask/node1/askbot/utils/decorators.py" in wrapper
136. return view_func(request, *args, **kwargs)
File "/srv/ask/node1/askbot/utils/decorators.py" in wrapper
231. return view_func(request, *args, **kwargs)
File "/srv/ask/node1/askbot/views/writers.py" in ask
256. language=language
File "/srv/ask/node1/askbot/models/
_init__.py" in user_post_question
1647. language=language
File "/srv/ask/node1/askbot/models/question.py" in create_new
171. language_code=language
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/db/models/manager.py" in create
137. return self.get_query_set().create(
*kwargs)
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/db/models/query.py" in create
377. obj.save(force_insert=True, using=self.db)
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/db/models/base.py" in save
463. self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/db/models/base.py" in save_base
551. result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/db/models/manager.py" in _insert
203. return insert_query(self.model, objs, fields, **kwargs)
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/db/models/query.py" in insert_query
1593. return query.get_compiler(using=using).execute_sql(return_id)
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/db/models/sql/compiler.py" in execute_sql
912. cursor.execute(sql, params)
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/db/backends/util.py" in execute
40. return self.cursor.execute(sql, params)
File "/srv/ask/node1/env/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/db/backends/postgresql_psycopg2/base.py" in execute
52. return self.cursor.execute(query, args)

Exception Type: DatabaseError at /ja/questions/ask/
Exception Value: text search configuration "japanese" does not exist
CONTEXT: PL/pgSQL function "get_language_name_from_code" while casting return value to function's return type
PL/pgSQL function "get_thread_tsv" line 5 at assignment
PL/pgSQL function "thread_insert_trigger" line 3 at assignment@

History

#1 Updated by Alexander Werner over 4 years ago

  • Due date set to 2014-08-02
  • Status changed from New to Feedback

Contacted Evgeny about it.

#2 Updated by Alexander Werner over 4 years ago

  • Due date changed from 2014-08-02 to 2014-08-10

Nothing has changed yet, still erroneous behaviour. Pinged florian to ping evgeny.

#3 Updated by Florian Effenberger over 4 years ago

Poked Evgeny and sent him link to this ticket

#4 Updated by Florian Effenberger over 4 years ago

Spontaneous guess by Alex and me:
Japanese is not supported yet in the search engine. However, with the duplicates functionality, a search might automatically be triggered while posting

#5 Updated by Evgeny Fadeev over 4 years ago

I've installed the textsearch_ja library, it might be working now. However I have not made any test posts.

#6 Updated by Alexander Werner over 4 years ago

  • Status changed from Feedback to Closed

Asked a testquestion. Works.

Also available in: Atom PDF