e-hulp/HelpIM — Issue #154: DatabaseError: "Table 'testchat1.buddychat_questionnaireformentry' doesn't exist"
Author: winfried
Created: 2012-02-16 14:45:23+00:00
State: open
Labels: bug, django, High priority

Traceback (most recent call last):

File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python2.6/dist-packages/helpim/questionnaire/views.py", line 180, in form_entry_edit
form_entry.delete()

File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py", line 580, in delete
collector.collect([self])

File "/usr/local/lib/python2.6/dist-packages/django/db/models/deletion.py", line 168, in collect
if not sub_objs:

File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 113, in __nonzero__
iter(self).next()

File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 107, in _result_iter
self._fill_cache()

File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 772, in _fill_cache
self._result_cache.append(self._iter.next())

File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():

File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):

File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)

File "/usr/local/lib/python2.6/dist-packages/django/db/backends/mysql/base.py", line 86, in execute
return self.cursor.execute(query, args)

File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 166, in execute
self.errorhandler(self, exc, value)

File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue

DatabaseError: (1146, "Table 'testchat1.buddychat_questionnaireformentry' doesn't exist")

,
POST:,
COOKIES:{'csrftoken': '782cddacc48641b0e0719fe74d5fd311',
'sessionid': 'a09a2b8578ac12a35c1feff818de0993'},
META:{'CONTENT_LENGTH': '89',
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
'CSRF_COOKIE': '782cddacc48641b0e0719fe74d5fd311',
'DOCUMENT_ROOT': '/var/www/catchleftovers',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTPS': '1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'nl,en;q=0.7,en-us;q=0.3',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'csrftoken=782cddacc48641b0e0719fe74d5fd311; sessionid=a09a2b8578ac12a35c1feff818de0993',
'HTTP_DNT': '1',
'HTTP_HOST': 'testchat1.e-hulp.nl',
'HTTP_REFERER': 'https://testchat1.e-hulp.nl/forms/entry/309/edit',
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 Iceweasel/10.0.1',
'PATH_INFO': u'/forms/entry/309/edit',
'PATH_TRANSLATED': '/etc/helpim/sites/testchat1/django.wsgi/forms/entry/309/edit',
'QUERY_STRING': '',
'REMOTE_ADDR': '80.101.115.12',
'REMOTE_PORT': '37165',
'REQUEST_METHOD': 'POST',
'REQUEST_URI': '/forms/entry/309/edit',
'SCRIPT_FILENAME': '/etc/helpim/sites/testchat1/django.wsgi',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '91.198.178.29',
'SERVER_ADMIN': 'helpdesk@e-hulp.nl',
'SERVER_NAME': 'testchat1.e-hulp.nl',
'SERVER_PORT': '443',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '

Apache/2.2.16 (Debian) Server at testchat1.e-hulp.nl Port 443

\n',
'SERVER_SOFTWARE': 'Apache/2.2.16 (Debian)',
'SSL_TLS_SNI': 'testchat1.e-hulp.nl',
'mod_wsgi.application_group': 'testchat1.e-hulp.nl|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.handler_script': '',
'mod_wsgi.input_chunked': '0',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '443',
'mod_wsgi.process_group': 'testchat1',
'mod_wsgi.request_handler': 'wsgi-script',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (3, 3),
'wsgi.errors': ,
'wsgi.file_wrapper': ,
'wsgi.input': ,
'wsgi.multiprocess': True,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'https',
'wsgi.version': (1, 1)}>