XF 2.0 delete of thread that crashed during post

If I try to moderate it I get the following error;
  • Error: Call to a member function canSendModeratorActionAlert() on null src/XF/Entity/Thread.php:395
Code:
Stack trace

#0 [internal function]: XF\Entity\Thread->canSendModeratorActionAlert()
#1 src/XF/Template/Templater.php(939): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l1/s2/public/thread_delete.php(15): XF\Template\Templater->method(Object(XF\Entity\Thread), 'canSendModerato...', Array)
#3 src/XF/Template/Templater.php(1249): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_delete', Array)
#5 src/XF/Mvc/Renderer/Json.php(81): XF\Template\Template->render()
#6 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Thread\\Delet...', 'public:thread_d...', Array)
#7 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('XF:Thread\\Delet...', 'public:thread_d...', Array)
#8 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#10 src/XF/App.php(1894): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}


Code:
Request state
array(4) {
  ["url"] => string(208) "/index.php?threads/2018-adk-46er-trail-work-signup.186/delete&_xfRequestUri=%2Findex.php%3Fforums%2Fthis-and-that.2%2F&_xfWithData=1&_xfToken=1527598266%2Cc830af00a5cefc5e5e33ca7bf12594ca&_xfResponseType=json"
  ["referrer"] => string(55) "https://schollloj.com/index.php?forums/this-and-that.2/"
  ["_GET"] => array(5) {
    ["threads/2018-adk-46er-trail-work-signup_186/delete"] => string(0) ""
    ["_xfRequestUri"] => string(34) "/index.php?forums/this-and-that.2/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1527598266,c830af00a5cefc5e5e33ca7bf12594ca"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
Last edited:
Back
Top Bottom