Closed Bug 589223 Opened 15 years ago Closed 13 years ago

UndefinedError: Answer object has no attribute images

Categories

(support.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 584697

People

(Reporter: paulc, Unassigned)

Details

This is a very unusual error. There were 2 stack traces last night at 8:30pm PDT about it, so filing to keep on the radar. If we don't see it for a while, we can close this bug. Traceback (most recent call last): File "/data/virtualenvs/kitsune/src/django/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/www/support.mozilla.com/kitsune/apps/questions/views.py", line 110, in answers return jingo.render(request, 'questions/answers.html', ans_) File "/data/virtualenvs/kitsune/src/jingo/jingo/__init__.py", line 61, in render rendered = render_to_string(request, template, context) File "/data/virtualenvs/kitsune/src/jingo/jingo/__init__.py", line 80, in render_to_string ret = template.render(**context) File "/data/virtualenvs/kitsune/lib/python2.6/site-packages/jinja2/environment.py", line 669, in render return self.environment.handle_exception(exc_info, True) File "/data/www/support.mozilla.com/kitsune/apps/questions/templates/questions/answers.html", line 7, in top-level template code {% set classes = 'answers' %} File "/data/www/support.mozilla.com/kitsune/apps/questions/templates/questions/base.html", line 4, in top-level template code {% set scripts = ('questions',) %} File "/data/www/support.mozilla.com/kitsune/templates/layout/base.html", line 59, in top-level template code {% block content_area %} File "/data/www/support.mozilla.com/kitsune/apps/questions/templates/questions/base.html", line 48, in block "content_area" {% block content %} File "/data/www/support.mozilla.com/kitsune/apps/questions/templates/questions/answers.html", line 273, in block "content" {% for image in answer.images.all() %} File "/data/virtualenvs/kitsune/lib/python2.6/site-packages/jinja2/environment.py", line 350, in getattr return getattr(obj, attribute) UndefinedError: 'Answer' object has no attribute 'images' <WSGIRequest GET:<QueryDict: {u's': [u'downloads'], u'as': [u's']}>, POST:<QueryDict: {}>, COOKIES:{'SUMO_ANONID': 'e133aefe7f75ec80c66ea441fe0bbeb6', 'WT_FPC': 'id=99.10.203.161-3344488784.30097396:lv=1282260616519:ss=1282260592035', 'csrftoken': '63ff696066ba6732c8c6bc860e62a96e', 'wtspl': '590466'}, META:{'CSRF_COOKIE': '63ff696066ba6732c8c6bc860e62a96e', 'CSRF_COOKIE_USED': True, 'DOCUMENT_ROOT': '/data/www/support.mozilla.com/webroot', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 'WT_FPC=id=99.10.203.161-3344488784.30097396:lv=1282260616519:ss=1282260592035; wtspl=590466; csrftoken=63ff696066ba6732c8c6bc860e62a96e; SUMO_ANONID=e133aefe7f75ec80c66ea441fe0bbeb6', 'HTTP_HOST': 'support.mozilla.com', 'HTTP_REFERER': 'http://www.google.com/url?sa=t&source=web&cd=2&ved=0CBcQFjAB&url=http%3A%2F%2Fsupport.mozilla.com%2Fgu-IN%2Fquestions%2F745564%3Fs%3Ddownloads%26as%3Ds&rct=j&q=firefox%20downloading%20the%20latest%20applications%20bar&ei=yPZtTKbkDMOC8gaahsnkCw&usg=AFQjCNFYLVmfSRj7OvFKcqtvQWRkJhCsoQ', 'HTTP_SITESPECT': '1', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)', 'HTTP_X_CLUSTER_CLIENT_IP': '10.2.80.224', 'HTTP_X_FORWARDED_FOR': '99.10.203.161, 10.2.80.114, 10.2.80.224', 'HTTP_X_FORWARDED_HOST': 'support.mozilla.com', 'HTTP_X_FORWARDED_SERVER': 'support.mozilla.com', 'PATH_INFO': u'/gu-IN/questions/745564', 'PATH_TRANSLATED': 'redirect:/k/gu-IN/questions/745564/questions/745564', 'QUERY_STRING': 's=downloads&as=s', 'REDIRECT_QUERY_STRING': 's=downloads&as=s', 'REDIRECT_SCRIPT_URI': 'http://support.mozilla.com/gu-IN/questions/745564', 'REDIRECT_SCRIPT_URL': '/gu-IN/questions/745564', 'REDIRECT_STATUS': '200', 'REDIRECT_URL': '/gu-IN/questions/745564', 'REDIRECT_is-forwarded': '1', 'REMOTE_ADDR': '10.2.81.100', 'REMOTE_PORT': '12383', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/gu-IN/questions/745564?s=downloads&as=s', 'SCRIPT_FILENAME': '/data/www/support.mozilla.com/kitsune/wsgi/kitsune.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://support.mozilla.com/gu-IN/questions/745564', 'SCRIPT_URL': '/gu-IN/questions/745564', 'SERVER_ADDR': '10.2.81.57', 'SERVER_ADMIN': 'webmaster@mozilla.com', 'SERVER_NAME': 'support.mozilla.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache', 'is-forwarded': '1', 'mod_wsgi.application_group': 'support.mozilla.com|/k', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': 'kitsune', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xbd3cf48>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xc1dfa40>, 'wsgi.input': <mod_wsgi.Input object at 0xbfaeef8>, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.