Post by HenrysCat » Wed Jul 28, 2021 2:23 am

Using the supplied FraudLabs Pro extensions, when marking an order as shipped I get this error

Unknown: Function create_function() is deprecated in /var/www/admin/controller/extension/fraud/fraudlabspro.php on line 328

Using PHP 7.4.21

Any ideas?
Thanks all

OC Version 3.0.3.7 - Debian 10 - ISPConfig


Newbie

Posts

Joined
Fri Jul 23, 2021 2:01 pm

Post by straightlight » Wed Jul 28, 2021 2:45 am

I would suggest to use an extension from the Marketplace which provides more up-to-date support than the one provided from the core. You could also take a look at the Maintenance Branch version on Github Opencart for updated codes about this extension.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by thekrotek » Wed Jul 28, 2021 2:47 am

Or you could ask someone to fix this for you. Send me an email or message on Skype to support@thekrotek.com and we'll discuss this.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by ADD Creative » Wed Jul 28, 2021 5:22 am

It's just a message to tell you that create_function will be removed in future versions of PHP. As long as you have display errors switch off in all three places, it won't cause a problem.

To get rid of the error and be compatible with PHP 8, do a search replace create_function, there are loads of examples of how to replace with an anonymous function.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by HenrysCat » Thu Jul 29, 2021 1:31 am

ADD Creative wrote:
Wed Jul 28, 2021 5:22 am
As long as you have display errors switch off in all three places, it won't cause a problem.
Thanks, I found the setting under System > Settings > Server > Error Handling, but three places?

OC Version 3.0.3.7 - Debian 10 - ISPConfig


Newbie

Posts

Joined
Fri Jul 23, 2021 2:01 pm

Post by ADD Creative » Thu Jul 29, 2021 4:55 am

HenrysCat wrote:
Thu Jul 29, 2021 1:31 am
Thanks, I found the setting under System > Settings > Server > Error Handling, but three places?
In the settings.
In system/config/default.php. https://github.com/opencart/opencart/bl ... lt.php#L53
In you PHP configuration. Should be off by default, but there are some bad server configurations out there. Use phpinfo() to check.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 45 guests