XF 2.0 lots and lots of errors

lashman

Active member
recently i noticed we've been getting tonnes of errors (in hundreds of thousands per day) and i honestly can't figure out what's going on and what might be causing them ... could anyone help me identify what might be causing those errors?

Code:
    ErrorException: Template error: Cannot call method canWarn on a non-object (boolean) src/XF/Template/Templater.php:927

    Generated by: user Dec 22, 2018 at 4:21 PM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', 's...', 927, Array)
#1 src/XF/Template/Templater.php(927): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s4/public/post_macros.php(396): XF\Template\Templater->method(false, 'canWarn', Array)
#3 src/XF/Template/Templater.php(663): XF\Template\Templater->{closure}(Object(SV\PasswordTools\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s4/public/thread_new_posts.php(26): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#5 src/XF/Template/Templater.php(1250): XF\Template\Templater->{closure}(Object(SV\PasswordTools\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_new_post...', Array)
#7 src/XF/Mvc/Renderer/Json.php(81): XF\Template\Template->render()
#8 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#9 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#10 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#12 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
#13 src/XF.php(333): XF\App->run()
#14 index.php(13): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state

array(4) {
  ["url"] => string(220) "/threads/christmas-queen-giveaway.405/new-posts?after=1545495481&_xfRequestUri=%2Fthreads%2Fchristmas-queen-giveaway.405%2Fpage-19&_xfWithData=1&_xfToken=1545492859%2C49b5faed69bcaabdc1fb6e8ced486c53&_xfResponseType=json"
  ["referrer"] => string(68) "https://metacouncil.com/threads/christmas-queen-giveaway.405/page-19"
  ["_GET"] => array(5) {
    ["after"] => string(10) "1545495481"
    ["_xfRequestUri"] => string(45) "/threads/christmas-queen-giveaway.405/page-19"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1545492859,49b5faed69bcaabdc1fb6e8ced486c53"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}

Code:
    ErrorException: Template error: Cannot call method canCleanSpam on a non-object (boolean) src/XF/Template/Templater.php:927

    Generated by: user Dec 22, 2018 at 4:21 PM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', 's...', 927, Array)
#1 src/XF/Template/Templater.php(927): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s4/public/post_macros.php(370): XF\Template\Templater->method(false, 'canCleanSpam', Array)
#3 src/XF/Template/Templater.php(663): XF\Template\Templater->{closure}(Object(SV\PasswordTools\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s4/public/thread_new_posts.php(26): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#5 src/XF/Template/Templater.php(1250): XF\Template\Templater->{closure}(Object(SV\PasswordTools\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_new_post...', Array)
#7 src/XF/Mvc/Renderer/Json.php(81): XF\Template\Template->render()
#8 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#9 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#10 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#12 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
#13 src/XF.php(333): XF\App->run()
#14 index.php(13): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state

array(4) {
  ["url"] => string(220) "/threads/christmas-queen-giveaway.405/new-posts?after=1545495481&_xfRequestUri=%2Fthreads%2Fchristmas-queen-giveaway.405%2Fpage-19&_xfWithData=1&_xfToken=1545492859%2C49b5faed69bcaabdc1fb6e8ced486c53&_xfResponseType=json"
  ["referrer"] => string(68) "https://metacouncil.com/threads/christmas-queen-giveaway.405/page-19"
  ["_GET"] => array(5) {
    ["after"] => string(10) "1545495481"
    ["_xfRequestUri"] => string(45) "/threads/christmas-queen-giveaway.405/page-19"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1545492859,49b5faed69bcaabdc1fb6e8ced486c53"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}

just A LOT of stuff like this in general:

191110

thanks in advance :)
 
Is this happening constantly or do the errors just seem to start and then stop?

This potentially comes across more as a opcache oddity which does happen. If you have access to restart the web server/PHP-FPM server, please try restarting that and seeing if the errors stop.

If they don't, can you reproduce them? If so, please disable all add-ons and see if that resolves the problem.
 
Back
Top Bottom