TeamSpeak ErrorException: Only the first byte will be assigned to the string offset

Affected version
2.2.0

Finexes

Member
Hi there,

after switching to PHP 8.0.13, the follwing error is triggered:

Code:
ErrorException: Template error: [E_WARNING] Only the first byte will be assigned to the string offset src/addons/NF/TeamSpeak/Viewer.php:503

#0 src/addons/NF/TeamSpeak/Viewer.php(503): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Onl...', '/var/www/vhosts...', 503)
#1 src/addons/NF/TeamSpeak/Viewer.php(531): NF\TeamSpeak\Viewer->getServerTree('7930', '<div class="ts3...')
#2 src/addons/NF/TeamSpeak/Widget/ServerView.php(22): NF\TeamSpeak\Viewer->getServerTree()
#3 internal_data/code_cache/widgets/_62_TeamSpeak.php(5): NF\TeamSpeak\Widget\ServerView->render()
#4 src/XF/Template/Templater.php(7518): XF\SubContainer\Widget->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Array)
#5 src/XF/SubContainer/Widget.php(168): XF\Template\Templater->renderWidgetClosure(Object(Closure), Array)
#6 src/XF/Template/Templater.php(1928): XF\SubContainer\Widget->getCompiledWidget(Array, Array)
#7 internal_data/code_cache/templates/l2/s12/public/forum_list.php(216): XF\Template\Templater->widgetPosition('forum_list_side...', Array)
#8 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#9 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('forum_list', Array)
#10 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#11 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Forum\\Listin...', 'public:forum_li...', Array)
#12 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#16 src/XF.php(517): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}

Seems like the add-on is not fully compatible with PHP 8+ yet. Is there any ETA for an update?

Thanks!
 

Nix

Administrator
Staff member
Yeah, I need to find another viewer library or roll my own. The existing one is a little out of date and when I looked, there wasn’t anything for PHP 8.
 
Top