<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello Alfredo,</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);">
Thanks for sharing with us the parameter that needed to be adjusted. I will create a pull request to add it to the document.</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);">
Regards,<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0">M<span class="_Xbe">é</span>lanie<br>
</p>
<br>
<p style="margin-top: 0px; margin-bottom: 0px;"></p>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Morales Pinzon, Alfredo <AMORALESPINZON@BWH.HARVARD.EDU><br>
<b>Sent:</b> February 24, 2020 17:53<br>
<b>To:</b> Melanie Legault, Mrs <melanie.legault2@mcgill.ca>; Ling Ma <lingyun.ma@mcin.ca><br>
<b>Cc:</b> Sridar Narayanan, Dr. <sridar.narayanan@mcgill.ca>; loris-dev@bic.mni.mcgill.ca <loris-dev@bic.mni.mcgill.ca>; Rozie Arnaoutelis, Ms. <rozie.arnaoutelis@mcgill.ca>; Zografos Caramanos, Mr <zografos.caramanos@mcgill.ca>; Douglas Arnold, Dr. <douglas.arnold@mcgill.ca>;
 Guttmann, Charles,M.D. <guttmann@bwh.harvard.edu><br>
<b>Subject:</b> Re: [Loris-dev] Update LORIS to v21.0.0</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Dear Melanie and Ling Ma,
<div class=""><br class="">
</div>
<div class="">I made the suggested changes in the link that Melanie sent but the error was still appearing. It turned out that the proper parameter to set was “memory_limit”. I set it like this:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(128,255,167)">
<span class="" style="font-variant-ligatures:no-common-ligatures">memory_limit =</span><span class="" style="font-variant-ligatures:no-common-ligatures; color:#000000"> 150M</span></div>
<div><br class="">
</div>
<div><font color="#000000" class="">Now the imaging link is working.</font></div>
<div><font color="#000000" class=""><br class="">
</font></div>
<div><font color="#000000" class="">Thank you for your help.</font></div>
<div><font color="#000000" class=""><br class="">
</font></div>
<div><font color="#000000" class="">Regards,</font></div>
<div><font color="#000000" class="">Alfredo.</font></div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 24, 2020, at 7:32 AM, Melanie Legault, Mrs <<a href="mailto:melanie.legault2@mcgill.ca" class="">melanie.legault2@mcgill.ca</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="margin-top:0px; margin-bottom:0px; font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="padding:3px 10px; border-top-left-radius:5px; border-top-right-radius:5px; border-bottom-right-radius:5px; border-bottom-left-radius:5px; color:rgb(255,255,255); font-weight:bold; display:inline-block; background-color:rgb(255,0,0)">        External
 Email - Use Caution        </span></div>
<p class="" style="margin-top:0px; margin-bottom:0px; font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
</p>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Hello Alfredo,</div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
You may find which parameters you need to change in php.ini file to handle large file in<a href="https://github.com/aces/Loris/blob/master/docs/wiki/00%20-%20SERVER%20INSTALL%20AND%20CONFIGURATION/02%20-%20Website%20Configuration/Handling%20Large%20File%20Uploads.md" id="LPNoLP677749" class="">https://github.com/aces/Loris/blob/master/docs/wiki/00%20-%20SERVER%20INSTALL%20AND%20CONFIGURATION/02%20-%20Website%20Configuration/Handling%20Large%20File%20Uploads.md</a><br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
A restart of the Apache server will be needed after updating the file.</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Regards,<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<div class="">
<div class="">
<div dir="ltr" class="" style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px">M<span class="">é</span>lanie Legault<span class="x_Apple-converted-space"> </span><span class="" style="color:rgb(255,0,0)">|</span><span class="x_Apple-converted-space"> </span>Software developer <span class="" style="color:rgb(255,0,0)">|</span><span class="x_Apple-converted-space"> </span>Faculty
 of Medicine<span class="" style="color:rgb(255,0,0)"><span class="x_Apple-converted-space"> </span>|</span><span class="" style="color:rgb(255,0,0)">McGill University<span class="x_Apple-converted-space"> </span></span> <br class="">
