PHP 7.2 upgrade


#1

Good evening,

I recently upgraded PHP on my Archlinux webserver from version 7.1 -> 7.2.
With PHP errors displayed, this appears to through a deprecation error for the even() call on line 81 in the MX/Modules.php file. I assume that because this is third party, it will have to be fixed upstream. If so, I just wanted to know if this still functions, and was an acceptable thing to ignore with PHP errors hidden, or if I need to roll back all my sites to using 7.1.

Thanks,

Clayton

A PHP Error was encountered
Severity: 8192

Message: The each() function is deprecated. This message will be suppressed on further calls

Filename: MX/Modules.php

Line Number: 81

Backtrace:

File: /srv/http/invoice.littleendian.tech/application/third_party/MX/Modules.php
Line: 81
Function: each

File: /srv/http/invoice.littleendian.tech/application/third_party/MX/Loader.php
Line: 269
Function: load

File: /srv/http/invoice.littleendian.tech/application/core/Base_Controller.php
Line: 72
Function: module

File: /srv/http/invoice.littleendian.tech/application/core/User_Controller.php
Line: 25
Function: __construct

File: /srv/http/invoice.littleendian.tech/application/core/Admin_Controller.php
Line: 20
Function: __construct

File: /srv/http/invoice.littleendian.tech/index.php
Line: 327
Function: require_once

PHP Error encountered
#2

IP was not tested with PHP 7.2 yet, I mean it’s just out for a few days.
Roll back for now and stay tuned for an update.


Errores en head
#3

@Kovah
Just checking on the status of this issue. I noticed a few updated libraries since then, notably mPDF and PHPMailer.

I’d really like to get my webservers patched current if possible.

Thanks,

Clayton


#4

@xerxies PHP 7.2 compatibility was resolved in version 1.5.7 :blush:


#5

resolved is a big word :smiley:
More seriously the bug was hidden but not fixed (@Kovah you will be slapped for this shame :D)

Feel free to test IP with 7.2 and report any bugs or something which is not working anymore


#6

Oh dear :see_no_evil::see_no_evil:


#7

Sure! not problem 7.1


#8

The PHP developers deprecated mcrypt in version 7.1, and removed support in version 7.2. Applications should use other solutionions like openssl for encryption needs.

If you do decide to install the mcrypt PECL module for PHP 7.2, you’d need to do so using the following commands FOR CPANEL:

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install libmcrypt
yum install libmcrypt-devel
/opt/cpanel/ea-php72/root/usr/bin/pecl install channel://pecl.php.net/mcrypt-1.0.1


#9

I think the main problem was IP because many people face this when they did not test IP properly, so I suggest you yo go Netgear Extender support for help, here you can find the solution which you want to know. I am also very helpful after going there.


#10

Did we just get spammed above? Moderator?