<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 Dave,</div>
<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)">
<br>
</div>
<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)">
I just realized that there should be no forward slash before it since there is a forward slash at the end of the base path which I forgot to add at the beginning. Sorry for bothering you and thank you very much for your help!<br>
</div>
<div class="elementToProof">
<div id="Signature">
<div>
<div></div>
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>
<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; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span style="color:black; font-size:12pt"><br>
</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; 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; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span style="color:black; font-size:12pt">Aaron</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> Aaron Chen <kchen339@wisc.edu><br>
<b>Sent:</b> Wednesday, November 23, 2022 1:27 PM<br>
<b>To:</b> Dave MacFarlane <dave.macfarlane@mcin.ca><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 dir="ltr">
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Hi Dave,<br>
</div>
<div class="x_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)">
It is working! Seems like it is because the path wasn't correct. We forgot to add the forward slash at the end of the path. Very much appreciated your help.</div>
<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)">
There is also one question I will like to ask which might be an error too. I was trying to debug it by myself before knowing the missing forward slash. I got an error log like this.</div>
<div class="x_ContentPasted0" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<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)">
[Sat Nov 19 23:30:15.205931 2022] [php7:error] [pid 485530] [client 10.138.220.162:59913] PHP Fatal error: Uncaught LorisNoSuchModuleException: No such module: acknowledgements in /var/www/loris/php/libraries/Module.class.inc:123
<div class="x_ContentPasted0">Stack trace:</div>
<div class="x_ContentPasted0">#0 /var/www/loris/src/LorisInstance.php(79): Module::factory()</div>
<div class="x_ContentPasted0">#1 /var/www/loris/src/LorisInstance.php(111): LORIS\\LorisInstance->getActiveModules()</div>
<div class="x_ContentPasted0">#2 /var/www/loris/src/Router/BaseRouter.php(111): LORIS\\LorisInstance->hasModule()</div>
<div class="x_ContentPasted0">#3 /var/www/loris/src/Middleware/ResponseGenerator.php(50): LORIS\\Router\\BaseRouter->handle()</div>
<div class="x_ContentPasted0">#4 /var/www/loris/src/Middleware/ContentLength.php(52): LORIS\\Middleware\\ResponseGenerator->process()</div>
<div class="x_ContentPasted0">#5 /var/www/loris/htdocs/index.php(55): LORIS\\Middleware\\ContentLength->process()</div>
<div class="x_ContentPasted0">#6 {main}</div>
thrown in /var/www/loris/php/libraries/Module.class.inc on line 123<br>
</blockquote>
</div>
<div id="x_Signature">
<div>
<div></div>
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>
<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; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span style="color:black; font-size:12pt">I found out that the path to find the module in the Module.class.inc file wasn't correct. I added a forward slash before project and modules and the error was gone.<img class="x_ContentPasted1 x_w-990 x_h-231" size="49450" style="max-width:100%" data-outlook-trace="F:2|T:2" src="cid:6f4d8945-b5a6-4ac0-9c29-ba9d544cb59b"><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; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span class="x_ContentPasted2" style="color:black; font-size:12pt">Should there be a forward slash before project and modules? Thank you in advance and Happy Thanksgiving!<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; font-size:11pt; font-family:Calibri,sans-serif; margin:0">
<span style="color:black; font-size:12pt"><br>
</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; 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; 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="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_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> Wednesday, November 23, 2022 9:08 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>This sometimes happens if the base path config setting isn't set correctly.</div>
<div><br>
</div>
<div>Can you run the SQL: SELECT * from Config WHERE ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='base');</div>
<div>and see what the result is? Also check if there's a xml tag named <base> in the config.xml (which would override the database value)</div>
<div><br>
</div>
<div>The value should be the directory where you installed LORIS including the trailing slash. ie `/var/www/loris/` (errors like this sometimes happen if it's set to `/var/www/loris`)</div>
<div><br>
</div>
<div>If that config value is correct, it could also be a filesystem permission issue. Make sure the files' unix permissions are readable by apache and the directory permissions leading up to it are all executable by apache (including the /var and /var/www).</div>
<div><br>
</div>
<div>- Dave<br>
</div>
<div><br>
</div>
</div>
<br>
<div class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">On Wed, Nov 23, 2022 at 9:04 AM Aaron Chen <<a href="mailto:kchen339@wisc.edu" data-auth="NotApplicable">kchen339@wisc.edu</a>> wrote:<br>
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_x_msg8657987354497173594">
<div dir="ltr">
<div 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>
<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="x_x_m_8657987354497173594Signature">
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>
<div>
<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)">
[Tue Nov 22 16:40:55.155037 2022] [php7:notice] [pid 500127] [client <a href="http://10.138.220.162:62703" data-auth="NotApplicable">
10.138.220.162:62703</a>] [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; font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<span style="color:black; font-size:12pt"></span></p>
<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)">
[Tue Nov 22 16:40:55.159740 2022] [php7:error] [pid 500127] [client <a href="http://10.138.220.162:62703" data-auth="NotApplicable">
10.138.220.162:62703</a>] 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>
</blockquote>
<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)">
[Tue Nov 22 16:40:55.159776 2022] [php7:notice] [pid 500127] [client <a href="http://10.138.220.162:62703" data-auth="NotApplicable">
10.138.220.162:62703</a>] [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; font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<span 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:2|T:2" src="cid:184a5021f97cb971f161"><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; font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<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; font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<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; font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<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; font-size:11pt; font-family:Calibri,sans-serif; margin:0px">
<span style="color:black; font-size:12pt">Aaron<br>
</span></p>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<div id="x_x_m_8657987354497173594appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_x_m_8657987354497173594divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Dave MacFarlane <<a href="mailto:dave.macfarlane@mcin.ca" data-auth="NotApplicable">dave.macfarlane@mcin.ca</a>><br>
<b>Sent:</b> Tuesday, November 22, 2022 11:44 AM<br>
<b>To:</b> Aaron Chen <<a href="mailto:kchen339@wisc.edu" data-auth="NotApplicable">kchen339@wisc.edu</a>><br>
<b>Cc:</b> <a href="mailto:loris-dev@bic.mni.mcgill.ca" data-auth="NotApplicable">
loris-dev@bic.mni.mcgill.ca</a> <<a href="mailto:loris-dev@bic.mni.mcgill.ca" data-auth="NotApplicable">loris-dev@bic.mni.mcgill.ca</a>><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>
<div dir="ltr">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 style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<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>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>