</div>
<div class="">3801 University, Montr<span class=""></span><span class="">é</span><span class=""></span>al, QC H3A 2B4 </div>
<br class="">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
</div>
</div>
</div>
<div class="" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<br class="">
</div>
<div id="x_Signature" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div id="x_divtagdefaultwrapper" dir="ltr" class="" style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<br class="">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
</div>
</div>
<div id="x_appendonsend" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
</div>
<hr tabindex="-1" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; display:inline-block; width:904.53125px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important"></span>
<div id="x_divRplyFwdMsg" dir="ltr" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<font face="Calibri, sans-serif" class="" style="font-size:11pt"><b class="">From:</b><span class="x_Apple-converted-space"> </span><a href="mailto:loris-dev-bounces@bic.mni.mcgill.ca" class="">loris-dev-bounces@bic.mni.mcgill.ca</a><span class="x_Apple-converted-space"> </span><<a href="mailto:loris-dev-bounces@bic.mni.mcgill.ca" class="">loris-dev-bounces@bic.mni.mcgill.ca</a>>
 on behalf of Ling Ma <<a href="mailto:lingyun.ma@mcin.ca" class="">lingyun.ma@mcin.ca</a>><br class="">
<b class="">Sent:</b><span class="x_Apple-converted-space"> </span>February 21, 2020 17:12<br class="">
<b class="">To:</b><span class="x_Apple-converted-space"> </span>Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" class="">AMORALESPINZON@bwh.harvard.edu</a>><br class="">
<b class="">Cc:</b><span class="x_Apple-converted-space"> </span>Sridar Narayanan, Dr. <<a href="mailto:sridar.narayanan@mcgill.ca" class="">sridar.narayanan@mcgill.ca</a>>;<span class="x_Apple-converted-space"> </span><a href="mailto:loris-dev@bic.mni.mcgill.ca" class="">loris-dev@bic.mni.mcgill.ca</a><span class="x_Apple-converted-space"> </span><<a href="mailto:loris-dev@bic.mni.mcgill.ca" class="">loris-dev@bic.mni.mcgill.ca</a>>;
 Rozie Arnaoutelis, Ms. <<a href="mailto:rozie.arnaoutelis@mcgill.ca" class="">rozie.arnaoutelis@mcgill.ca</a>>; Zografos Caramanos, Mr <<a href="mailto:zografos.caramanos@mcgill.ca" class="">zografos.caramanos@mcgill.ca</a>>; Douglas Arnold, Dr. <<a href="mailto:douglas.arnold@mcgill.ca" class="">douglas.arnold@mcgill.ca</a>>;
 Guttmann, Charles, M.D. <<a href="mailto:guttmann@bwh.harvard.edu" class="">guttmann@bwh.harvard.edu</a>><br class="">
<b class="">Subject:</b><span class="x_Apple-converted-space"> </span>Re: [Loris-dev] Update LORIS to v21.0.0</font>
<div class=""> </div>
</div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div dir="auto" class="">
<div class="">Evidently the RAM is not enough, I am outside, I don't have the recommended value for you. You can check document for how much. I would recommend to increase the PHP memory allowance. Try to check PHP document for that, otherwise I can check later.
 Or maybe any other people knows better on this subject could help you.</div>
<div dir="auto" class=""> </div>
<div dir="auto" class="">Good weekend.</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">Ling<br class="">
<br class="">
<div class="x_x_gmail_quote" dir="auto">
<div dir="ltr" class="x_x_gmail_attr">On Fri., Feb. 21, 2020, 5:06 p.m. Morales Pinzon, Alfredo, <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" class="">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br class="">
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hi Ling Ma,
<div class=""><br class="">
</div>
<div class="">All set regarding php 7.2, is now enable and working. Going back to the error in the website: when I select Imaging -> Imaging Browser I got a 500 error in the front-end and the following error in the server:</div>
<div class=""><br class="">
</div>
<div class="">===</div>
<div class="">[Fri Feb 21 12:27:21.231227 2020] [php7:error] [pid 17787] [client<span class="x_Apple-converted-space"> </span><a href="http://170.223.207.1:46078/" target="_blank" rel="noreferrer" class="">170.223.207.1:46078</a>] PHP Fatal error:  Allowed
 memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/loris/php/libraries/Database.class.inc on line 714, referer:<span class="x_Apple-converted-space"> </span><a href="https://ipmsa-loris.bic.mni.mcgill.ca/" target="_blank" rel="noreferrer" class="">https://ipmsa-loris.bic.mni.mcgill.ca/</a></div>
