ElkArte Community

Elk Development => Bug Reports => Topic started by: radu81 on March 17, 2023, 11:13:19 am

Title: Bad behavior errors on PHP 8.1 & 8.2
Post by: radu81 on March 17, 2023, 11:13:19 am
Using PHP 8.1 I see this error in Elkarte log:


Using PHP 8.2 I get this error:
(Link-10310)
Title: Re: Bad behavior errors on PHP 8.1 & 8.2
Post by: Spuds on March 17, 2023, 03:20:38 pm
All part of the reason I dropped this feature in 2.0 and added our own smaller set of checks that BB did perform.  BB has not been updated in some time, and the licensing is a bit persnickety which is why I don't patch it myself.

Anyway, at line 168 add $ua = $ua ?? ''; and see if that clears the log.
Title: Re: Bad behavior errors on PHP 8.1 & 8.2
Post by: radu81 on March 18, 2023, 05:06:25 am
Ok, thanks again, just did that edit, let you know in the next days if it helped.