[Loris-dev] data_dictionary_builder.php

Tom Beaudry waveflux at gmail.com
Wed Feb 18 12:04:26 EST 2015


Hi Everyone,

So the first time I ran the data_dictionary_builder.php script it worked.
I just modified a linst file (I added a static field for scoring), and
tried to run it again to see if I could select that field using the DQT.  I
deleted the old ip_output.txt file and created a new one.  I then tried to
run the script but I get this error now:


Inserting BostonNamingTest multipleChoice20_status
canadachina: INSERT INTO parameter_type SET `ParameterTypeID`='294',
`Name`='BostonNamingTest_multipleChoice20_status',
`Type`='enum(\'not_answered\')', `Description`=NULL,
`SourceField`='multipleChoice20_status', `SourceFrom`='BostonNamingTest',
`CurrentGUITable`='quat_table_2', `Queryable`='1'<br>
canadachina: SHOW INDEX FROM parameter_type<br>
1canadachina: INSERT INTO parameter_type_category_rel SET
`ParameterTypeID`='294', `ParameterTypeCategoryID`='28'<br>
canadachina: SHOW INDEX FROM parameter_type_category_rel<br>
Inserting BostonNamingTest
canadachina: INSERT INTO parameter_type SET `ParameterTypeID`='598',
`Name`='BostonNamingTest_', `Type`='page', `Description`='Boston Naming
Test - Page 3', `SourceField`=NULL, `SourceFrom`='BostonNamingTest',
`CurrentGUITable`='quat_table_2', `Queryable`='1'<br>
PHP Fatal error:  Uncaught exception 'Exception' with message 'Insert
statement did not execute successfully.' in
/var/www/loris/php/libraries/Database.class.inc:273
Stack trace:
#0 /var/www/loris/tools/data_dictionary_builder.php(159):
Database->insert('parameter_type', Array)
#1 {main}
  thrown in /var/www/loris/php/libraries/Database.class.inc on line 273

It seems like it's trying to add my page break into the paramter_type table
(which I am guessing it shouldn't).  It also jumps from ParamterTypeID 294
to 598.

Any ideas?  Thanks!
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20150218/b0ec55a5/attachment.html>


More information about the Loris-dev mailing list