<div class="">===</div>
<div class=""><br class="">
</div>
<div class="">Any ideas?</div>
<div class=""><br class="">
</div>
<div class="">Thank you in advance.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Alfredo.<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 21, 2020, at 10:09 AM, Ling Ma <<a href="mailto:lingyun.ma@mcin.ca" target="_blank" rel="noreferrer" class="">lingyun.ma@mcin.ca</a>> wrote:</div>
<br class="">
<div class="">
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="padding:3px 10px; border-top-left-radius:5px; border-top-right-radius:5px; border-bottom-right-radius:5px; border-bottom-left-radius:5px; color:rgb(255,255,255); font-weight:bold; display:inline-block; background-color:rgb(255,0,0)">        External
 Email - Use Caution        </span></div>
<div class=""><br class="">
</div>
<div dir="ltr" class="">If you go to "/etc/apache2/mods-enabled", you can easily find which PHP version is enabled if after restart Apache2 you still have problem. Please don't modify source code to remove "?", there should be a lot of them, not possible to
 remove all.<br class="">
</div>
<br class="">
<div class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">On Fri, Feb 21, 2020 at 10:02 AM Ling Ma <<a href="mailto:lingyun.ma@mcin.ca" target="_blank" rel="noreferrer" class="">lingyun.ma@mcin.ca</a>> wrote:<br class="">
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div dir="ltr" class="">
<div class="">Hi Alfredo,</div>
<div class=""><br class="">
</div>
<div class="">You installed PHP7.2, but you might not use the new version, you might need to restart the Apache2, or enable Apache2 to use PHP7.2. Because currently your server is still running PHP7.0 or PHP5.6. Because "?" is part of PHP7.1</div>
<div class=""><br class="">
</div>
<div class="">Please check.</div>
<div class=""><br class="">
</div>
<div class="">Good luck.</div>
<div class=""><br class="">
</div>
<div class="">Ling Ma<br class="">
</div>
</div>
<br class="">
<div class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">On Fri, Feb 21, 2020 at 9:59 AM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" target="_blank" rel="noreferrer" class="">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br class="">
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">Dear Ling Ma and Cécile,
<div class=""><br class="">
</div>
<div class="">Thank you for the help and tips. After installing php7.2-xml and php7.2-mysql I was able to finish all the steps listed in the upgrade process. I followed this post to upgrade to PHP 7.2: <a href="https://medium.com/andrewmmc-io/upgrade-php-version-to-7-2-from-7-0-c005a0926642" target="_blank" rel="noreferrer" class="">https://medium.com/andrewmmc-io/upgrade-php-version-to-7-2-from-7-0-c005a0926642</a></div>
<div class=""><br class="">
</div>
<div class="">Now we come back to the first error. Actually, the server is not running right now. I have the following error:</div>
<div class=""><br class="">
</div>
<div class="">===</div>
<div class="">
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">[Fri Feb 21 09:25:33.848915 2020] [:error] [pid 27936] [client<span class="x_Apple-converted-space"> </span><a href="http://216.15.126.108:52419/" target="_blank" rel="noreferrer" class="">216.15.126.108:52419</a>]
 PHP Parse error:  syntax error, unexpected '?', expecting variable (T_VARIABLE) in /var/www/loris/php/libraries/NDB_Client.class.inc on line 49</span></div>
