DjangoBB

Django based forum engine

  • You are not logged in.
  • Root
  • » Bugs
  • » Post matching query does not exist [RSS Feed]

#1 July 1, 2011 06:29:01

mazay
Registered: 2011-06-22
Posts: 6
Reputation: +  0  -
Profile   Send e-mail  

Post matching query does not exist

Hello everybody.
Sorry for my english.
When i trying to delete post i get this error:

Exception Type:	DoesNotExist
Exception Value:
Post matching query does not exist.
After this i can't enter to theme with this error:
Exception Type:	TemplateSyntaxError
Exception Value:
Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'
Template error
In template /usr/share/django_apps/djangobb/djangobb_forum/templates/forum/forum.html, error at line 39
Looks like it bug, i see this errors in two different systems.

Offline

#2 July 1, 2011 15:53:42

mazay
Registered: 2011-06-22
Posts: 6
Reputation: +  0  -
Profile   Send e-mail  

Post matching query does not exist

Now when i try to search topics by author of earlier deleted post, i get this:

Exception Type: 	AttributeError
Exception Value:

'NoneType' object has no attribute 'topic'

Exception Location: /opt/pure_ftpd_webui_forum/djangobb_forum/views.py in search, line 187
I have no ideas how to fix this. Could someone help me?

Edited mazay (July 1, 2011 18:19:34)

Offline

#3 July 4, 2011 10:45:02

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Post matching query does not exist

show full stacktrace
+maybe u used not latest version

search is not stable ticket with this bug exist at trac

Offline

#4 July 4, 2011 11:00:05

mazay
Registered: 2011-06-22
Posts: 6
Reputation: +  0  -
Profile   Send e-mail  

Post matching query does not exist

Hi, slav0nic. Thank you for reply.
Here is stacktrace of search by author:

Environment:


Request Method: GET
Request URL: [url]http://forum.pure-ftpd-webui.org/search/?action=search&keywords=&author=mazay&forum=0&search_in=all&sort_by=0&sort_dir=DESC&show_as=topics&search=%D0%9E%D1%82%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D1%82%D1%8C[/url]

Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.sitemaps',
'django.contrib.admin',
'django.contrib.admindocs',
'registration',
'django_authopenid',
'djangobb_forum',
'haystack',
'messages',
'mailer',
'south']
Installed Middleware:
('django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django_authopenid.middleware.OpenIDMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'djangobb_forum.middleware.LastLoginMiddleware',
'djangobb_forum.middleware.UsersOnline')


Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/pure_ftpd_webui_forum/djangobb_forum/util.py" in wrapper
73. output = function(request, *args, **kwargs)
File "/opt/pure_ftpd_webui_forum/djangobb_forum/util.py" in wrapper
94. result = func(request, *args, **kwargs)
File "/opt/pure_ftpd_webui_forum/djangobb_forum/views.py" in search
187. if post.object.topic not in topics:

Exception Type: AttributeError at /search/
Exception Value: 'NoneType' object has no attribute 'topic'
And stacktrace of post deletion:
Environment:


Request Method: GET
Request URL: [url]http://forum.pure-ftpd-webui.org/post/6/delete/[/url]

Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.sitemaps',
'django.contrib.admin',
'django.contrib.admindocs',
'registration',
'django_authopenid',
'djangobb_forum',
'haystack',
'messages',
'mailer',
'south']
Installed Middleware:
('django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django_authopenid.middleware.OpenIDMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'djangobb_forum.middleware.LastLoginMiddleware',
'djangobb_forum.middleware.UsersOnline')


Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/django/db/transaction.py" in inner
217. res = func(*args, **kwargs)
File "/opt/pure_ftpd_webui_forum/djangobb_forum/util.py" in wrapper
73. output = function(request, *args, **kwargs)
File "/opt/pure_ftpd_webui_forum/djangobb_forum/views.py" in delete_post
709. post.delete()
File "/opt/pure_ftpd_webui_forum/djangobb_forum/models.py" in delete
224. topic.delete()
File "/opt/pure_ftpd_webui_forum/djangobb_forum/models.py" in delete
140. last_post = self.posts.latest()
File "/usr/lib/python2.6/site-packages/django/db/models/manager.py" in latest
162. return self.get_query_set().latest(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in latest
407. return obj.get()
File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in get
349. % self.model._meta.object_name)

Exception Type: DoesNotExist at /post/6/delete/
Exception Value: Post matching query does not exist.
I dowload djangobb about two weeks ago, looks like it's still the latest version.

Edited mazay (July 4, 2011 11:04:25)

Offline

#5 July 4, 2011 11:17:06

mazay
Registered: 2011-06-22
Posts: 6
Reputation: +  0  -
Profile   Send e-mail  

Post matching query does not exist

Upd. When i trying to delete only one existing post, post is deleted but toipic isn't. Sorry i didn't see it at first time.
After this i can't enter to forum in which this topic.

Offline

#6 July 5, 2011 16:44:06

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Post matching query does not exist

mazay
deleting maybe fixed http://hg.djangobb.org/djangobb/rev/4d897972bfeb [hg.djangobb.org]

search is a big problem now) i don't have to fix it

Offline

#7 July 5, 2011 19:11:15

mazay
Registered: 2011-06-22
Posts: 6
Reputation: +  0  -
Profile   Send e-mail  

Post matching query does not exist

Hi slav0nic.
Thats true, deleting is fixed. Thank you!
Hope you will fix search, some day

Offline

  • Root
  • » Bugs
  • » Post matching query does not exist[RSS Feed]

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version