<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Xavier,
<div class=""><br class="">
</div>
<div class="">Thank you, now it’s working. I’m running LORIS 23.0.2.</div>
<div class=""><br class="">
</div>
<div class="">I struggled a little cause I didn’t know if the line “<span style="color: rgb(11, 255, 255); font-family: Menlo; font-size: 13px;" class="">print $response->getBody();</span>” was supposed to be replaced or not. After testing I figured out it
has to be replaced, otherwise I cannot even get a token.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Alfredo.</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jun 1, 2022, at 1:44 PM, Xavier Lecours Boucher, Mr <<a href="mailto:xavier.lecoursboucher@mcgill.ca" class="">xavier.lecoursboucher@mcgill.ca</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span 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);" class=""> External
Email - Use Caution </span></div>
<p style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
</p>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
Hi Alfredo,</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br class="">
</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span class="">Are you running LORIS 22?</span></div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<div class="">I am asking because LORIS 23 added the following at the end of index.php:<br class="">
<font face="monospace" class=""><br class="">
</font></div>
<div class="">
<pre class=""><font class="">// Include the body.
$bodystream = $response->getBody();
// First we need to disable any output buffering so that
// it streams to the output instead of into the buffer
// and uses up all the memory for large chunks of data.
for ($i = ob_get_level(); $i != 0; $i = ob_get_level()) {
ob_end_clean();
}
ob_implicit_flush();
while ($bodystream->eof() == false) {
// 64k oughta be enough for anybody.
print $bodystream->read(1024*64);
}</font></pre>
</div>
<span class=""></span><br class="">
</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
Try adding those lines if they are not there. Let us know if the issue persists.</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br class="">
</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<div class=""><span class="">- Xavier Lecours</span></div>
</div>
<div id="appendonsend" style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br class="">
</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br class="">
</div>
<hr tabindex="-1" style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline-block; width: 1118.171875px;" class="">
<span style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span>
<div id="divRplyFwdMsg" dir="ltr" style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:loris-dev-bounces@bic.mni.mcgill.ca" class="">loris-dev-bounces@bic.mni.mcgill.ca</a> <<a href="mailto:loris-dev-bounces@bic.mni.mcgill.ca" class="">loris-dev-bounces@bic.mni.mcgill.ca</a>>
on behalf of Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@BWH.HARVARD.EDU" class="">AMORALESPINZON@BWH.HARVARD.EDU</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>May 31, 2022 3:53 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:loris-dev@bic.mni.mcgill.ca" class="">loris-dev@bic.mni.mcgill.ca</a> <<a href="mailto:loris-dev@bic.mni.mcgill.ca" class="">loris-dev@bic.mni.mcgill.ca</a>><br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span>Vladimir S. FONOV <<a href="mailto:v.s.fonov@ilmarin.info" class="">v.s.fonov@ilmarin.info</a>>; Sridar Narayanan, Dr. <<a href="mailto:sridar.narayanan@mcgill.ca" class="">sridar.narayanan@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="Apple-converted-space"> </span>[Loris-dev] PHP Fatal error: Allowed memory size of</font>
<div class=""> </div>
</div>
<div class="BodyFragment" style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;">
<font size="2" class=""><span style="font-size: 11pt;" class="">
<div class="PlainText">Dear LorisDev team,<br class="">
<br class="">
I’m facing the following error when downloading a large minc image (~70MB) using the API “GET /candidates/$CandID/$VisitLabel/images/$Filename”. I can download the file from the web interface with no issues.<br class="">
<br class="">
===<br class="">
[Tue May 31 15:25:10.697608 2022] [php7:error] [pid 20168] [client 73.219.242.88:64779] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 70594560 bytes) in /var/www/loris/htdocs/index.php on line 63<br class="">
===<br class="">
<br class="">
I googled the error but couldn’t find a solution, do you know how fix this?<br class="">
<br class="">
Best regards,<br class="">
Alfredo.<br class="">
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at<span class="Apple-converted-space"> </span><a href="https://secure-web.cisco.com/19Xn1xkn4b3-sRGHnfX12KxJD_v-e0qwKTzXYxPYWXqoWcX-GJKFEPdgPQdtrGREi9fmjt0ksBKSqe66_VjQccu0NQPWjBxOqEwj8KFxpvlnHE_4bHa9aPT-GEHg6GwUS3zirAQAW9tUIsObknMn6uE2t28Hzmsxb9s6qvPgZehpoZ3leS8GkaQPNbEErNQcqAOZv0xHywYT9PvJpWm7QyaYJ9guZxDC57fFqsqVXJ1t6aq2s6G88SMuDysPHUT2ClssKO2rfLHm-vJkuQHUI5KcJO8W2vK1vd4zoecHI5D76VeygSHlsPIZdSTd90XWCl_ce_WaY-UaNlP2WnGD6sg/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline" data-auth="NotApplicable" class="">https://www.massgeneralbrigham.org/complianceline</a><<a href="https://secure-web.cisco.com/19Xn1xkn4b3-sRGHnfX12KxJD_v-e0qwKTzXYxPYWXqoWcX-GJKFEPdgPQdtrGREi9fmjt0ksBKSqe66_VjQccu0NQPWjBxOqEwj8KFxpvlnHE_4bHa9aPT-GEHg6GwUS3zirAQAW9tUIsObknMn6uE2t28Hzmsxb9s6qvPgZehpoZ3leS8GkaQPNbEErNQcqAOZv0xHywYT9PvJpWm7QyaYJ9guZxDC57fFqsqVXJ1t6aq2s6G88SMuDysPHUT2ClssKO2rfLHm-vJkuQHUI5KcJO8W2vK1vd4zoecHI5D76VeygSHlsPIZdSTd90XWCl_ce_WaY-UaNlP2WnGD6sg/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline" data-auth="NotApplicable" class="">https://www.massgeneralbrigham.org/complianceline</a>>
.<br class="">
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means
you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.<span class="Apple-converted-space"> </span><br class="">
<br class="">
_______________________________________________<br class="">
Loris-dev mailing list<br class="">
<a href="mailto:Loris-dev@bic.mni.mcgill.ca" class="">Loris-dev@bic.mni.mcgill.ca</a><br class="">
<a href="https://secure-web.cisco.com/1SRATtcJN8mR3gVYhf8wjH6_Novm6aJ3dARF2iUwiswpC92wu1AtsyGLwir5GQk5R84IA3r6JavmDpqUzwL_sauPcOoVayH8E5SRGuuz4NJvl71mpJZFn1hYK82mYlScvdBCz-MqqFTGbbEmh1QeIT4Tzxu7HRm9esC-CLf1KYsoZ9MVdX_bcijR8ti0vVk74k6mVIrqRHGvf2hKlENITA1GEj_I_ogovktBMxtRydH3A_RcfBF5H_4tKjF1Kje2S_7-txcQktszdEWcyh0ayVJM93u8NspqcYO8ivgMQXYuaWHyBM0qeEHgweMeCInU9R7DQiRQk5lcdy54rRdviUw/https%3A%2F%2Fmailman.bic.mni.mcgill.ca%2Fmailman%2Flistinfo%2Floris-dev" data-auth="NotApplicable" class="">https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev</a></div>
</span></font></div>
</div>
</blockquote>
</div>
<br class="">
</div>
<p class="MsoNormal">The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at <a href="https://www.massgeneralbrigham.org/complianceline">https://www.massgeneralbrigham.org/complianceline</a> .</p><br>
<p class="MsoNormal">Please note that this e-mail is not secure
(encrypted). If you do not wish to continue communication over
unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you
understand and accept this risk and wish to continue to communicate over
unencrypted e-mail. </p></body>
</html>