<div class="">===</div>
<div class=""><br class="">
</div>
<div class="">After modifying the line 49 in <span class="" style="font-family:Menlo; font-size:11px">NDB_Client.class.inc from</span></div>
<div class=""><br class="">
</div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">===</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">function initialize(?string $configFile = null)</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">===</span></font></div>
<div class=""><br class="">
</div>
<div class="">to (removing the<span class="x_Apple-converted-space"> </span><font class="">?</font>)</div>
<div class=""> </div>
<div class="">
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">===</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">function initialize(string $configFile = null)</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">===</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px"><br class="">
</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">but I got the following error:</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px"><br class="">
</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">===</span></font></div>
<div class="">
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">[Fri Feb 21 09:37:18.042287 2020] [:error] [pid 715] [client<span class="x_Apple-converted-space"> </span><a href="http://216.15.126.108:52603/" target="_blank" rel="noreferrer" class="">216.15.126.108:52603</a>]
 PHP Parse error:  syntax error, unexpected '?', expecting variable (T_VARIABLE) in /var/www/loris/php/libraries/NDB_Factory.class.inc on line 109</span></div>
</div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">===</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px"><br class="">
</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">Is this an error in the code or I am missing something?</span></font></div>
<div class=""><br class="">
</div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">Thank you for help.</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px"><br class="">
</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">Best,</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size:11px">Alfredo.</span></font></div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 19, 2020, at 7:23 PM, Ling Ma <<a href="mailto:lingyun.ma@mcin.ca" target="_blank" rel="noreferrer" class="">lingyun.ma@mcin.ca</a>> wrote:</div>
<br class="">
<div class="">
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="padding:3px 10px; border-top-left-radius:5px; border-top-right-radius:5px; border-bottom-right-radius:5px; border-bottom-left-radius:5px; color:rgb(255,255,255); font-weight:bold; display:inline-block; background-color:rgb(255,0,0)">        External
 Email - Use Caution        </span></div>
<div class=""><br class="">
</div>
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="">Hi Alfredo,</div>
<div class=""><br class="">
</div>
<div class="">Since <span class="" style="font-family:Menlo; font-size:11px; font-variant-ligatures:no-common-ligatures">simplexml_load_file </span>is part of php-xml package, I feel that you need to install php7.2-xml if you are using PHP7.2. In Ubuntu you
 install this package with apt-get install php7.2-xml, and make sure that this module is enabled in Apache2 if you are using Apache2. You can check which module is enabled via phpinfo() call from a PHP enabled web page, or just check your Apache2 PHP modules,
 the later is easier.</div>
<div class=""><br class="">
</div>
<div class="">Good luck.</div>
<div class=""><br class="">
</div>
<div class="">Ling Ma</div>
</div>
<br class="">
<div class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">On Wed, Feb 19, 2020 at 6:18 PM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" target="_blank" rel="noreferrer" class="">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br class="">
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">Hi Ling Ma,
<div class=""><br class="">
</div>
<div class="">Thank you for the information. I would suggest to add this link to each release, where the upgrading instructions are listed, and also mention upgrading system requirements if needed.</div>
<div class=""><br class="">
</div>
<div class="">Continuing with the upgrade to v21.0.0. I checked that all the system requirements are met. Now, in having this error when executing data_dictionary_cleaner.php:</div>
<div class=""><br class="">
</div>
<div class="">===</div>
<div class="">
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures; color:rgb(57,192,38)"><b class="">lorisadmin@ipmsa-loris</b></span><span class="" style="font-variant-ligatures:no-common-ligatures">:</span><span class="" style="font-variant-ligatures:no-common-ligatures; color:rgb(86,32,244)"><b class="">/var/www/loris/tools/single_use</b></span><span class="" style="font-variant-ligatures:no-common-ligatures">$
 php data_dictionary_cleaner.php </span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">PHP Fatal error:  Uncaught Error: Call to undefined function simplexml_load_file() in /var/www/loris/php/libraries/NDB_Config.class.inc:96</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">Stack trace:</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">#0 /var/www/loris/php/libraries/NDB_Config.class.inc(70): NDB_Config->load('/var/www/loris/...')</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">#1 /var/www/loris/php/libraries/NDB_Factory.class.inc(118): NDB_Config::singleton('/var/www/loris/...')</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">#2 /var/www/loris/php/libraries/NDB_Client.class.inc(54): NDB_Factory->config('/var/www/loris/...')</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">#3 /var/www/loris/tools/generic_includes.php(25): NDB_Client->initialize('/var/www/loris/...')</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">#4 /var/www/loris/tools/single_use/data_dictionary_cleaner.php(24): require_once('/var/www/loris/...')</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">#5 {main}</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">  thrown in /var/www/loris/php/libraries/NDB_Config.class.inc on line 96</span></div>
