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's gravatar image

jashan
1114612
accept rate: 33%

edited 18 Aug '11, 17:22

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?

(07 Jan '11, 10:15) Hernani Cerq... ♦♦

Here is the error : 'AnonymousUser' object has no attribute 'reputation' (r670)

(07 Jan '11, 10:34) rastafazz

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.

(07 Jan '11, 10:34) jashan

Please update to 671. The problem should be fixed in that revision.

link

answered 07 Jan '11, 10:53

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

Cool, thanks - yeah, that fixed it :-)

(07 Jan '11, 11:07) jashan
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×113
×75
×47

Asked: 07 Jan '11, 10:02

Seen: 599 times

Last updated: 18 Aug '11, 17:22

powered by OSQA