[Loris-dev] creating a new instrument

Christine Rogers christine.rogers at mcgill.ca
Mon Jan 11 12:33:53 EST 2016


Hi Tom,

I suspect you're missing just one step -- make your php instrument file
apache readable.
Try:
cd /var/www/loris/project/instruments/
chmod a+r *

(You might need to use sudo in order to chmod, depending on your setup.)
The good news is this isn't new for 15.10.
cheers,
Christine

On Mon, Jan 11, 2016 at 12:26 PM, Tom Beaudry <waveflux at gmail.com> wrote:

> 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
>
> _______________________________________________
> Loris-dev mailing list
> Loris-dev at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>
>


-- 

christine.rogers at mcgill.ca
LORIS data systems | loris.ca
McGill Centre for Integrative Neuroscience| MCIN.ca
McConnell Brain Imaging Centre
Montreal Neurological Institute
McGill University | Montreal | Canada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20160111/4f8bff93/attachment.html>


More information about the Loris-dev mailing list