</div>
<div class="">===</div>
<div class=""><br class="">
</div>
<div class="">Any ideas on how to solve this?</div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class="">Alfredo.<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 19, 2020, at 5:47 PM, Ling Ma <<a href="mailto:lingyun.ma@mcin.ca" target="_blank" rel="noreferrer" class="">lingyun.ma@mcin.ca</a>> wrote:</div>
<br class="">
<div class="">
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="padding:3px 10px; border-top-left-radius:5px; border-top-right-radius:5px; border-bottom-right-radius:5px; border-bottom-left-radius:5px; color:rgb(255,255,255); font-weight:bold; display:inline-block; background-color:rgb(255,0,0)">        External
 Email - Use Caution        </span></div>
<div class=""><br class="">
</div>
<div dir="ltr" class="">
<div class="">Hi Alfredo,</div>
<div class=""><br class="">
</div>
<div class="">If you check this link:</div>
<div class=""><br class="">
</div>
<a href="https://github.com/aces/Loris/blob/21.0-release/README.md" target="_blank" rel="noreferrer" class="">https://github.com/aces/Loris/blob/21.0-release/README.md</a><br class="">
<div class=""><br class="">
</div>
<div class="">and </div>
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/aces/Loris/blob/22.0-release/README.md" target="_blank" rel="noreferrer" class="">https://github.com/aces/Loris/blob/22.0-release/README.md</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">You will see that the system requires:</div>
<div class=""><br class="">
</div>
<div class=""><b class="">System Requirements</b><br class="">
</div>
<div class="">
<ul class="">
<li class="">Apache<span class="x_Apple-converted-space"> </span><strong class="">2.4</strong><span class="x_Apple-converted-space"> </span>or higher</li><li class="">MySQL >= 5.7 (or MariaDB >= 10.3)</li><li class="">PHP<span class="x_Apple-converted-space"> </span><b class="">7.2</b><span class="x_Apple-converted-space"> </span>or higher</li><li class=""><a href="https://getcomposer.org/" rel="nofollow noreferrer" target="_blank" class="">Composer</a></li><li class="">NodeJS<span class="x_Apple-converted-space"> </span><b class="">8.0</b><span class="x_Apple-converted-space"> </span>or higher</li><li class="">NPM</li><li class="">make</li></ul>
<div class="">Please make sure that you have all the latest or recent versions for each of them, otherwise you will run into trouble later.</div>
</div>
<div class=""><br class="">
</div>
<div class="">Ling Ma</div>
</div>
<br class="">
<div class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">On Wed, Feb 19, 2020 at 5:29 PM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" target="_blank" rel="noreferrer" class="">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br class="">
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">Hi Ling Ma,
<div class=""><br class="">
</div>
<div class="">Thank you. I will upgrade to PHP 7.2.</div>
<div class=""><br class="">
</div>
<div class="">BTW, I cannot find the requirements for PHP for v21, I am looking at this link:</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/aces/Loris/releases/tag/v21.0.0" target="_blank" rel="noreferrer" class="">https://github.com/aces/Loris/releases/tag/v21.0.0</a></div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class="">Alfredo.</div>
<div class=""><br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 19, 2020, at 5:18 PM, Ling Ma <<a href="mailto:lingyun.ma@mcin.ca" target="_blank" rel="noreferrer" class="">lingyun.ma@mcin.ca</a>> wrote:</div>
<br class="">
<div class="">
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="padding:3px 10px; border-top-left-radius:5px; border-top-right-radius:5px; border-bottom-right-radius:5px; border-bottom-left-radius:5px; color:rgb(255,255,255); font-weight:bold; display:inline-block; background-color:rgb(255,0,0)">        External
 Email - Use Caution        </span></div>
