Very nice, thanks a lot. 🙂
Yes, the plugin is definitely at fault here. (It’s not the first one to be fair, but most others have patched the issue in the meantime.)
The error stems from passing null as the first parameter to the add_submenu_page function. WordPress has always expected a string there, and always used the argument as a string, e.g. by passing it to the strpos function. This hadn’t been a problem until PHP 8.1, where passing null to such functions causes a deprecation warning.
The issue is easily fixable by just using an empty string instead of null.
-
This reply was modified 1 year, 6 months ago by loilo.
Thread Starter
loilo
(@loilo)
Thank you! I think that is something we can work with. 👍