<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Hi,</div>
<div class="elementToProof">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thank you very much for the help. I did see there was a typo in my config.xml file. However, the front end is still inaccessible after I corrected the typo. I also throw our XML file into the XML validator but there is no syntax error. Below is the new error
log I got after fixing the typo.<br>
</div>
<div id="Signature">
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>
<div>
<div>
<blockquote itemscope="" itemtype="https://schemas.microsoft.com/QuotedText" style="border-color:rgb(200,200,200); border-left:3px solid rgb(200,200,200); padding-left:1ex; margin-left:0.8ex; color:rgb(102,102,102)">
[Tue Nov 22 16:40:55.155037 2022] [php7:notice] [pid 500127] [client 10.138.220.162:62703] [ERROR] Unable to load template 'file:404.tpl'#0 /var/www/loris/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render()<br>
<div>#1 /var/www/loris/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()</div>
<div>#2 /var/www/loris/src/Http/Error.php(86): Smarty_Internal_TemplateBase->fetch()</div>
<div>#3 /var/www/loris/src/Router/PrefixRouter.php(102): LORIS\\Http\\Error->__construct()</div>
<div>#4 /var/www/loris/php/libraries/Module.class.inc(340): LORIS\\Router\\PrefixRouter->handle()</div>
<div>#5 /var/www/loris/src/Router/ModuleRouter.php(77): Module->handle()</div>
<div>#6 /var/www/loris/src/Middleware/ExceptionHandlingMiddleware.php(54): LORIS\\Router\\ModuleRouter->handle()</div>
<div>#7 /var/www/loris/src/Router/BaseRouter.php(126): LORIS\\Middleware\\ExceptionHandlingMiddleware->process()</div>
<div>#8 /var/www/loris/src/Middleware/ResponseGenerator.php(50): LORIS\\Router\\BaseRouter->handle()</div>
<div>#9 /var/www/loris/src/Middleware/ContentLength.php(52): LORIS\\Middleware\\ResponseGenerator->process()</div>
<div>#10 /var/www/loris/htdocs/index.php(55): LORIS\\Middleware\\ContentLength->process()</div>
<div>#11 {main}</div>
</blockquote>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px">
</p>
</div>
<div>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span class="ContentPasted1" style="color:black; font-size:12pt"></span></p>
<blockquote itemscope="" itemtype="https://schemas.microsoft.com/QuotedText" style="border-color:rgb(200,200,200); border-left:3px solid rgb(200,200,200); padding-left:1ex; margin-left:0.8ex; color:rgb(102,102,102)">
[Tue Nov 22 16:40:55.159740 2022] [php7:error] [pid 500127] [client 10.138.220.162:62703] PHP Fatal error: Uncaught --> Smarty: Unable to load template 'file:500.tpl' <-- \n thrown in /var/www/loris/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
on line 195<br class="ContentPasted1">
</blockquote>
<blockquote itemscope="" itemtype="https://schemas.microsoft.com/QuotedText" style="border-color:rgb(200,200,200); border-left:3px solid rgb(200,200,200); padding-left:1ex; margin-left:0.8ex; color:rgb(102,102,102)">
[Tue Nov 22 16:40:55.159776 2022] [php7:notice] [pid 500127] [client 10.138.220.162:62703] [CRITICAL] /var/www/loris/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:195: Uncaught --> Smarty: Unable to load template 'file:500.tpl' <-- \n thrown<br>
</blockquote>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px">
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span class="ContentPasted0" style="color:black; font-size:12pt">It seems like there are some other errors that LORIS is trying to display via frontend but can't find the template in the system. Though, I did find 404.tpl and 500.tpl under /var/www/loris/smarty/templates/
directory. Also, the path to load the config.xml somehow was fixed by itself as I didn't see the error message again in the log file.<img size="31447" style="max-width:100%" data-outlook-trace="F:1|T:1" src="cid:2260ab22-b5a5-46c8-9828-84261b9d78c6"><br>
</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span style="color:black; font-size:12pt">Thank you in advance!<br>
</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span style="color:black; font-size:12pt"><br>
</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span style="color:black; font-size:12pt">Best,</span></p>
</div>
<div>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; margin-top:0px; margin-bottom:0px; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span style="color:black; font-size:12pt">Aaron<br>
</span></p>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Dave MacFarlane <dave.macfarlane@mcin.ca><br>
<b>Sent:</b> Tuesday, November 22, 2022 11:44 AM<br>
<b>To:</b> Aaron Chen <kchen339@wisc.edu><br>
<b>Cc:</b> loris-dev@bic.mni.mcgill.ca <loris-dev@bic.mni.mcgill.ca><br>
<b>Subject:</b> Re: [Loris-dev] Unable to Access the Front-end</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hi Aaron,</div>
<div><br>
</div>
<div>After resolving the ../ references the path looks like it's correctly looking at /var/www/loris/project.xml but the errors suggest that the file isn't valid xml. </div>
<div><br>
</div>
<div>It looks like from the second line <item value="V2">V2 label description</tem> that you made a typo in the V2 and missed the "i" in the closing tag for the "item" tag.</div>
<div><br>
</div>
<div>- Dave<br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Tue, Nov 22, 2022 at 11:48 AM Aaron Chen <<a href="mailto:kchen339@wisc.edu" data-auth="NotApplicable">kchen339@wisc.edu</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg-1645372479113830275">
<div dir="ltr">
<div>Good morning,</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<blockquote style="border-color:rgb(200,200,200); border-left:3px solid rgb(200,200,200); padding-left:1ex; margin-left:0.8ex; color:rgb(102,102,102)">
<div> [Mon Nov 21 22:05:36.946133 2022] [php7:warn] [pid 495460] [client <a href="http://128.105.29.144:61741" data-auth="NotApplicable">
128.105.29.144:61741</a>] 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</div>
<div> [Mon Nov 21 22:05:36.946178 2022] [php7:warn] [pid 495460] [client <a href="http://128.105.29.144:61741" data-auth="NotApplicable">
128.105.29.144:61741</a>] 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</div>
<div> [Mon Nov 21 22:05:36.946190 2022] [php7:warn] [pid 495460] [client <a href="http://128.105.29.144:61741" data-auth="NotApplicable">
128.105.29.144:61741</a>] PHP Warning: simplexml_load_file(): ^ in /var/www/loris/php/libraries/NDB_Config.class.inc on line 97</div>
<div> [Mon Nov 21 22:05:36.946239 2022] [php7:error] [pid 495460] [client <a href="http://128.105.29.144:61741" data-auth="NotApplicable">
128.105.29.144:61741</a>] 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</div>
<div> Stack trace:</div>
<div> #0 /var/www/loris/php/libraries/NDB_Config.class.inc(70): NDB_Config->load()</div>
<div> #1 /var/www/loris/php/libraries/NDB_Factory.class.inc(104): NDB_Config::singleton()</div>
<div> #2 /var/www/loris/php/libraries/NDB_Client.class.inc(54): NDB_Factory->config()</div>
<div> #3 /var/www/loris/htdocs/index.php(34): NDB_Client->initialize()</div>
<div> #4 {main}</div>
<div> thrown in /var/www/loris/php/libraries/NDB_Config.class.inc on line 100</div>
</blockquote>
<div>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?</div>
<div><br>
</div>
<div>Any help would be much appreciated.</div>
<div><br>
</div>
<div>Best,</div>
<div>Aaron Chen</div>
<br>
</div>
_______________________________________________<br>
Loris-dev mailing list<br>
<a href="mailto:Loris-dev@bic.mni.mcgill.ca" data-auth="NotApplicable">Loris-dev@bic.mni.mcgill.ca</a><br>
<a href="https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev" data-auth="NotApplicable">https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev</a><br>
</div>
</blockquote>
</div>
</div>
</body>
</html>