Internal Server Error while trying to delete comment

asked 2013-01-08 14:39:05 -0600

mornaner gravatar image

updated 2013-01-24 15:14:04 -0600

In my site, when I try to delete a comment I have just posted I get this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@draw3cards.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

UPDATE:

This is the error I'm getting:

Traceback (most recent call last):

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

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/views/decorators/csrf.py", line 77, in wrapped_view
  return view_func(*args, **kwargs)

File "/var/www/askbot-devel/askbot/views/writers.py", line 713, in delete_comment
  comment = get_object_or_404(models.Post, post_type='comment', id=comment_id)

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/shortcuts/__init__.py", line 113, in get_object_or_404
  return queryset.get(*args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/db/models/query.py", line 358, in get
  clone = self.filter(*args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/db/models/query.py", line 624, in filter
  return self._filter_or_exclude(False, *args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/db/models/query.py", line 642, in _filter_or_exclude
  clone.query.add_q(Q(*args, **kwargs))

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/db/models/sql/query.py", line 1250, in add_q
  can_reuse=used_aliases, force_having=force_having)

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/db/models/sql/query.py", line 1185, in add_filter
connector)

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/db/models/sql/where.py", line 69, in add
value = obj.prepare(lookup_type, value)

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/db/models/sql/where.py", line 320, in prepare
  return self.field.get_prep_lookup(lookup_type, value)

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/db/models/fields/__init__.py", line 310, in get_prep_lookup
  return self.get_prep_value(value)

File "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py2.7.egg/django/db/models/fields/__init__.py", line 537, in get_prep_value
  return int(value)

ValueError: invalid literal for int() with base 10: 'replaced'
edit retag flag offensive close merge delete