This has been discussed in the past but the solution is usually to ask plugin authors ton update their plugins for improved PHP8.1/PHP8.2 compatibility, whereas I think this is clearly a problem inside Xenforo 2.2 codebase, up and including 2.2.15
The file
./src/vendor/dokuwiki/utf8/utf8.php...