XF 2.1 Error

JoyFreak

Well-known member
Anyone know what this error is related to?

Server error log
  • ErrorException: Template error: Cannot call method isIgnoring on a non-object (NULL)
  • src/XF/Template/Templater.php:984
  • Generated by: /Thomaides/
  • May 1, 2020 at 9:35 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/nginx/dom...', 984, Array)
#1 src/XF/Template/Templater.php(984): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s0/public/bb_code_tag_quote.php(10): XF\Template\Templater->method(NULL, 'isIgnoring', Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#4 src/XF/BbCode/Renderer/Html.php(959): XF\Template\Templater->renderTemplate('bb_code_tag_quo...', Array)
#5 src/XF/BbCode/Renderer/Html.php(950): XF\BbCode\Renderer\Html->getRenderedQuote('Delete the sequ...', '/Thomaides/', Array, Array)
#6 [internal function]: XF\BbCode\Renderer\Html->renderTagQuote(Array, '/Thomaides/, po...', Array, Array, Object(SV\LazyImageLoader\XF\BbCode\Renderer\Html))
#7 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, '/Thomaides/, po...', Array, Array, Object(SV\LazyImageLoader\XF\BbCode\Renderer\Html))
#8 src/addons/Truonglv/MembersOnlyContent/XF/BbCode/Renderer/Html.php(28): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#9 src/XF/BbCode/Traverser.php(61): Truonglv\MembersOnlyContent\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(XF\BbCode\RuleSet), Array)
#12 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('
=> string(18) "/posts/19316/quote"
["referrer"] => string(111) "https://www.joyfreak.com/threads/th...s4-on-june-19-naughty-dog-has-confirmed.6850/"
["_GET"] => array(1) {
["/posts/19316/quote"] => string(0) ""
}
["_POST"] => array(5) {
["quoteHtml"] => string(0) ""
["_xfRequestUri"] => string(87) "/threads/the-last-of-us-part-2-coming-to-ps4-on-june-19-naughty-dog-has-confirmed.6850/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
 
Truonglv/MembersOnlyContent
You need to write to the author of the add-on
 
Truonglv/MembersOnlyContent
You need to write to the author of the add-on
Thank you. I wrote to him last night, didn't receive anything back so thought it might not have been. I've messaged him again now.
 
Truonglv/MembersOnlyContent
You need to write to the author of the add-on
There are also related to other add-on. Why do you sure that coming from my add-ons?
 
While Lazy Imager Loader is mentioned in the stack trace, it is misleading as the code literally isn't touching how templates are generated;

The error is because something is triggering a template render without setting the default arguments.

The line breaking is;
HTML:
<xf:set var="$isIgnored" value="{{ $attributes.member && $xf.visitor.isIgnoring($attributes.member) }}" />

$xf.visitor (or $xf) should not be null in any template rendering as it breaks assumptions.
 
Back
Top Bottom