1

Topic: Map Explorer error

Hi,
I have just updated my general recording site with the iform and indicia_features modules which come with Instant Indicia 0.8.2. I have also updated the core to 6.28. (I'm using the BRC live warehouse).

It was all tested offline and worked fine. I've now updated the live site and most of the site is working. However, while the Map Explorer page loads ok and I can see the records:
1. when I click on the icon to view the record details, all the details load on the details page but there is no dot on the map to show the location of the occurrence and
2. when I click on the icon to edit the record, no record appears in my editing page (my submit list page but with the URL extended to specify the occurrence_ID (.../submit-list?occurrence_id=110259) as it normally would.

I've had a look on iRecord (always good to check for pointers) but I find no records are loading at all on the Explore all records page.

Might there be a problem on the warehouse? If not, where have I gone wrong??

Thanks,
Fiona

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

2

Re: Map Explorer error

Hi Fiona
I'm out of my depth on this one but I can see records loading on iRecord Explore > All Records so it is not all broken.

(Not sure I believe what I am seeing though. I don't understand the meaning to the colours of the different dots but a line of blue dots up the middle of the country seems implausible which is what I am observing.)

Using FireBug I can see requests for data in the following form

http://warehouse1.indicia.org.uk/index.php/services/report/requestReport?
report=library/occurrences/explore_list_2_mapping_using_spatial_index_builder.xml&
reportSource=local&
mode=json&
nonce=446550c047c2c9c5ac5ec25792940c804e4419bf&
auth_token=6434bb670b80e807e3386e7f7e7965f848e98ec1&
view=list&
callback=jsonp1360690296374&
=&
searchArea=&
idlist=&
ownData=0&
smpattrs=&
occattrs=&
location_id=&
taxon_groups=&
currentUser=2&
survey_id=&
date_from=&
date_to=&
ownLocality=0&
ownGroups=0&
user_id=2&
sharing=reporting&
limit=1000&
offset=1000&
_=1360690306110

From which I observe it is requesting records a thousand at a time but it only goes up to about 3000 records.

The report it is calling has the following description

Report designed for the explore records mapping facility in iRecord, with additional parameters. This version depends on the Spatial Index Builder module to index the list of locations that users can set in their preferences as their locality, for significantly improved performance.

Completely random thought but I wonder if that Spatial Index Builder has done its job. We'll have to see what John can tell us.

Jim Bacon.

3

Re: Map Explorer error

Hi both
The issue Jim saw (banding on the Explore report) was a result of an incorrect logic for counting the records to map, resulting in only a partial map being shown. I've fixed this on iRecord, but cannot see any other issues related to the ones you are having. So I thought I'd register on your site to see if I could see any problems, but having done so is there something I need to be able to do to see the reports as I can't see them in the menus?
Best wishes
John

John van Breda
Biodiverse IT

4

Re: Map Explorer error

Hi John,
I've made you an administrator on my site as I have made the report only visible to admin users while I have this issue.

Incidentally, I still can't get records to load in iRecord on the Explore - all records...

Thanks,
Fiona

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

5

Re: Map Explorer error

I thought I should add an update about the iRecord problem I was experiencing. I had a look at My Account and rather than leaving Location as blank, I chose Antrim and when I went back into Explore - All Records, I can now see records loading on the page.
I also had an error on My Account - View similar (but not the same as) the one I have on my own site until I chose a location in Preferences.

Does this mean that choosing a Location is essential for users rather than optional?

Fiona

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

6

Re: Map Explorer error

Hi Fiona,
No, choosing a location should not be a requirement. In fact, I can see records on your site even though my account has no locality set.
I've sent you a PHP file to try and get some info on what is happening on the record details page.
Cheers
John

John van Breda
Biodiverse IT

7 (edited by FionaCEDaR 15-02-2013 11:17:22)

Re: Map Explorer error

Having got the issues sorted out earlier in the week with John - a bug in my data_entry_helper file. I now have another error - I think relating to the warehouse as opposed to my files.

When I try to load a map explorer page I get the following error above and below the map and no dots load on the map.

Report: reports/library/occurrences/explore_list.xml XMLReader::read(): file:///D:/web%20sites/warehouse1/content/reports/library/occurrences/explore_list.xml:51: parser error : Attribute datatype redefined

Any ideas?

Thanks,
Fiona

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

8

Re: Map Explorer error

Yep. We saw that a couple of days ago on the test server when it was upgraded. And yesterday the live server was upgraded, obviously introducing the same problem.

I have done the same fix but this time I will correct the repository too!

Jim Bacon.

9

Re: Map Explorer error

Oh, cheers Jim!
Many thanks

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar