When an AnonymousUser (like googlebot) or any not signed in user attempts to visit a link to a deleted post there is an internal error.
The error is an AttributeError in this file: https://github.com/ASKBOT/askbot-devel/blob/master/askbot/views/readers.py on line 395
try:
show_comment = models.Post.objects.get_comments().get(id=show_comment)
except models.Post.DoesNotExist:
error_message = _(
'Sorry, the comment you are looking for has been '
'deleted and is no longer accessible'
)
request.user.message_set.create(message = error_message)
return HttpResponseRedirect(question_post.thread.get_absolute_url())
the line request.user.message_set.create(message = error_message) will raise an AttributeError if request.user is AnonymousUser because it does not have the message_set property.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-06-14 03:16:38 -0500
Seen: 40 times
Last updated: Jun 14 '12
What is the correct use of template substitution within translate section?
Accepting a previously unaccepted answer should not grant additional karma to author
"502 Bad Gateway" when visiting certain URLs, Part 2
Tags that are too long to display use truncated version when retagging question.
Editing a question title does not change SEO URL if I only append text to the title
Incorrect reputation check when attempting to reopen a closed question?
Wonkiness when attempting to post a comment on a closed question
Pressing return key when editing a question text field reloads the page.
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
This does not affect anonymous users, because in our case anonymous user class is patched to have the message set. Do you have a traceback to look at? If you add your email address to the ADMINS in the settings.py you should be getting them by email.
Evgeny ( 2012-06-14 19:21:12 -0500 )editI'm migrating the site to a newer askbot version. Perhaps the problem is already fixed in yours. Also I may have edited the code by hand at some point and introduced a bug. A fresh install should sort it out. Cheers.
Jtrain ( 2012-06-27 10:31:38 -0500 )edit