Hello all,
I have some problem with my forum SMF 2.0.19
Error log shows:
Guest
141.98.255.151
https://forum.toyotaklub.org.pl/index.php?board=15.2
8192: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
File: /www/tkp_forum/Sources/Load.php
Line: 2255
Someone can help me with that?
I was looking for some solution but cant find anything
Thank You and regz
Pawel
what version of PHP are you running?
8.1 :(
In PHP 8.1 the passing of null as parameters has been deprecated to a lot of core functions.
Did you upgrade your php recently? What mods do you have installed?
2.0.19 doesn't support php 8.1. It will run but log errors.
Quote from: Doug Heffernan on August 03, 2024, 04:06:59 PMDid you upgrade your php recently? What mods do you have installed?
Yes it was done today. Before upgrade there was much more errors than now.
Mods:
- Ad Managment
- Tapatalk
- Global Headers Footers
@swo0p :
Quote from: Sir Osis of Liver on August 03, 2024, 04:09:52 PM2.0.19 doesn't support php 8.1. It will run but log errors.
As mentioned by Sir Osis, 2.0.x doesn't support beyond PHP 8.0.
Check the requirements for reference: https://download.simplemachines.org/requirements.php
You will need to use 8.0, or upgrade your forum to SMF 2.1.4.
Quote from: Diego Andrés on August 04, 2024, 12:38:30 AMor upgrade your forum to SMF 2.1.4.
As Diego mentioned this, this would be your best option.