1

Topic: Vertification form 4 error

When trying to load the vertification 4 form I get following error:

Notice: Undefined index: wms_base_title in iform_map_get_map_options() (line 277 of C:\xampp\htdocs\test_web\sites\all\modules\iform\client_helpers\prebuilt_forms\includes\map.php).
Notice: Undefined index: tile_cache_layers in iform_map_get_map_options() (line 286 of C:\xampp\htdocs\test_web\sites\all\modules\iform\client_helpers\prebuilt_forms\includes\map.php).
Notice: Undefined index: openlayers_options in iform_map_get_ol_options() (line 387 of C:\xampp\htdocs\test_web\sites\all\modules\iform\client_helpers\prebuilt_forms\includes\map.php).

PS: I took advantage to upgrade my php to 5.6+ and copying all my files in a new version of XAMPP


Dieter

2

Re: Vertification form 4 error

Hi Dieter
I think this is a problem introduced by using PHP 5.6. I've updated this particular code file in Subversion but you might spot other errors - let us know if you do.
Regards
John

John van Breda
Biodiverse IT

3

Re: Vertification form 4 error

I forgot to say - the change you need can be found at https://code.google.com/p/indicia/source/detail?r=9398 in the repository.
Regards
John

John van Breda
Biodiverse IT

4

Re: Vertification form 4 error

I still get the same errors. I don't think it's related to the version of php since the same errors appear with php 5.3

Dieter

5

Re: Vertification form 4 error

Nevermind. Probably two different errors. I keep forgetting to checkout the svn in the drupal iform folder as well. :lol:

However, can comeone help me with this log? What did I forget?

2015-06-08 19:16:50 +02:00 --- error: Missing i18n entry general_errors.There was an SQL error: ERROR:  function st_makevalid(geometry) does not exist
LINE 36:   AND (''='' OR st_intersects(s.geom, ST_MakeValid(st_geomfr...
                                               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts. - 
  SELECT o.id as occurrence_id,
w.title as website,
o.survey_title as survey,
o.recorders as user,
o.sample_id as sample_id,
o.preferred_taxon as taxon,
CASE WHEN o.preferred_taxon=o.default_common_name THEN null ELSE o.default_common_name END as common,
o.taxa_taxon_list_id as taxa_taxon_list_id,
o.location_name as location_name,
coalesce(o.public_entered_sref, s.entered_sref) as entered_sref,
o.date_start as date_start,
o.date_end as date_end,
o.date_type as date_type,
o.zero_abundance as zero_abundance,
o.taxon_group as taxon_group,
o.record_status as record_status,
st_astext(coalesce(s.geom, o.public_geom)) as geom,
round(length(o.public_entered_sref) / 24.0, 2) as fo,
case o.record_status when 'C' then        case o.certainty when 'C' then 'green' when 'L' then 'orange' when 'U' then 'red' else 'blue' end     when 'V' then 'green'     when 'D' then 'orange'     when 'R' then 'red'     else 'black' end as sc,
case o.record_status when 'V' then 'green' when 'D' then 'orange' when 'R' then 'red' else 'blue' end as fc,
length(o.public_entered_sref) as zi,
CASE WHEN o.data_cleaner_info='pass' THEN '<div class="pass-icon" title="This record passes all automated verification checks."/></div>' WHEN not w.verification_checks_enabled THEN '<div title="This record is not included in the automated verification check system."/>-</div>' END as pass,
case when o.data_cleaner_info is not null and o.data_cleaner_info<>'pass' then              replace(replace(replace(replace(o.data_cleaner_info, '[', '<div class="fail-icon '), ']', '" '), '{', 'title="'), '}', '"></div>')          end as fails,
o.images as images
  FROM cache_occurrences o
  JOIN samples s on s.id=o.sample_id
  JOIN websites w on w.id=o.website_id 
  JOIN users privacyusers ON privacyusers.id=o.created_by_id
  


  WHERE (o.training=false OR o.training IS NULL) AND (o.website_id in (2) OR privacyusers.id=1 OR privacyusers.allow_share_for_verification=true OR privacyusers.allow_share_for_verification IS NULL)
AND o.website_id in (2) 
  AND ('unverified'<>'fail' OR (o.data_cleaner_info is not null and o.data_cleaner_info <>'pass'))
  AND (''='' OR st_intersects(s.geom, ST_MakeValid(st_geomfromtext('',900913))))
  
  AND o.record_status IN ('C','S')
 ORDER BY o.id DESC LIMIT 21 for language en_GB

6

Re: Vertification form 4 error

ST_MakeValid is a PostGIS function.
http://postgis.net/docs/ST_MakeValid.html
It says it is available from version 2.0.0.
Could you have an older version installed?

Jim Bacon

7 (edited by dieter 10-06-2015 21:19:48)

Re: Vertification form 4 error

Well, that was the problem for that error! Would be cool if you guys update the indicia docs from time to time. Would save me a lot of time (and frustration :p). I had to start all over again (luckily I can export the survey structure but this is also not optimal, when I do a cache rebuild, some data out of the lists dissapears, adding it again via import/manual solves it eventually...)

But still not completely solved! When I hit a record to verify, nothing happens (no log file is created either). I rember that the details of the records should show up and the options to verify and so on. But no, nothing.

8

Re: Vertification form 4 error

Hi Dieter,

Sorry for the frustration and waste of time. I have added a note to the documentation.
http://indicia-docs.readthedocs.org/en/ … ation.html
Would also be cool if you would like to help improve the documentation.

The problem you are now encountering sounds very similar to http://forums.nbn.org.uk/viewtopic.php?id=5948.
Can you check to see whether you are getting the same JavaScript error as Carlo?

Jim Bacon.

9 (edited by dieter 11-06-2015 18:05:10)

Re: Vertification form 4 error

Hmm, this is the report of the console

Oh, and if I stumble on something that needs to be changed on the docs I'm happy to help.

Post's attachments

Clipboard01.jpg 65.68 kb, 1 downloads since 2015-06-11 

You don't have the permssions to download the attachments of this post.

10

Re: Vertification form 4 error

Hi Dieter,

Have you selected a Preset Base Layer in the Base Map Layers settings configuration for the page?

Thanks for your offer to help with the documentation. That is much appreciated.

Jim Bacon.

11

Re: Vertification form 4 error

Whoops, my mistake! :)

If I have time I make a tutorial for indicia 0.9.1 for starters like me (from scratch to basic recording site). See this as a thank you for all your help so far. But it will not be for the coming weeks/months thought. First I have to finish this. ;)

Dieter