<div class=""><br class="">
</div>
<div dir="auto" class="">Hi Alfredo,
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">The warning is OK to ignore. As to php, please check v21 version requirements, I believe a php minimum 7.1 even 7.2 is required.</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">In fact, PHP 5.6 is no longer supported.</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">Best regards,</div>
<div dir="auto" class="">Ling Ma</div>
</div>
<br class="">
<div class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">On Wed., Feb. 19, 2020, 5:07 p.m. Morales Pinzon, Alfredo, <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" target="_blank" rel="noreferrer" class="">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br class="">
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">Dear Ling and Cécile,
<div class=""><br class="">
</div>
<div class="">Thank for your responses. </div>
<div class=""><br class="">
</div>
<div class="">I had an issue with "git checkout”, somehow I had to remove some files before being able to checkout the v21.0.0. That was the reason I didn’t have the make file. Now that I have it, I have some errors:</div>
<div class=""><br class="">
</div>
<div class="">After running “make” I have the following error:</div>
<div class=""><br class="">
</div>
<div class="">===</div>
<div class="">
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(170,171,37)">
<span class="" style="font-variant-ligatures:no-common-ligatures">    </span><span class="" style="font-variant-ligatures:no-common-ligatures"><b class="">WARNING in configuration</b></span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(170,171,37)">
<span class="" style="font-variant-ligatures:no-common-ligatures"><b class="">    The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.</b></span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(170,171,37)">
<span class="" style="font-variant-ligatures:no-common-ligatures"><b class="">    You can also set it to 'none' to disable any default behavior. Learn more:<span class="x_Apple-converted-space"> </span><a href="https://webpack.js.org/concepts/mode/" rel="noreferrer noreferrer" target="_blank" class="">https://webpack.js.org/concepts/mode/</a></b></span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">composer install --no-dev</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">> mkdir -p project/libraries</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(57,192,38)">
<span class="" style="font-variant-ligatures:no-common-ligatures">Loading composer repositories with package information</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(57,192,38)">
<span class="" style="font-variant-ligatures:no-common-ligatures">Installing dependencies from lock file</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(178,178,178)">
<span class="" style="font-variant-ligatures:no-common-ligatures; background-color:rgb(133,0,2)">Your requirements could not be resolved to an installable set of packages.</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo; min-height:13px">
<span class="" style="font-variant-ligatures:no-common-ligatures"></span><br class="">
</div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">  Problem 1</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">    - Installation request for php-http/guzzle6-adapter v2.0.1 -> satisfiable by php-http/guzzle6-adapter[v2.0.1].</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">    - php-http/guzzle6-adapter v2.0.1 requires php ^7.1 -> your PHP version (7.0.33) does not satisfy that requirement.</span></div>
</div>
<div class="">===</div>
<div class=""><br class="">
</div>
<div class="">Do I have to upgrade PHP to 7.1?</div>
<div class=""><br class="">
</div>
<div class="">Thank you again for your help.</div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class="">Alfredo.</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 19, 2020, at 12:15 PM, Cecile Madjar <<a href="mailto:cecile.madjar@mcin.ca" rel="noreferrer noreferrer" target="_blank" class="">cecile.madjar@mcin.ca</a>> wrote:</div>
<br class="">
<div class="">
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="padding:3px 10px; border-top-left-radius:5px; border-top-right-radius:5px; border-bottom-right-radius:5px; border-bottom-left-radius:5px; color:rgb(255,255,255); font-weight:bold; display:inline-block; background-color:rgb(255,0,0)">        External
 Email - Use Caution        </span></div>
