[RSS Feed/News] Internal server error on replying to a thread which is hard deleted in the middle of a reply

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
XF\Service\Thread\Replier::_save will throw an internal server error (ErrorException: [E_WARNING] Trying to access array offset on value of type bool) when replying to a thread which has been hard deleted during that reply.

PHP:

Code:
protected function _save()
{
...
   $threadLatest = $this->db()->fetchRow("
      SELECT *
      FROM xf_thread
      WHERE thread_id = ?
      FOR UPDATE
   ", $this->thread->thread_id);

   // Ensure our thread entity has the latest data to make sure things...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom