|
I having this error when submitting a comment: /var/www/osqa/forum/views/decorators.py TIME: 2010-12-15 08:36:32,308 MSG: decorators.py:command:69 comment: 'unicode' object has no attribute 'cmp' /var/www/osqa/forum/views/decorators.py TIME: 2010-12-15 08:36:32,309 MSG: decorators.py:command:70 Traceback (most recent call last): File "/var/www/osqa/forum/views/decorators.py", line 53, in command response = func(request, *args, kwargs) File "/var/www/osqa/forum/views/commands.py", line 240, in comment if len(comment_text) < settings.FORM_MIN_COMMENT_BODY: File "/var/www/osqa/forum/settings/base.py", line 22, in wrapper return self.value.getattribute(name)(*args, kwargs) AttributeError: 'unicode' object has no attribute 'cmp' |
|
Ok I solved my own problem, initially everything run smoothly, until we decide to dbsync/flush all tables. and suddenly this error and other 500 error appear, randomly. Some how we noticed it is related to cache. So what we did is stop httpd, remove all cache manually rm -rf cache/*, restart again and eveything seems ok. thanks for the great project. |
|
Hi there! Unfortunately I have the same or similar problem. I've installed OSQA and everything was fine for some days. Then out of nowhere I got error messages when posting something to the osqa. I tried to delete the cache files and flushed all MySQL tables. Restarting all services or the server doesn't help either. I don't know what to do next. Maybe some one can help me, I would appreciate it allot. This is what the server says in debug mode: Request Method: POST
Request URL: http://XXX.XXX.XXX.XXX/questions/ask/
Django Version: 1.2.5
Exception Type: AttributeError
Exception Value: Type issue. Try to dump data using XML format which can handle UTF-8 better than JSON
(22 Jan, 01:49)
sza
|
did you change any setting directly in the database?
nope ... but we solved our problem by removing all cache from cache folder.