[Loris-dev] Unable to Access the Front-end

Laetitia Fesselier laetitia.fesselier at mcin.ca
Tue Nov 22 12:16:10 EST 2022


Hello Aaron,

Thanks for reaching out. It appears that your config.xml is at the correct
place, but that its syntax is wrong.
You can try this tool to check if there is any syntax problem in your
config.xml: https://www.liquid-technologies.com/online-xml-validator
Also, here is a config.xml template you can use for comparison:
https://github.com/aces/Loris/blob/main/raisinbread/config/config.xml
Let us know if that solves your issue.

The Loris Team




On Tue, Nov 22, 2022 at 11:48 AM Aaron Chen <kchen339 at wisc.edu> wrote:

> Good morning,
>
> Hope this email finds you well. Our team is trying to set up the LORIS
> system for research. It was working before but somehow, we aren't able to
> access the front-end. Below are some snips of errors from the
> loris-error.log under the /var/log/apache2/ directory.
>
>     [Mon Nov 21 22:05:36.946133 2022] [php7:warn] [pid 495460] [client
> 128.105.29.144:61741] PHP Warning:  simplexml_load_file():
> /var/www/loris/php/libraries/../../project/config.xml:69: parser error :
> Opening and ending tag mismatch: item line 69 and tem in
> /var/www/loris/php/libraries/NDB_Config.class.inc on line 97
>     [Mon Nov 21 22:05:36.946178 2022] [php7:warn] [pid 495460] [client
> 128.105.29.144:61741] PHP Warning:  simplexml_load_file():
> <item value="V2">V2 label description</tem> in
> /var/www/loris/php/libraries/NDB_Config.class.inc on line 97
>     [Mon Nov 21 22:05:36.946190 2022] [php7:warn] [pid 495460] [client
> 128.105.29.144:61741] PHP Warning:  simplexml_load_file():
>                                          ^ in
> /var/www/loris/php/libraries/NDB_Config.class.inc on line 97
>     [Mon Nov 21 22:05:36.946239 2022] [php7:error] [pid 495460] [client
> 128.105.29.144:61741] PHP Fatal error:  Uncaught Exception: Could not
> load Loris config file
> /var/www/loris/php/libraries/../../project/config.xml in
> /var/www/loris/php/libraries/NDB_Config.class.inc:100
>     Stack trace:
>     #0 /var/www/loris/php/libraries/NDB_Config.class.inc(70):
> NDB_Config->load()
>     #1 /var/www/loris/php/libraries/NDB_Factory.class.inc(104):
> NDB_Config::singleton()
>     #2 /var/www/loris/php/libraries/NDB_Client.class.inc(54):
> NDB_Factory->config()
>     #3 /var/www/loris/htdocs/index.php(34): NDB_Client->initialize()
>     #4 {main}
>       thrown in /var/www/loris/php/libraries/NDB_Config.class.inc on line
> 100
>
> It seems like the path to the config.xml isn't correct. It should be
> /var/www/loris/php/libraries/project/config.xml, not
> /var/www/loris/php/libraries/../../project/config.xml. Where could I change
> the path?
>
> Any help would be much appreciated.
>
> Best,
> Aaron Chen
>
> _______________________________________________
> Loris-dev mailing list
> Loris-dev at bic.mni.mcgill.ca
> https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>


-- 
Laetitia Fesselier
LORIS Software Developer
Montreal Neurological Institute
McGill University
laetitia.fesselier at mcin.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20221122/62a12f0e/attachment.html>


More information about the Loris-dev mailing list