KSA
Well-known member
- Affected version
- 2.2.8
Getting this error after running PHP8
Code:
TypeError: Macro public:post_macros :: post_user_content() error: parse_url(): Argument #1 ($url) must be of type string, array given src/XF/Str/Formatter.php:395
Generated by: Unknown account Dec 20, 2021 at 1:45 AM
Stack trace
#0 src/XF/Str/Formatter.php(395): parse_url(Array)
#1 src/addons/MMO/HideLinks/XF/BbCode/Renderer/Html.php(25): XF\Str\Formatter->getLinkClassTarget(Array)
#2 src/addons/s9e/MediaSites/XF/BbCode/Renderer/Html.php(34): MMO\HideLinks\XF\BbCode\Renderer\Html->renderTagUrl(Array, Array, Array, Array)
#3 src/XF/BbCode/Renderer/Html.php(310): s9e\MediaSites\XF\BbCode\Renderer\Html->renderTagUrl(Array, Array, Array, Array, Object(s9e\MediaSites\XF\BbCode\Renderer\Html))
#4 src/addons/KL/EditorManager/BbCode/EditorManagerTrait.php(144): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#5 src/addons/s9e/MediaSites/XF/BbCode/Renderer/Html.php(14): KL\EditorManager\XF\BbCode\Renderer\Html->renderTag(Array, Array)
#6 src/XF/BbCode/Traverser.php(63): s9e\MediaSites\XF\BbCode\Renderer\Html->renderTag(Array, Array)
#7 src/XF/BbCode/Traverser.php(39): XF\BbCode\Traverser->renderSubTree(Array, Array)
#8 src/XF/BbCode/Traverser.php(22): XF\BbCode\Traverser->renderAst(Array, Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#9 src/XF/SubContainer/BbCode.php(222): XF\BbCode\Traverser->render('[URL unfurl="tr...', Object(XF\BbCode\Parser), Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#10 src/XF/Template/Templater.php(2379): XF\SubContainer\BbCode->render('[URL unfurl="tr...', 'html', 'post', Object(SV\CanWarnStaff\XF\Entity\Post), Array)
#11 src/XF/Template/Templater.php(1128): XF\Template\Templater->fnBbCode(Object(SV\StandardLib\XF\Template\Templater), false, '[URL unfurl="tr...', 'post', Object(SV\CanWarnStaff\XF\Entity\Post))
#12 internal_data/code_cache/templates/l5/s40/public/post_macros.php(441): XF\Template\Templater->func('bb_code', Array, false)
#13 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#14 internal_data/code_cache/templates/l5/s40/public/post_macros.php(59): XF\Template\Templater->callMacro('post_macros', 'post_user_conte...', Array, Array)
#15 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_content', Array, Array, Object(XF\Template\ExtensionSet))
#17 internal_data/code_cache/templates/l5/s40/public/post_macros.php(93): XF\Template\Templater->renderExtension('user_content', Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#19 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('content', Array, Array, Object(XF\Template\ExtensionSet))
#20 internal_data/code_cache/templates/l5/s40/public/post_macros.php(122): XF\Template\Templater->renderExtension('content', Array, Object(XF\Template\ExtensionSet))
#21 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#22 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell_inner', Array, Array, Object(XF\Template\ExtensionSet))
#23 internal_data/code_cache/templates/l5/s40/public/post_macros.php(136): XF\Template\Templater->renderExtension('main_cell_inner', Array, Object(XF\Template\ExtensionSet))
#24 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#25 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('main_cell', Array, Array, Object(XF\Template\ExtensionSet))
#26 internal_data/code_cache/templates/l5/s40/public/post_macros.php(148): XF\Template\Templater->renderExtension('main_cell', Array, Object(XF\Template\ExtensionSet))
#27 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#28 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#29 internal_data/code_cache/templates/l5/s40/public/post_macros.php(190): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#30 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#31 internal_data/code_cache/templates/l5/s40/public/thread_view.php(983): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#32 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#33 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#34 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#35 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#36 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#37 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#38 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#39 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#40 src/XF.php(517): XF\App->run()
#41 index.php(20): XF::runApp('XF\\Pub\\App')
#42 {main}