[Loris-dev] php instruments

Tom Beaudry waveflux at gmail.com
Wed Feb 25 15:03:33 EST 2015


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20150225/f23c0b58/attachment.html>


More information about the Loris-dev mailing list