<div dir="ltr">Hi Alfredo,<div>After you upgrade the PHP version, you need to upgrade some libraries to support the new PHP version as well.</div><div>





<ol class="gmail-ol1">
<li class="gmail-li1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13.6px;line-height:normal;font-family:Menlo;color:rgb(27,31,34)"><span class="gmail-s1"></span><span class="gmail-s2" style="font-kerning:none">sudo apt-get install -y php7.3 php7.3-mysql php7.3-xml php7.3-json php7.3-mbstring php7.3-gd php-ast</span></li>
<li class="gmail-li1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13.6px;line-height:normal;font-family:Menlo;color:rgb(27,31,34)">sudo apt-get install -y libapache2-mod-php7.3<br><span class="gmail-s3"></span></li>
<li class="gmail-li1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13.6px;line-height:normal;font-family:Menlo;color:rgb(27,31,34)"><span class="gmail-s3"></span><span class="gmail-s2" style="font-kerning:none">sudo a2enmod php7.3</span></li>
<li class="gmail-li2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13.6px;line-height:normal;font-family:Menlo;color:rgb(27,31,34)"><span class="gmail-s4" style="font-kerning:none">sudo service apache2 restart</span></li></ol></div><div>I hope these steps will help you. </div><div>best </div><div>Shen</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 25 Jan 2021 at 14:52, Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear LorisDev team,<br>
<br>
I upgraded the PHP version for apache from 7.2.28 to 7.3.26 in order to avoid errors with trailing-comma in functions. Now that it's upgraded I am getting the following error:<br>
<br>
===<br>
[Sun Jan 24 09:43:47.375992 2021] [php7:notice] [pid 26182] [client <a href="http://216.15.126.108:50170" rel="noreferrer" target="_blank">216.15.126.108:50170</a>] Could not execute . Stack trace#0 /var/www/loris/php/libraries/Database.class.inc(106): Database->connect('AAA', 'BBB', 'CCC', '111.111.111.11', true)\n#1 /var/www/loris/php/libraries/NDB_Client.class.inc(66): Database::singleton('AAA', 'BBB', 'CCC', '111.111.111.11', true)\n#2 /var/www/loris/htdocs/index.php(27): NDB_Client->initialize()\n#3 {main}<br>
<br>
[Sun Jan 24 09:43:47.376142 2021] [php7:error] [pid 26182] [client <a href="http://216.15.126.108:50170" rel="noreferrer" target="_blank">216.15.126.108:50170</a>] PHP Fatal error:  Uncaught DatabaseException: Could not establish a PDO object using the following values: username: `AAA`, dbname: `BBB`, host: `111.111.111.11` and the supplied password. in /var/www/loris/php/libraries/Database.class.inc:173\nStack trace:\n#0 /var/www/loris/php/libraries/Database.class.inc(106): Database->connect('AAA', 'BBB', 'CCC', '111.111.111.11', true)\n#1 /var/www/loris/php/libraries/NDB_Client.class.inc(66): Database::singleton('AAA', 'BBB', 'CCC', '111.111.111.11', true)\n#2 /var/www/loris/htdocs/index.php(27): NDB_Client->initialize()\n#3 {main}\n  thrown in /var/www/loris/php/libraries/Database.class.inc on line 173<br>
Merge state<br>
=== <br>
<br>
I manually tested the connection from the LORIS server to the server hosting the database and it works. Do you have ideas on how to solve this issue? Maybe I’m missing some updates?<br>
<br>
I am running Ubuntu Xenial 16.04.4 and LORIS is in version 22.0.0.<br>
<br>
Best,<br>
Alfredo.<br>
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="http://www.massgeneralbrigham.org/complianceline" rel="noreferrer" target="_blank">http://www.massgeneralbrigham.org/complianceline</a> . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.<br>
<br>
_______________________________________________<br>
Loris-dev mailing list<br>
<a href="mailto:Loris-dev@bic.mni.mcgill.ca" target="_blank">Loris-dev@bic.mni.mcgill.ca</a><br>
<a href="https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev" rel="noreferrer" target="_blank">https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div style="font-size:13px;color:rgb(136,136,136)">Shen Wang<br></div><div style="color:rgb(136,136,136)"><font size="2"><a href="https://github.com/aces/Loris" target="_blank">Loris</a>  Developer</font></div><div style="font-size:13px;color:rgb(136,136,136)">Montreal Neurological Institute </div><div style="font-size:13px;color:rgb(136,136,136)">McGill University</div><div style="font-size:13px;color:rgb(136,136,136)"><br></div></div></div>