After upgrading from PHP 7.4 to PHP 8.1, the following error is displayed when visiting /account/teamspeak:
As of PHP 8 trying to replace a string offset with more than one byte using square array brackets style will emit a warning (so it's PHP 8.0 as well - the recommended version for XenForo).
Code:
ErrorException: [E_WARNING] Only the first byte will be assigned to the string offset in src\addons\NF\TeamSpeak\Viewer.php at line 503
XF::handlePhpError() in src\addons\NF\TeamSpeak\Viewer.php at line 503
NF\TeamSpeak\Viewer->getServerTree() in src\addons\NF\TeamSpeak\XF\Pub\Controller\Account.php at line 61
NF\TeamSpeak\XF\Pub\Controller\Account->actionTeamSpeak() in src\XF\Mvc\Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 259
XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2353
XF\App->run() in src\XF.php at line 524
XF::runApp() in index.php at line 20
As of PHP 8 trying to replace a string offset with more than one byte using square array brackets style will emit a warning (so it's PHP 8.0 as well - the recommended version for XenForo).