[Loris-dev] creating a new instrument

Tom Beaudry waveflux at gmail.com
Mon Jan 11 12:26:34 EST 2016


Hi guys,

I am creating an instrument in php.  I've done it before, but for some
reason - it doesn't seem to work for me in 15.10.  This is what I've done -
What am I missing?

1.  I modify the templatate, NDB_BVL_Instrument_TEMPLATE.class.inc,  and
insert my instrument name (Medications) into the appropriate places.  I
don't modify anything else in the file.

2.  I run quickform_parser.php  and generate_tables_sql.php.

3.  i source the instrument in mysql

4.  I add the instrument to the test_name and test_battery tables

5.  I create a candidate, a visit, and click on the test that I created and
I get a blank screen.

The error from the apache log is:

[Mon Jan 11 12:07:51 2016] [error] [client 192.168.122.1] PHP Warning:
 include_once(/var/www/loris/project/instruments/NDB_BVL_Instrument_Medications.class.inc):
failed to open stream: Permission denied in
/var/www/loris/php/libraries/NDB_Caller.class.inc on line 461
[Mon Jan 11 12:07:51 2016] [error] [client 192.168.122.1] PHP Warning:
 include_once(): Failed opening
'/var/www/loris/project/instruments/NDB_BVL_Instrument_Medications.class.inc'
for inclusion
(include_path='/PATH/TO/EXTERNAL/LIBRARY/:/var/www/loris/vendor/
pear-pear.php.net/Benchmark:/var/www/loris/vendor/pear-pear.php.net/HTML_Common:/var/www/loris/vendor/pear-pear.php.net/HTML_QuickForm:/var/www/loris/vendor/pear-pear.php.net/Mail:/var/www/loris/vendor/pear-pear.php.net/Pager:.:/usr/share/php:/usr/share/pear:/var/www/loris/project/libraries:/var/www/loris/php/libraries:../project/libraries:../php/libraries:')
in /var/www/loris/php/libraries/NDB_Caller.class.inc on line 461
[Mon Jan 11 12:07:51 2016] [error] [client 192.168.122.1] PHP Warning:
 include_once(/var/www/loris/project/instruments/NDB_BVL_Instrument_Medications.class.inc):
failed to open stream: Permission denied in
/var/www/loris/php/libraries/NDB_BVL_Instrument.class.inc on line 200
[Mon Jan 11 12:07:51 2016] [error] [client 192.168.122.1] PHP Warning:
 include_once(): Failed opening
'/var/www/loris/project/instruments/NDB_BVL_Instrument_Medications.class.inc'
for inclusion
(include_path='/PATH/TO/EXTERNAL/LIBRARY/:/var/www/loris/vendor/
pear-pear.php.net/Benchmark:/var/www/loris/vendor/pear-pear.php.net/HTML_Common:/var/www/loris/vendor/pear-pear.php.net/HTML_QuickForm:/var/www/loris/vendor/pear-pear.php.net/Mail:/var/www/loris/vendor/pear-pear.php.net/Pager:.:/usr/share/php:/usr/share/pear:/var/www/loris/project/libraries:/var/www/loris/php/libraries:../project/libraries:../php/libraries:')
in /var/www/loris/php/libraries/NDB_BVL_Instrument.class.inc on line 200
[Mon Jan 11 12:07:51 2016] [error] [client 192.168.122.1] PHP Fatal error:
 Class 'NDB_BVL_Instrument_Medications' not found in
/var/www/loris/php/libraries/NDB_BVL_Instrument.class.inc on line 203


Thanks!
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20160111/346f413c/attachment.html>


More information about the Loris-dev mailing list