Hi @rsterry48,
Thanks for flagging this, and apologies for the slow reply.
A few of the warnings you listed look likely to be resolved on the latest 4.0.2 release. The “Attempt to read property user_nicename on bool” warning in particular has had three targeted fixes since you posted, covering guest author pages with conflicting query vars and a couple of paths around user deletion. The trim() deprecation around comma-separated author query vars has also been tightened with an is_string() guard.
That said, I can’t promise every one of the deprecations you saw is gone. The notices you quoted are quite generic, so without the file paths and line numbers it’s hard to be certain we’ve patched the exact call sites you hit. There are still a handful of preg_replace() and stripos() calls in the plugin where the input isn’t explicitly validated as a string before the call, and any of those could still fire under PHP 8.1+ if an upstream plugin or query happens to feed them a null value.
Could I ask you to do two things, when you have a moment?
- Re-test on 4.0.2 and let us know whether the warnings still appear.
- If they do, please paste the full notices including the file path and line number that PHP reports for each one. With that we can either fix the specific call sites straight away or, if they’re already fixed, confirm that for you.
Thanks again for taking the time to report this. The detail will help us close it out properly rather than guess.
Thread Starter
Robert
(@rsterry48)
Thank you very much Gary for your very helpful advice. Apologies for time taken to reply as I’ve been away overseas. Will let you know about future warnings as you request.
Hi @rsterry48,
Thanks again, and no problem on the timing.
Since you last looked, several more hardening changes have gone in for the next release, 4.1.0, including a batch of input-sanitisation and null-handling fixes, so a few of the deprecations you saw may already be resolved. The generic stripos(), trim() and preg_replace() notices are hard to pin down without the exact call sites, though.
When you next get a chance to re-test, could you paste the full notices including the file path and line number that PHP reports for each one? With those we can either fix the specific call sites straight away or confirm they’re already covered — even one or two with their file and line would help a lot.
Thanks for sticking with it.
Thread Starter
Robert
(@rsterry48)
Many thanks for update. Greatly appreciated.