XF 2.2 Server log errors - Macro argument id is required and no value was provided

shining

Active member
Hi there,

I updated my forum last night (after 2 years ... ) and now we get lots ot this error:

Code:
LogicException: Macro public:lightbox_macros :: single_image() error: Macro argument id is required and no value was provided src/XF/Template/Templater.php:903


#0 src/XF/Template/MacroState.php(60): XF\Template\Templater->mergeMacroArguments(Array, Array, Array)
#1 src/XF/Template/Templater.php(796): XF\Template\MacroState->getAvailableVars(Object(XP\VB\XF\Template\Templater), Array, Array)
#2 internal_data/code_cache/templates/l2/s2/public/bb_code_tag_img.php(9): XF\Template\Templater->callMacro('lightbox_macros', 'single_image', Array, Array)
#3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(XP\VB\XF\Template\Templater), Array, NULL)
#4 src/XF/BbCode/Renderer/Html.php(724): XF\Template\Templater->renderTemplate('bb_code_tag_img', Array)
#5 src/XF/BbCode/Renderer/Html.php(716): XF\BbCode\Renderer\Html->getRenderedImg('https://pbs.twi...', 'https://pbs.twi...', Array)
#6 src/addons/KL/EditorManager/BbCode/EditorManagerTrait.php(277): XF\BbCode\Renderer\Html->renderTagImage(Array, NULL, Array, Array)
#7 src/XF/BbCode/Renderer/Html.php(310): KL\EditorManager\XF\BbCode\Renderer\Html->renderTagImage(Array, NULL, Array, Array, Object(KL\EditorManager\XF\BbCode\Renderer\Html))
#8 src/addons/KL/EditorManager/BbCode/EditorManagerTrait.php(144): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#9 src/XF/BbCode/Traverser.php(63): KL\EditorManager\XF\BbCode\Renderer\Html->renderTag(Array, Array)
#10 src/XF/BbCode/Traverser.php(39): XF\BbCode\Traverser->renderSubTree(Array, Array)
#11 src/XF/BbCode/Traverser.php(22): XF\BbCode\Traverser->renderAst(Array, Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#12 src/XF/SubContainer/BbCode.php(222): XF\BbCode\Traverser->render('[img]https://pb...', Object(XF\BbCode\Parser), Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#13 src/XF/Template/Templater.php(2387): XF\SubContainer\BbCode->render('[img]https://pb...', 'html', 'post', Object(SV\UserEssentials\XF\Entity\Post), Array)
#14 src/XF/Template/Templater.php(1128): XF\Template\Templater->fnBbCode(Object(XP\VB\XF\Template\Templater), false, '[img]https://pb...', 'post', Object(SV\UserEssentials\XF\Entity\Post))
#15 internal_data/code_cache/templates/l2/s2/public/post_macros.php(450): XF\Template\Templater->func('bb_code', Array, false)
#16 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(XP\VB\XF\Template\Templater), Array, NULL)
#17 internal_data/code_cache/templates/l2/s2/public/post_macros.php(59): XF\Template\Templater->callMacro('post_macros', 'post_user_conte...', Array, Array)
#18 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XP\VB\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#19 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_content', Array, Array, Object(XF\Template\ExtensionSet))
#20 internal_data/code_cache/templates/l2/s2/public/post_macros.php(99): XF\Template\Templater->renderExtension('user_content', Array, Object(XF\Template\ExtensionSet))
#21 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XP\VB\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#22 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('content', Array, Array, Object(XF\Template\ExtensionSet))
#23 internal_data/code_cache/templates/l2/s2/public/post_macros.php(128): XF\Template\Templater->renderExtension('content', Array, Object(XF\Template\ExtensionSet))
#24 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XP\VB\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#25 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell_inner', Array, Array, Object(XF\Template\ExtensionSet))
#26 internal_data/code_cache/templates/l2/s2/public/post_macros.php(142): XF\Template\Templater->renderExtension('main_cell_inner', Array, Object(XF\Template\ExtensionSet))
#27 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XP\VB\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#28 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#29 internal_data/code_cache/templates/l2/s2/public/post_macros.php(154): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#30 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XP\VB\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#31 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#32 internal_data/code_cache/templates/l2/s2/public/post_macros.php(196): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#33 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(XP\VB\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#34 internal_data/code_cache/templates/l2/s2/public/thread_view.php(969): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#35 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(XP\VB\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#36 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#37 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#38 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#39 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#40 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#41 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#42 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#43 src/XF.php(524): XF\App->run()
#44 index.php(20): XF::runApp('XF\\Pub\\App')
#45 {main}

Request state
array(4) {
  ["url"] => string(34) "/threads/example.132/page-18"
  ["referrer"] => string(29) "https://www.example.com/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Can someone please help where to find the problem?
(there is no outdated template at the moment)
 
What version of Xenforo were you using before and what version did you update to?

What version of PHP are you using?

Are all your addons certified for XF 2.2.x?
 
The last Version was the 2.1.11 Released (Security Fix)

I did not update for a very long time because some of the addons were unmaintained and because of private situation I also did not look after that the last 2 years.

So now I needed to replace unmaintained addon and bought new ones yesterday.

All addons I updated yesterday are certified for 2.2.

Maybe something went wront with template merge or so.. I have no idea.


Now I became aware of this problem.. maybe the error is also because of that:

All images attached via IMG BB-Code with URL are not shown anymore.

For example this code

Code:
[IMG width="508px"]https://pbs.twimg.com/media/FZBJu-nXEAACj-e?format=jpg&name=small[/IMG]

FZBJu-nXEAACj-e


PS: We do not use image proxy ... we dont want that (because of owner rights of the images)
 
Back
Top Bottom