BiologicalRecordsCentre / UKBMS-online

Issue tracking for UKBMS online recording site
2 stars 0 forks source link

Adding new species to species list on Walk Data Entry form - not working #184

Closed IanMiddlebrook closed 3 years ago

IanMiddlebrook commented 3 years ago

Hi,

I'm just updating the guidance note and checked the Data Entry page to see how to Add a New species.

This feature doesn't seem to be working. There is a small box to search for additional species, but no suggestions come up and there is no button to 'search' or 'add' any species to the list.

Thanks, Ian

DavidRoy commented 3 years ago

@Gary-van-Breda I remember we had this problem before. Needs fixing before we switch over

Gary-van-Breda commented 3 years ago

@IanMiddlebrook : can you take a screen shot of the "broken" search box?
Also, could you look at the browser console and check if there are any JS errors?

IanMiddlebrook commented 3 years ago

image

Not sure if this is what you're looking for:

Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'https://warehouse1.indicia.org.uk/index.php/services/data/taxa_taxon_list' at Function.error (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:2) at HTMLInputElement. (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:385) at Function.each (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:2) at S.fn.init.each (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:2) at S.fn.init.a.fn. [as autocomplete] (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:385) at bindSpeciesAutocomplete (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:6418) at Object. (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:4828) at Function.each (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:2) at TableHeader.Drupal.TableHeader.createSticky (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:4827) at new TableHeader (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:809)

IanMiddlebrook commented 3 years ago

Not sure that copied across properly:

js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:2 Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'https://warehouse1.indicia.org.uk/index.php/services/data/taxa_taxon_list' at Function.error (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:2) at HTMLInputElement. (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:385) at Function.each (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:2) at S.fn.init.each (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:2) at S.fn.init.a.fn. [as autocomplete] (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:385) at bindSpeciesAutocomplete (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:6418) at Object. (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:4828) at Function.each (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:2) at TableHeader.Drupal.TableHeader.createSticky (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:4827) at new TableHeader (js_oMNYNUs-0qBbd0cV1OcF7TUHBofUqwBKr703ZE3lN58.js:809)

Gary-van-Breda commented 3 years ago

I've switched off the Masquerade block on all Indicia pages: there is a function name used in both the masquerade and the indicia pages ("autocomplete"), but the 2 different definitions clash.
@IanMiddlebrook , can you try again? I've also put in a tweak to the form which should mean the loading of the occurrences page is faster.

IanMiddlebrook commented 3 years ago

Yes @Gary-van-Breda, that's working properly for me now.

Thanks, Ian

DavidRoy commented 3 years ago

Thanks, closing now