Hi Alexei

Thank you, that worked perfectly. I edited the file, recompiled the .pyc 
and restarted Apache to pick it up and we have a working website again.

We were planning to upgrade to 4.4.1 but we can wait until a permanent fix 
is developed.

Many thanks,
David


On Wednesday, 17 April 2019 19:11:09 UTC+1, Alexei Peters wrote:
>
> Hi David,
> I created a ticket for this issue here: 
> https://github.com/archesproject/arches/issues/4780
>
> In the mean time to get you past this bug you'll have to temporarily edit 
> one of the files found here on your system:
>
> /home/ubuntu/Projects/ENV/local/lib/python2.7/site-packages/arches/app/utils/context_processors.py
>
> Open the file and go to line 40.
> You should see this line:
>   default_center = None
>
> Replace that line with this:
>   default_center = {'coordinates': [0,0]}
>
> Save the file.
> At this point you should be able to access Arches again and change the 
> setting in the interface. 
> It won't be any harm to leave that file edited until a permanent fix is 
> applied.
>
> Hope this helps.
> -Alexei
>
>
> On Sunday, April 14, 2019 at 8:53:06 AM UTC-7, David Osborne wrote:
>>
>> 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.

Reply via email to