[Loris-dev] php instruments

Tom Beaudry waveflux at gmail.com
Wed Feb 25 15:23:32 EST 2015


Hi Rathi,

I had set those lines to what you suggested, and the name of my file is
correct.  Here is a copy:

Thanks,
Tom

On Wed, Feb 25, 2015 at 3:12 PM, Rathi Gnanasekaran <sekaranrathi at gmail.com>
wrote:

> Hi Tom,
> Can you please double check that the class name is
> NDB_BVL_Instrument_Genetics_Uploader. You may have forgotten to change it
> when you used the uploader template to create the instrument.
> Also in the setup function make sure the following variables are set
> correctly:
>
> // set the object properties
>         $this->testName = "Genetics_Uploader";           //
> test_names.Test_name
>         $this->table = 'Genetics_Uploader';              // name of
> database table corresponding to instrument
>
> If the class name is fine, then please send us the instrument so we can
> debug further.
>
> Thanks,
> Rathi
>
> On Wed, Feb 25, 2015 at 3:03 PM, Tom Beaudry <waveflux at gmail.com> wrote:
>
>> Hi Guys,
>>
>> If i print out the value of the line, I get:
>>
>>
>> /var/www/loris/project/instruments/NDB_BVL_Instrument_Genetics_Uploader.class.inc
>>
>> This does in fact point to a file that exsits.
>>
>> Tom
>>
>> On Wed, Feb 25, 2015 at 2:58 PM, Dave MacFarlane <
>> david.macfarlane2 at mcgill.ca> wrote:
>>
>>> The line generating the error seems to be:
>>>
>>>  include_once $base."project/instruments/$class.class.inc";
>>>
>>> What's the value of  $base."project/instruments/$class.class.inc" if you
>>> print it out before the include?
>>>
>>> My second guess (after permissions) would be either the base path is
>>> misconfigured or the case sensitivity of the class name doesn't match the
>>> file system (PHP isn't case sensitive, but the file system is..)
>>>
>>> - Dave
>>> ------------------------------
>>> Date: Wed, 25 Feb 2015 14:37:06 -0500
>>> From: waveflux at gmail.com
>>> To: justinkat at gmail.com
>>> CC: loris-dev at bic.mni.mcgill.ca
>>> Subject: Re: [Loris-dev] php instruments
>>>
>>>
>>> Hi Justin,
>>>
>>> I have already set the permission of the class.inc file and the .sql it
>>> created to 775, so it's not that.
>>>
>>> Tom
>>>
>>> On Wed, Feb 25, 2015 at 2:32 PM, Justin Kat <justinkat at gmail.com> wrote:
>>>
>>> First thing I would probably do is check your permissions on the
>>> instrument file.
>>>
>>> Justin
>>>
>>> On Wed, Feb 25, 2015 at 2:27 PM, Tom Beaudry <waveflux at gmail.com> wrote:
>>>
>>> Hi Guys,
>>>
>>> So i created an uploader based off of the template:
>>> https://github.com/aces/Loris/blob/master/docs/instruments/NDB_BVL_Instrument_UPLOADER_TEMPLATE.class.inc
>>>
>>> I followed the info from this page on how to add it to LORIS:
>>> https://github.com/aces/Loris/wiki/Instrument-Coding-Guide
>>>
>>> and now I am trying to test it.  I created a new candidate and a visit,
>>> and I see the instrument on the front end.  When I select it, I get a
>>> completely blank page.
>>>
>>> I checked the apache log and I get:
>>> *PHP Fatal error:  Class 'NDB_BVL_Instrument_Genetics_Uploader' not
>>> found in /var/www/loris/php/libraries/NDB_BVL_Instrument.class.inc on line
>>> 218, referer:
>>> https://canadachina.loris.ca/main.php?test_name=instrument_list&candID=271744&sessionID=50
>>> <https://canadachina.loris.ca/main.php?test_name=instrument_list&candID=271744&sessionID=50>*
>>> *[lorisadmin at canadachina project]$ vi
>>> /var/www/loris/php/libraries/NDB_BVL_Instrument.class.inc*
>>>
>>> I also looked at the queries from the showDatabaseQueries flag and i
>>> didn't see anything there causing the problem.
>>>
>>> Any ideas? Thanks!
>>> Tom
>>>
>>>
>>>
>>> _______________________________________________
>>> Loris-dev mailing list
>>> Loris-dev at bic.mni.mcgill.ca
>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>>
>>>
>>>
>>>
>>> _______________________________________________ Loris-dev mailing list
>>> Loris-dev at bic.mni.mcgill.ca
>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>>
>>
>>
>> _______________________________________________
>> Loris-dev mailing list
>> Loris-dev at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20150225/bb414b20/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NDB_BVL_Instrument_Genetics_Uploader.class.inc
Type: application/octet-stream
Size: 6018 bytes
Desc: not available
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20150225/bb414b20/attachment-0001.obj>


More information about the Loris-dev mailing list