Post by NorfolkBits » Wed Feb 06, 2019 5:00 am

Hello, I have FraudLabs installed in OpenCart Version 3.0.2.0 and it was working fine until I upgraded to PHP 7.2, now I gat an error on viewing orders

Unknown: Function create_function() is deprecated in /homepages/20/d290167351/htdocs/Galactic_Shop/admin/controller/extension/fraud/fraudlabspro.php on line 328

I have set the PHP Version back to PHP 7.1 and the error goes, but support for PHP 7.1 only runs until the end of the year then I have to pay to keep it. Isthere going to be a fix for this please

Many thanks

Philip Edwards

Newbie

Posts

Joined
Mon Nov 05, 2018 4:33 am

Post by kestas » Wed Feb 06, 2019 6:59 am

Try method recommended in wordpress...

find your line :

Code: Select all

 $s = preg_replace_callback("/( [ a-zA-Z]{1}')([a-zA-Z0-9]{1})/s", create_function('$matches', 'return $matches[1].strtoupper($matches[2]);'), $s);

replace with:

Code: Select all

 $s = preg_replace_callback("/( [ a-zA-Z]{1}')([a-zA-Z0-9]{1})/s", function($matches) {return $matches[1].strtoupper($matches[2]);}, $s);


I have not tried by myself...

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am
Who is online

Users browsing this forum: No registered users and 4 guests