Hi, For some reason I kept getting 500 error while uploading site logo through the admin interface in OSQA, here the error after I enabled the debug option:

/opt/osqa/forum/templatetags/ui_registry.py TIME: 2011-02-16 19:35:11,867 MSG: ui_registry.py:render:26 Exception 'request' rendering ui objects <forum.modules.ui_objects.link object="" at="" 0xa951c8c="">: Traceback (most recent call last): File "/opt/osqa/forum/templatetags/ui_registry.py", line 22, in render result += ui_object.render(context) File "/opt/osqa/forum/modules/ui_objects.py", line 107, in render html.hyperlink(self.url(context), self.text(context), **self.attrs(context)), File "/opt/osqa/forum/modules/ui_objects.py", line 67, in call return self.argument(user, context) File "/opt/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 "/usr/local/lib/python2.6/dist-packages/django/template/context.py", line 46, in getitem raise KeyError(key) KeyError: 'request'

/opt/osqa/forum/templatetags/ui_registry.py TIME: 2011-02-16 19:35:20,137 MSG: ui_registry.py:render:26 Exception 'request' rendering ui objects <forum.modules.ui_objects.link object="" at="" 0xa94cccc="">: Traceback (most recent call last): File "/opt/osqa/forum/templatetags/ui_registry.py", line 22, in render result += ui_object.render(context) File "/opt/osqa/forum/modules/ui_objects.py", line 107, in render html.hyperlink(self.url(context), self.text(context), **self.attrs(context)), File "/opt/osqa/forum/modules/ui_objects.py", line 67, in call return self.argument(user, context) File "/opt/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 "/usr/local/lib/python2.6/dist-packages/django/template/context.py", line 46, in getitem raise KeyError(key) KeyError: 'request'

/opt/osqa/forum/templatetags/ui_registry.py TIME: 2011-02-16 19:35:38,712 MSG: ui_registry.py:render:26 Exception 'request' rendering ui objects <forum.modules.ui_objects.link object="" at="" 0xa953cec="">: Traceback (most recent call last): File "/opt/osqa/forum/templatetags/ui_registry.py", line 22, in render result += ui_object.render(context) File "/opt/osqa/forum/modules/ui_objects.py", line 107, in render html.hyperlink(self.url(context), self.text(context), **self.attrs(context)), File "/opt/osqa/forum/modules/ui_objects.py", line 67, in call return self.argument(user, context) File "/opt/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 "/usr/local/lib/python2.6/dist-packages/django/template/context.py", line 46, in getitem raise KeyError(key)

I am using the latest version available.

asked 16 Feb '11, 19:54

ZAY's gravatar image

ZAY
91227
accept rate: 0%

By the way, I am using Ubuntu + nginx + mysql to run this application.

(16 Feb '11, 19:55) ZAY

Are you sure that is the error you see when enabling debug, or you're taking that from the log?

(17 Feb '11, 06:00) Hernani Cerq... ♦♦

My bad, those were from the log, i think it was basically my DB gets corrupted, so I just torn it apart and start from scratch, again...

link

answered 17 Feb '11, 09:10

ZAY's gravatar image

ZAY
91227
accept rate: 0%

Make sure you have permissions in the upload folder, I'm guessing that was your problem in the first place.

(17 Feb '11, 10:49) Hernani Cerq... ♦♦
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:

×298
×113
×38
×11
×6

Asked: 16 Feb '11, 19:54

Seen: 784 times

Last updated: 17 Feb '11, 10:49

powered by OSQA