Error in 2.1.3. using embed code in threads:
Code:
ErrorException: Template error: count(): Parameter must be an array or an object that implements Countable src/addons/Truonglv/Groups/BbCode/Callback.php:32
Generated by: Admin 06.09.2019 um 11:42
Stack-Trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'count(): Parame...', '/xxxxx/xxxxx/xxxxxx...', 32, Array)
#1 src/addons/Truonglv/Groups/BbCode/Callback.php(32): count('2')
#2 [internal function]: Truonglv\Groups\BbCode\Callback::renderTagGroup(Array, '2', Array, Array, Object(XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Renderer/Html.php(296): call_user_func(Array, Array, '2', Array, Array, Object(XF\BbCode\Renderer\Html))
#4 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#5 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#6 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(XF\BbCode\RuleSet), Array)
#7 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('Testing embed...', Object(XF\BbCode\Parser), Object(XF\BbCode\RuleSet), Array)
#8 src/XF/Template/Templater.php(2035): XF\SubContainer\BbCode->render('Testing embed...', 'html', 'post', Object(SV\ThreadReplyBanTeeth\XF\Entity\Post), Array)
#9 [internal function]: XF\Template\Templater->fnBbCode(Object(SV\PasswordTools\XF\Template\Templater), false, 'Testing embed...', 'post', Object(SV\ThreadReplyBanTeeth\XF\Entity\Post))
#10 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#11 src/XF/Template/Templater.php(906): XF\Template\Templater->func('bb_code', Array, false)
#12 internal_data/code_cache/templates/l7/s1/public/post_macros.php(200): XF\Template\Templater->fn('bb_code', Array, false)
#13 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(SV\PasswordTools\XF\Template\Templater), Array, Array)
#14 internal_data/code_cache/templates/l7/s1/public/thread_view.php(794): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#15 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\PasswordTools\XF\Template\Templater), Array)
#16 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#17 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#18 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#19 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#22 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#23 src/XF.php(390): XF\App->run()
#24 index.php(20): XF::runApp('XF\\Pub\\App')
#25 {main}