feedback causing error 500

hi,

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/wsgi.py", line 272, in __call__
     response = self.get_response(request)
   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", 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/base.py", line 218, in handle_uncaught_exception
     return callback(request, **param_dict)
   File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/usr/lib/python2.6/site-packages/django/views/defaults.py", line 31, in server_error
     return http.HttpResponseServerError(t.render(Context({})))
   File "/usr/lib/python2.6/site-packages/coffin/template/__init__.py", line 54, in render
     return super(Template, self).render(**context)
   File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", 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/environment.py", 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
46
anshprat
asked 2013-09-24 16:04:34 -0600, updated 2013-09-26 11:41:10 -0600
edit flag offensive 0 remove flag close merge delete

Comments

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

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

Fixed in [this commit](https://github.com/fitoria/askbot-devel/commit/12445c98511606ea474c145dc099170b8b543afa)

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

@Fitoria great, will try this out. Thanks!

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

It's merged in the master branch now.

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