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

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
 

Fillip H.

Staff member
Owner
Developer
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.
 

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
3,461
Customer rating
5.00 star(s) 4 ratings
Top