[ASTPPCOM-502] mcrypt deprecated in php7.2 Created: 27/May/19  Updated: 26/Oct/19  Resolved: 29/May/19

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task
Reporter: wirefr33 Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I've installed ASTPP on a system with php 7.2.
I get a blank page after installation.
In astpp/index.php I uncommented the line with 'ini_set('display_errors','on');' and changed the ENVIRONMENT to 'development'

I get the following errors when I call the URL:

<h4>A PHP Error was encountered</h4>

<p>Severity: 8192</p>
<p>Message: Function mcrypt_get_iv_size() is deprecated</p>
<p>Filename: libraries/Encrypt.php</p>
<p>Line Number: 323</p>

</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: 8192</p>
<p>Message: Function mcrypt_create_iv() is deprecated</p>
<p>Filename: libraries/Encrypt.php</p>
<p>Line Number: 324</p>

</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: 8192</p>
<p>Message: Function mcrypt_encrypt() is deprecated</p>
<p>Filename: libraries/Encrypt.php</p>
<p>Line Number: 325</p>

</div><br />

<b>Fatal error</b>: Cannot declare class Locale, because the name is already in use in <b>/var/www/html/astpp/application/libraries/locale.php</b> on line <b>29</b><br />

mcrypt has been deprecated from php 7.2. The mcrypt code will have to be replaced.



 Comments   
Comment by hemdip [ 29/May/19 ]

@WireFr33 Which version of ASTPP you have installed? If ASTPP 4.0 then it require php version 7.3

Generated at Sat Feb 10 07:17:44 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.