I have a new install of OSQA running with MySQL under Windows (Python 2.6, 32bit). When I'm logged, everything seems to work fine - however, when I'm not logged in, opening a question gives me a system error.
500 Server Error
sorry, system error
I've tried adding the error notifications for the admin but haven't received anything so far (will update question with details once I get these messages ;-) ).
EDIT: Here's the error message from the log:
d:\\\\software\\\\python26\\\\lib\\\\site-packages\\\\osqa\\\\forum\\\\templatetags\\\\ui_registry.py TIME: 2011-01-07 16:37:46,937 MSG: ui_registry.py:render:26 Exception 'request' rendering ui objects <forum.modules.ui_objects.Link object at 0x03725DB0>:
Traceback (most recent call last):
File "D:\\\\Software\\\\Python26\\\\Lib\\\\site-packages\\\\osqa\\\\forum\\\\templatetags\\\\ui_registry.py", line 22, in render
result += ui_object.render(context)
File "D:\\\\Software\\\\Python26\\\\Lib\\\\site-packages\\\\osqa\\\\forum\\\\modules\\\\ui_objects.py", line 107, in render
html.hyperlink(self.url(context), self.text(context), **self.attrs(context)),
File "D:\\\\Software\\\\Python26\\\\Lib\\\\site-packages\\\\osqa\\\\forum\\\\modules\\\\ui_objects.py", line 67, in __call__
return self.argument(user, context)
File "D:\\\\Software\\\\Python26\\\\Lib\\\\site-packages\\\\osqa\\\\forum\\\\registry.py", line 42, in <lambda>
url=lambda u, c: settings.CONTACT_URL and settings.CONTACT_URL or "%s?next=%s" % (reverse('feedback'), cleanup_urls( c['request'].path)),
File "D:\\\\Software\\\\Python26\\\\lib\\\\site-packages\\\\django-1.2.4-py2.6.egg\\\\django\\\\template\\\\context.py", line 46, in __getitem__
raise KeyError(key)
KeyError: 'request'
asked
07 Jan '11, 10:02
jashan
111●4●6●12
accept rate:
33%
The error you're describing was in the trunk for a couple of hours a couple of days ao, can you confirm what revision are you in?
Here is the error : 'AnonymousUser' object has no attribute 'reputation' (r670)
I think that should be 670, if I'm not mistaken ... I just tried an update and the only two files that were updated are settings_local.py.dist and osqa.wsgi.dist, so I'm afraid that's not it. But I have the error message in the logfile, so I can post it.