Bug preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Status
Not open for further replies.

tanghaituan

Customer
PHP 8.1
XF 2.8.2
  • ErrorException: Template error: [E_DEPRECATED] preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
  • src/addons/DBTech/Credits/XF/Str/Formatter.php:45
I think at line 47 we need to change to this:
Screen Shot 2022-01-11 at 15.36.05.png
 
I'll fix this in the next version, but you might want to investigate why the string is null - it might indicate a bug somewhere outside DB Credits.
 
Hello @tanghaituan,

We hope your ticket regarding DragonByte Credits has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Credits

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,255
Customer rating
5.00 star(s) 4 ratings
Back
Top