TypeError: Macro public:post_macros :: post_user_content() error: hash_hmac(): Argument #2 ($data) must be of type string, array given src/addons/Snog/Amazon/XF/BbCode/Renderer/Html.php:140
Stack trace
#0 src/addons/Snog/Amazon/XF/BbCode/Renderer/Html.php(140): hash_hmac('md5', Array, Object(SensitiveParameterValue))
#1 src/addons/Snog/Amazon/XF/BbCode/Renderer/Html.php(56): Snog\Amazon\XF\BbCode\Renderer\Html->addAffiliateDisclosureOverlayLinkToHref('<a href="http:/...', Array, 'canonical:misc/...')
#2 src/XF/BbCode/Renderer/Html.php(349): Snog\Amazon\XF\BbCode\Renderer\Html->renderTagUrl(Array, 'http://a.co/8D4...', Array, Array, Object(Snog\Amazon\XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Traverser.php(63): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Traverser.php(39): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(22): XF\BbCode\Traverser->renderAst(Array, Object(XF\BbCode\RuleSet), Array)
#6 src/XF/SubContainer/BbCode.php(236): XF\BbCode\Traverser->render('I just publishe...', Object(XF\BbCode\Parser), Object(XF\BbCode\RuleSet), Array)
#7 src/XF/Template/Templater.php(2608): XF\SubContainer\BbCode->render('I just publishe...', 'html', 'post', Object(XFMG\XF\Entity\Post), Array)
#8 src/XF/Template/Templater.php(1220): XF\Template\Templater->fnBbCode(Object(XF\Template\Templater), false, 'I just publishe...', 'post', Object(XFMG\XF\Entity\Post))
#9 internal_data/code_cache/templates/l1/s16/public/post_macros.php(499): XF\Template\Templater->func('bb_code', Array, false)
#10 src/XF/Template/Templater.php(922): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#11 internal_data/code_cache/templates/l1/s16/public/post_macros.php(61): XF\Template\Templater->callMacro('post_macros', 'post_user_conte...', Array, Array)
#12 src/XF/Template/Templater.php(1093): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(1029): XF\Template\Templater->renderExtensionInternal('user_content', Array, Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l1/s16/public/post_macros.php(95): XF\Template\Templater->renderExtension('user_content', Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(1093): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(1029): XF\Template\Templater->renderExtensionInternal('content', Array, Array, Object(XF\Template\ExtensionSet))
#17 internal_data/code_cache/templates/l1/s16/public/post_macros.php(138): XF\Template\Templater->renderExtension('content', Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(1093): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#19 src/XF/Template/Templater.php(1029): XF\Template\Templater->renderExtensionInternal('main_cell_inner', Array, Array, Object(XF\Template\ExtensionSet))
#20 internal_data/code_cache/templates/l1/s16/public/post_macros.php(152): XF\Template\Templater->renderExtension('main_cell_inner', Array, Object(XF\Template\ExtensionSet))
#21 src/XF/Template/Templater.php(1093): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#22 src/XF/Template/Templater.php(1029): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#23 internal_data/code_cache/templates/l1/s16/public/post_macros.php(164): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#24 src/XF/Template/Templater.php(1093): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#25 src/XF/Template/Templater.php(1029): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#26 internal_data/code_cache/templates/l1/s16/public/post_macros.php(206): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#27 src/XF/Template/Templater.php(922): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#28 internal_data/code_cache/templates/l1/s16/public/thread_view.php(891): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#29 src/XF/Template/Templater.php(1800): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#30 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#31 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#32 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#33 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#34 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#35 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#36 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#37 src/XF.php(806): XF\App->run()
#38 index.php(23): XF::runApp('XF\\Pub\\App')
#39 {main}