I am running opencart Version 3.0.3.8 on PHP 8.1.33 and MySQL 5.7.29 and last week I started getting missing orders. When I submit a test order, I am getting an error when an order is submitted, paying by Check/Money Order that simply says "error' which isn't very helpful, and when a credit card is used, the transaction is handed off to Authorize.net, but the callback doesn't update the order status. I also can't run a backup of the database from within the opencart UI. I see errors in the logfile that mention backup.php as well as other things...
Here is a sample of the error log:
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 5:24:53 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 5:24:55 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:07:09 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:07:11 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:07:44 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:07:45 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:11:31 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:11:33 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:13:31 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:13:32 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:20:44 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:20:45 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
Here is a sample of the error log:
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-07-31 16:41:10 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 5:24:53 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 5:24:55 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:07:09 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:07:11 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:07:44 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:07:45 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:11:31 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:11:33 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:13:31 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:13:32 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:20:44 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 9:20:45 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\oc2023storage\modification\system\engine\action.php on line 65
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
2025-08-01 10:36:48 - PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\inetpub\wwwroot\OC2023\admin\model\tool\backup.php on line 47
Very bad combination - OC 3.0.8.0 and php 8.1.33.
You - or your provider - has updated the php-version, which is quite good (because much better than 7.x) - but would be better if php 8.2.x, 8.3.x or 8.4.x is used!
So, the situation is, OC 3.0.8.0 does not really worl well with php 8.x
You should use OC 3.0.4.1 or the upcoming 3.0.5.0 version:
https://github.com/opencart/opencart/re ... ag/3.0.4.1
or 3.0.5.0 (currently only code, not published but soon..)
https://github.com/opencart/opencart/tree/3.0.x.x
Then all will work.
But - it seems you want to use php 8.x which is in general the best idea.
Then you have to check also all used third party extension you may have installed addionally!
Best to check all is to create a subdirectrory, install the fresh copy of 3.0.5.0 and add all you want.
Assign php 8.4.x to that folder (cPanel and Plesk can do that).
Then test.
And when all runs smootly .. switch to that new folder.
Search this forum, there are several threads how to do that best.
If everything runs
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Two Approaches to Address This Issue:
If your hosting environment permits, you may temporarily lower your PHP version to 7.4 or a secure, patched variant. Please note that this is a short-term workaround and not a recommended long-term solution.Downgrade PHP Version:
For a more sustainable and secure approach, consider updating your website’s core, theme, and extensions. Keeping your system up to date ensures better security, performance, and stability.Upgrade Site Components:
Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy.
Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com
Who is online
Users browsing this forum: No registered users and 9 guests