<div class=""><br class="">
</div>
<div dir="ltr" class="">
<div class="">Hi Alfredo,</div>
<div class=""><br class="">
</div>
<div class="">Sorry to hear you are experiencing issues with the upgrade to 21.0.0. See below.</div>
<br class="">
<div class="x_x_gmail_quote">
<div dir="ltr" class="x_x_gmail_attr">On Tue, Feb 18, 2020 at 4:31 PM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" rel="noreferrer noreferrer" target="_blank" class="">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br class="">
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">Hi Cécile,
<div class=""><br class="">
</div>
<div class="">I am in the process of upgrading LORIS from v20.1.1 to v21.0.0 (and then to v22.0.0). I had no issues to get to v20.3.0 but now, moving to v21.0.0, I have two issues:</div>
<div class=""><br class="">
</div>
<div class="">1. I cannot access the link “Imaging->Imaging Browser” in the LORIS website. I get a 500 error. Any ideas on what should I check?</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Could you send us what you see in the Apache error file for that 500 error? Although, might be worth focusing on fixing your second issue before we dive too much into that one. </div>
<div class=""> </div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">
<div class="">2. In the instructions to upgrade to v21.0.0, the second point says:</div>
<div class=""><br class="">
</div>
<div class=""><span class="" style="color:rgb(36,41,46); font-size:16px; font-variant-ligatures:normal; background-color:rgb(255,255,255)">"Run </span><code class="" style="box-sizing:border-box; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace; font-size:13.6px; padding:0.2em 0.4em; margin:0px; background-color:rgba(27,31,35,0.0470588); border-top-left-radius:3px; border-top-right-radius:3px; border-bottom-right-radius:3px; border-bottom-left-radius:3px; color:rgb(36,41,46); font-variant-ligatures:normal">make</code><span class="" style="color:rgb(36,41,46); font-size:16px; font-variant-ligatures:normal; background-color:rgb(255,255,255)"> from
 the Loris root directory to update all dependencies.</span>”"</div>
<div class=""><br class="">
</div>
<div class="">However when I run “make” In the Loris root direction it does nothing. Here is the result:</div>
<div class=""><br class="">
</div>
<div class="">===</div>
<div class="">
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(57,192,38)">
<span class="" style="font-variant-ligatures:no-common-ligatures"><b class="">lorisadmin@ipmsa-loris</b></span><span class="" style="font-variant-ligatures:no-common-ligatures">:</span><span class="" style="font-variant-ligatures:no-common-ligatures; color:rgb(86,32,244)"><b class="">/var/www/loris</b></span><span class="" style="font-variant-ligatures:no-common-ligatures">$
 make</span></div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
<span class="" style="font-variant-ligatures:no-common-ligatures">make: *** No targets specified and no makefile found.  Stop.</span></div>
</div>
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
===</div>
</div>
</blockquote>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">
<div class="" style="margin:0px; font-stretch:normal; font-size:11px; line-height:normal; font-family:Menlo">
</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font class="">It that the <span class="">right</span> directory? Maybe I am missing some files?</font></div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Are you sure you are on the 21.0.0 release of LORIS before you run make? Do you see a Makefile in your /var/www/loris directory? In theory it is supposed to be there on branch 21.0.0 (<a href="https://github.com/aces/Loris/tree/v21.0.0" rel="noreferrer noreferrer" target="_blank" class="">https://github.com/aces/Loris/tree/v21.0.0</a>)</div>
<div class=""> </div>
<div class="">Hope this helps.</div>
<div class=""><br class="">
Cécile</div>
<div class=""><br class="">
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div class="">
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font class=""><br class="">
</font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font class="">Thank you for your help.</font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font class=""><br class="">
</font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font class="">Best,</font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font class="">Alfredo.</font></div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<div class=""><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">The information in this e-mail is intended only for the person to whom it is<br class="">
addressed. If you believe this e-mail was sent to you in error and the e-mail<br class="">
contains patient information, please contact the Partners Compliance HelpLine at<br class="">
<a href="http://www.partners.org/complianceline" rel="noreferrer noreferrer" target="_blank" class="">http://www.partners.org/complianceline</a><span class="x_Apple-converted-space"> </span>. If the e-mail was sent to you in error<br class="">
but does not contain patient information, please contact the sender and properly<br class="">
dispose of the e-mail.</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>