We're seeing an error on our Arches 4.3.3 installation on an Ubuntu 16.04 
server, following an attempt by a colleague to update the map search 
rectangle in the admin Settings web interface.

When connecting to our Apache2 service, we now get the following error


TypeError at / 

'NoneType' object has no attribute '__getitem__'

Request Method: GET 
Request URL: http://her.jerseyheritage.org/ 
Django Version: 1.11.15 
Exception Type: TypeError 
Exception Value: 

'NoneType' object has no attribute '__getitem__'

Exception Location: 
/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/arches/app/utils/context_processors.py
 
in map_info, line 43 
Python Executable: /home/ubuntu/Projects/ENV/bin/python 
Python Version: 2.7.12 
Python Path: 

['/home/ubuntu/Projects/jersey_her',
 '/home/ubuntu/Projects/ENV/lib/python2.7',
 '/home/ubuntu/Projects/ENV/lib/python2.7/plat-x86_64-linux-gnu',
 '/home/ubuntu/Projects/ENV/lib/python2.7/lib-tk',
 '/home/ubuntu/Projects/ENV/lib/python2.7/lib-old',
 '/home/ubuntu/Projects/ENV/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages',
 '/home/ubuntu/Projects/ENV/lib/python2.7/site-packages',
 '/home/ubuntu/Projects/jersey_her/jersey_her']


The Python traceback is in an attachment. The error in 
context_processors.py is in code which seems related to the search 
rectangle, as if Arches thinks the settings have been made but the values 
have been lost, whether in a file, or stored in the database, I don't know. 
Because of the error, we're unable to get into the Arches web interface to 
change the settings. I'm reluctant to reinstall everything so I'm hoping 
someone can suggest a manual reset.

Thanks
David





















-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Environment:


Request Method: GET
Request URL: http://her.jerseyheritage.org/

Django Version: 1.11.15
Python Version: 2.7.12
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.gis',
 'arches',
 'arches.app.models',
 'arches.management',
 'guardian',
 'captcha',
 'revproxy',
 'corsheaders',
 'oauth2_provider')
Installed Middleware:
['corsheaders.middleware.CorsMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'oauth2_provider.middleware.OAuth2TokenMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'arches.app.utils.middleware.SetAnonymousUser']



Traceback:

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/handlers/exception.py"
 in inner
  41.             response = get_response(request)

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/handlers/base.py"
 in _get_response
  187.                 response = self.process_exception_by_middleware(e, 
request)

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/core/handlers/base.py"
 in _get_response
  185.                 response = wrapped_callback(request, *callback_args, 
**callback_kwargs)

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/arches/app/views/main.py"
 in index
  31.         'copyright_year': settings.COPYRIGHT_YEAR

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/shortcuts.py"
 in render
  30.     content = loader.render_to_string(template_name, context, request, 
using=using)

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/template/loader.py"
 in render_to_string
  68.     return template.render(context, request)

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/template/backends/django.py"
 in render
  66.             return self.template.render(context)

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/template/base.py"
 in render
  205.                 with context.bind_template(self):

File "/usr/lib/python2.7/contextlib.py" in __enter__
  17.             return self.gen.next()

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/django/template/context.py"
 in bind_template
  263.             updates.update(processor(self.request))

File 
"/home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/arches/app/utils/context_processors.py"
 in map_info
  43.             'x': default_center['coordinates'][0],

Exception Type: TypeError at /
Exception Value: 'NoneType' object has no attribute '__getitem__'

Reply via email to