| ReferenceError | Python 2.4.3: /opt/local/bin/python2.4 Sat Jul 4 16:49:26 2009 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /san/hosted/grsymphony/vendor/flup/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object at 0x1433d10>) |
| 556 """Runs the handler, flushes the streams, and ends the request.""" |
| 557 try: |
| 558 protocolStatus, appStatus = self.server.handler(self) |
| 559 except: |
| 560 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object at 0x1433d10>, self.server = <flup.server.fcgi.WSGIServer object at 0x5a2b0>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object at 0x5a2b0>> |
| /san/hosted/grsymphony/vendor/flup/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object at 0x5a2b0>, req=<flup.server.fcgi_base.Request object at 0x1433d10>) |
| 1109 try: |
| 1110 try: |
| 1111 result = self.application(environ, start_response) |
| 1112 try: |
| 1113 for data in result: |
| result = None, self = <flup.server.fcgi.WSGIServer object at 0x5a2b0>, self.application = <django.core.handlers.wsgi.WSGIHandler object at 0x5a310>, environ = {'DOCUMENT_ROOT': '/san/hosted/grsymphony/virtualhost_root', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.grsymphony.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response at 0x16eafb0> |
| /san/hosted/grsymphony/django_src/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0x5a310>, environ={'DOCUMENT_ROOT': '/san/hosted/grsymphony/virtualhost_root', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.grsymphony.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response at 0x16eafb0>) |
| 183 try: |
| 184 request = WSGIRequest(environ) |
| 185 response = self.get_response(request) |
| 186 |
| 187 # Apply response middleware |
| response undefined, self = <django.core.handlers.wsgi.WSGIHandler object at 0x5a310>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x5a310>>, request = <WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /san/hosted/grsymphony/django_src/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object at 0x5a310>, request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 94 else: |
| 95 callback, param_dict = resolver.resolve404() |
| 96 return callback(request, **param_dict) |
| 97 except exceptions.PermissionDenied: |
| 98 return http.HttpResponseForbidden('<h1>Permission denied</h1>') |
| callback = <function page_not_found at 0x16282b0>, request = <WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, param_dict = {} |
| /san/hosted/grsymphony/django_src/django/views/defaults.py in page_not_found(request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, template_name='404.html') |
| 77 """ |
| 78 t = loader.get_template(template_name) |
| 79 return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path}))) |
| 80 |
| 81 def server_error(request, template_name='500.html'): |
| global http = <module 'django.http' from '/san/hosted/grsympho...ost_root/../django_src/django/http/__init__.pyc'>, http.HttpResponseNotFound = <class 'django.http.HttpResponseNotFound'>, t = <django.template.Template object at 0x16f7590>, t.render = <bound method Template.render of <django.template.Template object at 0x16f7590>>, global RequestContext = <class 'django.template.context.RequestContext'>, request = <WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, request.path = '/about.media.main.html' |
| /san/hosted/grsymphony/django_src/django/template/context.py in __init__(self=[{'LANGUAGES': (('ar', 'Arabic'), ('bn', 'Bengal...b0>}, {'request_path': '/about.media.main.html'}], request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, dict={'request_path': '/about.media.main.html'}, processors=()) |
| 93 processors = () |
| 94 else: |
| 95 processors = tuple(processors) |
| 96 for processor in get_standard_processors() + processors: |
| 97 self.update(processor(request)) |
| self = [{'LANGUAGES': (('ar', 'Arabic'), ('bn', 'Bengal...b0>}, {'request_path': '/about.media.main.html'}], self.update = <bound method RequestContext.update of [{'LANGUA...0>}, {'request_path': '/about.media.main.html'}]>, processor = <function sidebar_navigation at 0x160a630>, request = <WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /san/hosted/grsymphony/helpers/context_processors.py in sidebar_navigation(request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 18 match = re.compile('^(.*?)/?$').search(request.path) |
| 19 pages = Page.objects.filter(alias=match.group(1)) |
| 20 if pages.count(): |
| 21 return { 'current_page' : pages[0] } |
| 22 |
| pages = [], pages.count = <bound method QuerySet.count of []> |
| /san/hosted/grsymphony/django_src/django/db/models/query.py in count(self=[]) |
| 200 cursor.execute("SELECT COUNT(DISTINCT(%s))" % id_col + sql, params) |
| 201 else: |
| 202 cursor.execute("SELECT COUNT(*)" + sql, params) |
| 203 return cursor.fetchone()[0] |
| 204 |
| cursor = <MySQLdb.cursors.Cursor object at 0x16f7db0>, cursor.execute = <bound method Cursor.execute of <MySQLdb.cursors.Cursor object at 0x16f7db0>>, sql = ' FROM `pages_page` WHERE (`pages_page`.`alias` = %s)', params = ['/about.media.main.html'] |
| /opt/local/lib/python2.4/site-packages/MySQLdb/cursors.py in execute(self=<MySQLdb.cursors.Cursor object at 0x16f7db0>, query='SELECT COUNT(*) FROM `pages_page` WHERE (`pages_page`.`alias` = %s)', args=['/about.media.main.html']) |
| 135 del tb |
| 136 self.messages.append((exc, value)) |
| 137 self.errorhandler(self, exc, value) |
| 138 self._executed = query |
| 139 self._warning_check() |
| self = <MySQLdb.cursors.Cursor object at 0x16f7db0>, self.errorhandler = <bound method Connection.defaulterrorhandler of <_mysql.connection closed at 1aeca10>>, exc = <class exceptions.ReferenceError at 0x9fc0>, value = <exceptions.ReferenceError instance at 0x16caaa8> |
| /opt/local/lib/python2.4/site-packages/MySQLdb/connections.py in defaulterrorhandler(connection=<_mysql.connection closed at 1aeca10>, cursor=<MySQLdb.cursors.Cursor object at 0x16f7db0>, errorclass=<class exceptions.ReferenceError at 0x9fc0>, errorvalue=<exceptions.ReferenceError instance at 0x16caaa8>) |
| 31 else: |
| 32 connection.messages.append(error) |
| 33 raise errorclass, errorvalue |
| 34 |
| 35 |
| errorclass = <class exceptions.ReferenceError at 0x9fc0>, errorvalue = <exceptions.ReferenceError instance at 0x16caaa8> |
ReferenceError: weakly-referenced object no longer exists
args =
('weakly-referenced object no longer exists',)