TypeError: Argument 1 passed to XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html::canDisplayErrorUrl() must be an instance of XF\Entity\Post, null given, called in /home/*******/public_html/src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php on line 110 src/addons/XenConcept/HideLinkFromGuests/BbCode/Renderer/CheckTrait.php:429
Generated by: yolufunmilayo Jun 3, 2020 at 7:28 PM
#0 src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php(110): XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->canDisplayErrorUrl(NULL)
#1 [internal function]: XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->renderTagUrl(Array, 'http://moviespy...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#2 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'http://moviespy...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#6 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('[URL='http://mo...', Object(XF\BbCode\Parser), Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#7 src/XF/Template/Templater.php(2038): XF\SubContainer\BbCode->render('[URL='http://mo...', 'html', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User), Array)
#8 [internal function]: XF\Template\Templater->fnBbCode(Object(XenConcept\HideBBCode\XF\Template\Templater), false, '[URL='http://mo...', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User))
#9 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#10 internal_data/code_cache/templates/l1/s3/public/message_macros.php(279): XF\Template\Templater->func('bb_code', Array, false)
#11 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#12 internal_data/code_cache/templates/l1/s3/public/post_macros.php(213): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array)
#13 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#14 internal_data/code_cache/templates/l1/s3/public/thread_view.php(536): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#15 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\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(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#19 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#22 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#23 src/XF.php(391): XF\App->run()
#24 index.php(20): XF::runApp('XF\\Pub\\App')
#25 {main}
There are links on the signature of some thread starter shown in the request state, that's maybe the error. hope it fixarray(4) {
["url"] => string(73) "/threads/the-hows-of-us-2018-amzn-1080p-720p-webrip-x265-hevc-alb3rt.254/"
["referrer"] => string(31) "https://*****.com/forums/20/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Hello @XenConcept, I found some server error logs here, I would like to share here which maybe fix on the next update, you can also investigate this error.
Server error log:
Stack trace
Request state:
There are links on the signature of some thread starter shown in the request state, that's maybe the error. hope it fix
@XenConcept
This is Mega.nz link: https://mega.nz/file/4Zh1jJBQ#RivBuJd-AKGPn_yOblCLjkitL55KHcka_hyCr6Fsmaw (full URL with decryption key)
Now when opening the URL through redirection via anonymizer, it opens only https://mega.nz/file/4Zh1jJBQ (means excluding the part from # , so the decryption key does not remain it the link) .
Currently to sort out the issue I've excluded the Mega.nz domain in exclusion list, but you have better solution ?
TypeError: Argument 1 passed to XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html::canDisplayErrorUrl() must be an instance of XF\Entity\Post, null given, called in /home/******/public_html/src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php on line 110 src/addons/XenConcept/HideLinkFromGuests/BbCode/Renderer/CheckTrait.php:429
Generated by: fhilix1911 Jun 13, 2020 at 9:07 AM
#0 src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php(110): XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->canDisplayErrorUrl(NULL)
#1 [internal function]: XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->renderTagUrl(Array, 'https://t.co/bf...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#2 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'https://t.co/bf...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Renderer/Html.php(306): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#6 src/XF/BbCode/Renderer/Html.php(987): XF\BbCode\Traverser->renderSubTree(Array, Array)
#7 [internal function]: XF\BbCode\Renderer\Html->renderTagSize(Array, '15px', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#8 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, '15px', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#9 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#10 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#11 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#12 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('[IMG]https://i....', Object(XF\BbCode\Parser), Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#13 src/XF/Template/Templater.php(2038): XF\SubContainer\BbCode->render('[IMG]https://i....', 'html', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User), Array)
#14 [internal function]: XF\Template\Templater->fnBbCode(Object(XenConcept\HideBBCode\XF\Template\Templater), false, '[IMG]https://i....', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User))
#15 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#16 internal_data/code_cache/templates/l1/s4/public/message_macros.php(279): XF\Template\Templater->func('bb_code', Array, false)
#17 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#18 internal_data/code_cache/templates/l1/s4/public/post_macros.php(213): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array)
#19 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#20 internal_data/code_cache/templates/l1/s4/public/thread_view.php(536): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#21 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array)
#22 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#23 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#24 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#25 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#27 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#28 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#29 src/XF.php(391): XF\App->run()
#30 index.php(20): XF::runApp('XF\\Pub\\App')
#31 {main}
array(4) {
["url"] => string(61) "/threads/escape-from-pretoria-2020-720p-web-dl-x265-hevc.712/"
["referrer"] => string(21) "https://*****.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Another server error caused by hidelinks, Please review
Server error log:
Code:TypeError: Argument 1 passed to XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html::canDisplayErrorUrl() must be an instance of XF\Entity\Post, null given, called in /home/******/public_html/src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php on line 110 src/addons/XenConcept/HideLinkFromGuests/BbCode/Renderer/CheckTrait.php:429 Generated by: fhilix1911 Jun 13, 2020 at 9:07 AM
Stack trace
Code:#0 src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php(110): XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->canDisplayErrorUrl(NULL) #1 [internal function]: XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->renderTagUrl(Array, 'https://t.co/bf...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html)) #2 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'https://t.co/bf...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html)) #3 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array) #4 src/XF/BbCode/Renderer/Html.php(306): XF\BbCode\Traverser->renderSubTree(Array, Array) #5 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array) #6 src/XF/BbCode/Renderer/Html.php(987): XF\BbCode\Traverser->renderSubTree(Array, Array) #7 [internal function]: XF\BbCode\Renderer\Html->renderTagSize(Array, '15px', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html)) #8 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, '15px', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html)) #9 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array) #10 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array) #11 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array) #12 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('[IMG]https://i....', Object(XF\BbCode\Parser), Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array) #13 src/XF/Template/Templater.php(2038): XF\SubContainer\BbCode->render('[IMG]https://i....', 'html', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User), Array) #14 [internal function]: XF\Template\Templater->fnBbCode(Object(XenConcept\HideBBCode\XF\Template\Templater), false, '[IMG]https://i....', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User)) #15 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array) #16 internal_data/code_cache/templates/l1/s4/public/message_macros.php(279): XF\Template\Templater->func('bb_code', Array, false) #17 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array) #18 internal_data/code_cache/templates/l1/s4/public/post_macros.php(213): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array) #19 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array) #20 internal_data/code_cache/templates/l1/s4/public/thread_view.php(536): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array) #21 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array) #22 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array) #23 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render() #24 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array) #25 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View)) #26 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View)) #27 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html') #28 src/XF/App.php(2190): XF\Mvc\Dispatcher->run() #29 src/XF.php(391): XF\App->run() #30 index.php(20): XF::runApp('XF\\Pub\\App') #31 {main}
Request state:
Code:array(4) { ["url"] => string(61) "/threads/escape-from-pretoria-2020-720p-web-dl-x265-hevc.712/" ["referrer"] => string(21) "https://*****.com/" ["_GET"] => array(0) { } ["_POST"] => array(0) { } }
The problem its the http://anonym.es/ dont recognize the # and its not the addon.
So one way to bypass this is to implement the list urls will be anonymized, so this way we dont add mega.nz like the list Website Excluted but Website anonymized , only urls in that list will be anonymized.
YesHello,
Are you using the latest version of the add-on?
Regards
Sorry, I'm Using Beta 2, I didn't know there was an update
I didn't understand the features exactly. @XenConcept
Screenshot shows the only hiding URL's. But someone says hiding images too ?
The add-on hiding all URL and IMG tags to guests ? Or only URL's ?
And what about attached images ?
Media including the [IMG ] tags too ?Hello,
The add-on hides the BB Code
The BB Codes will be hidden from visitors and members who do not validate their email.
- URL
- Media
- Attach
View attachment 236271
We use essential cookies to make this site work, and optional cookies to enhance your experience.