1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Error When Undeleting Threads

Discussion in 'Resolved Bug Reports' started by Romchik®, Oct 6, 2011.

  1. Romchik®

    Romchik® Well-Known Member

    The following error occurred

    The server responded with an error. The error message is in the JavaScript console.
     
  2. ragtek

    ragtek Guest

    Error:
    Fatal error: Call to undefined method XenForo_Model_InlineMod_Thread::get() in C:\xampp\htdocs\xenforo\library\XenForo\Model\InlineMod\Thread.php on line <i>822
     
  3. ragtek

    ragtek Guest

    PHP:
                $dw->set('discussion_state'$newState);

                if (
    array_key_exists($this->get('node_id'), $forums))
                {
                    
    $dw->setExtraData(XenForo_DataWriter_Discussion_Thread::DATA_FORUM$forums[$this->get('node_id')]);
                }
    should be

    PHP:
                $dw->set('discussion_state'$newState);

                if (
    array_key_exists($dw->get('node_id'), $forums))
                {
                    
    $dw->setExtraData(XenForo_DataWriter_Discussion_Thread::DATA_FORUM$forums[$this->get('node_id')]);
                }
    line824 also
    PHP:
                if (array_key_exists($dw->get('node_id'), $forums))
                {
                    
    $dw->setExtraData(XenForo_DataWriter_Discussion_Thread::DATA_FORUM$forums[$this->get('node_id')]);
                }

    //should be
    $forums[$this->get('node_id')]);
     
    Fuhrmann likes this.
  4. T.S.

    T.S. Member

    I am attempting to fix this error now on my forum.

    ragtek's first replacement fixed the line 822 error, but not I am still getting a line 824 error.

    Where he says "line824 also" it looks like the code under the "//should be" line is the same as the code just above it, unless line 824 should only contain the little bit of code under "//should be".
     
  5. Mike

    Mike XenForo Developer Staff Member

    Fixed now. Any "$this->get" in that file should be "$dw->get".
     

Share This Page