XF 1.4 Server error when batch update moving threads

Stuart Wright

Well-known member
I'm moving all the threads from one forum to another. There are 1,274 altogether.
I get this error every time:
An exception occurred: The session has been saved and is now read-only. in /home/sites/avforums/public_html/library/XenForo/Session.php on line 635

  1. XenForo_Session->remove() in AVForums/ThreadProduct/DataWriter/Discussion/Thread.php at line 102
  2. AVForums_ThreadProduct_DataWriter_Discussion_Thread->_discussionPostSave() in PrefixForumListing/Extend/DataWriter/Discussion/Thread.php at line 48
  3. PrefixForumListing_Extend_DataWriter_Discussion_Thread->_discussionPostSave() in AVForums/ModCheckpoint/DataWriter/Discussion/Thread.php at line 21
  4. AVForums_ModCheckpoint_DataWriter_Discussion_Thread->_discussionPostSave() in XenForo/DataWriter/Discussion.php at line 453
  5. XenForo_DataWriter_Discussion->_postSave() in XenForo/DataWriter.php at line 1409
  6. XenForo_DataWriter->save() in XenForo/Deferred/ThreadAction.php at line 111
  7. XenForo_Deferred_ThreadAction->execute() in XenForo/Model/Deferred.php at line 256
  8. XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 390
  9. XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 335
  10. XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
  11. XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/HtmlAdmin.php at line 50
  12. XenForo_ViewRenderer_HtmlAdmin->renderRedirect() in XenForo/FrontController.php at line 597
  13. XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
  14. XenForo_FrontController->run() in /home/sites/avforums/public_html/admin.php at line 13
Last edited:

Chris D

XenForo developer
Staff member
@Stuart Wright


if (!$session->saved())
That should certainly solve this problem; but I think other changes will need to be made. I will look at them for you this evening.