Skip to content

[instrument_builder] database errors #9627

@adamdaudrich

Description

@adamdaudrich

While attempting to test the following test:

  1. Edit DatabaseName and Question in the table directly and check if it sticks

While running php assign_missing_instruments confirm
I got the following error:


PHP Fatal error:  Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'adaudrich_dev.adam_test_1' doesn't exist in /var/www/loris/php/libraries/Database.class.inc:415
Stack trace:
#0 /var/www/loris/php/libraries/Database.class.inc(415): PDOStatement->execute()
#1 /var/www/loris/php/libraries/Database.class.inc(232): Database->_realinsert()
#2 /var/www/loris/php/libraries/NDB_BVL_Battery.class.inc(232): Database->insert()
#3 /var/www/loris/tools/assign_missing_instruments.php(128): NDB_BVL_Battery->addInstrument()
#4 /var/www/loris/tools/assign_missing_instruments.php(153): populateVisitLabel()
#5 {main}
  thrown in /var/www/loris/php/libraries/Database.class.inc on line 415

My understanding is that table creation is not required for linst instruments.

I also ran php assign_missing_instruments V3 and got the following error:

PHP Fatal error:  Uncaught PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 's.CandiateID' in 'on clause' in /var/www/loris/src/Database/Query.php:46
Stack trace:
#0 /var/www/loris/src/Database/Query.php(46): PDOStatement->execute()
#1 /var/www/loris/tools/assign_missing_instruments.php(144): LORIS\Database\Query->getIterator()
#2 {main}
  thrown in /var/www/loris/src/Database/Query.php on line 46

Therefore:

  1. Preview Instrument - NOT TESTED

  2. Add Rules - NOT TESTED

  3. Save Rules file - NOT TESTED

  4. Validate Instrument (Does not save if there is a same QuestionName twice) NOT TESTED

Metadata

Metadata

Labels

27.0.0 - BugsBugs Found in LORIS 27 testingModule: instrument_builderPR or issue related to instrument_builder module

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions