Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: swo0p on August 03, 2024, 03:39:47 PM

Title: load.php line 2255 error
Post by: swo0p on August 03, 2024, 03:39:47 PM
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
Title: Re: load.php line 2255 error
Post by: Illori on August 03, 2024, 03:47:18 PM
what version of PHP are you running?
Title: Re: load.php line 2255 error
Post by: swo0p on August 03, 2024, 03:56:24 PM
8.1 :(
Title: Re: load.php line 2255 error
Post by: Doug Heffernan on August 03, 2024, 04:06:59 PM
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?
Title: Re: load.php line 2255 error
Post by: Sir Osis of Liver on August 03, 2024, 04:09:52 PM
2.0.19 doesn't support php 8.1.  It will run but log errors.
Title: Re: load.php line 2255 error
Post by: swo0p on August 03, 2024, 04:13:01 PM
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
Title: Re: load.php line 2255 error
Post by: Diego Andrés on August 04, 2024, 12:38:30 AM
@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.
Title: Re: load.php line 2255 error
Post by: Steve on August 04, 2024, 12:14:34 PM
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.