feedback causing error 500


https ask fedoraproject org/feedback/ gives an internal server error when submitted, it works fine on staging though. ( https ask stg fedoraproject org/feedback/ )

The server logs give the following:

 mod_wsgi (pid=23966): Exception occurred processing WSGI script '/usr/sbin/askbot.wsgi'.
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/django/core/handlers/", line 272, in __call__
     response = self.get_response(request)
   File "/usr/lib/python2.6/site-packages/django/core/handlers/", line 169, in get_response
     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
   File "/usr/lib/python2.6/site-packages/django/core/handlers/", line 218, in handle_uncaught_exception
     return callback(request, **param_dict)
   File "/usr/lib/python2.6/site-packages/django/utils/", line 93, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/usr/lib/python2.6/site-packages/django/views/", line 31, in server_error
     return http.HttpResponseServerError(t.render(Context({})))
   File "/usr/lib/python2.6/site-packages/coffin/template/", line 54, in render
     return super(Template, self).render(**context)
   File "/usr/lib64/python2.6/site-packages/jinja2/", line 669, in render
     return self.environment.handle_exception(exc_info, True)
   File "/usr/lib/python2.6/site-packages/askbot/templates/500.html", line 1, in top-level template code
     {% extends "two_column_body.html" %}
   File "/usr/lib/python2.6/site-packages/askbot/templates/two_column_body.html", line 1, in top-level template code
     {% extends "base.html" %}
   File "/usr/lib/python2.6/site-packages/askbot/templates/base.html", line 4, in top-level template code
     <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title>
   File "/usr/lib64/python2.6/site-packages/jinja2/", line 350, in getattr
     return getattr(obj, attribute)
 UndefinedError: 'settings' is undefined

The settings are all same in staging and prod as much as I can say. Any insight into it will be appreciated.

https fedorahosted org/fedora-infrastructure/ticket/4012

anshprat's avatar
asked 2013-09-24 16:04:34 -0500, updated 2013-09-26 11:41:10 -0500
edit flag offensive 0 remove flag close merge delete


Thanks for the report, I'll be fixing this now...

Fitoria's avatar Fitoria (2013-09-26 15:39:04 -0500) edit

Fixed in [this commit](

Fitoria's avatar Fitoria (2013-09-26 16:07:30 -0500) edit

@Fitoria great, will try this out. Thanks!

anshprat's avatar anshprat (2013-09-26 22:32:36 -0500) edit

It's merged in the master branch now.

Evgeny's avatar Evgeny (2013-09-27 01:45:06 -0500) edit
add a comment see more comments