XF 2.0 moved, approve, message count problem

maszd

Well-known member
Hi,
i have two post awaiting moderated, if iam move this two post on other thread, one post auto changed to approve post and when iam approve other post, totall user message not correct.

you can see this demo video:


also this error appear on acp.

PHP:
Server error log

    ErrorException: [E_NOTICE] Undefined offset: 1342 src\XF\Service\Post\Mover.php:245

    Generated by: maszd Jan 30, 2018 at 3:05 PM

Stack trace

#0 src\XF\Service\Post\Mover.php(245): XF::handlePhpError(8, '[E_NOTICE] Unde...', 'C:\\Wnmp\\html\\sr...', 245, Array)
#1 src\XF\Service\Post\Mover.php(135): XF\Service\Post\Mover->updateUserCounters()
#2 src\XF\InlineMod\Post\Move.php(39): XF\Service\Post\Mover->move(Array)
#3 src\XF\InlineMod\AbstractAction.php(80): XF\InlineMod\Post\Move->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
#4 src\XF\Pub\Controller\InlineMod.php(131): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
#5 src\XF\Mvc\Dispatcher.php(249): XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
#6 src\XF\Mvc\Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'Perform', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\InlineMod), Object(XF\Mvc\Reply\Reroute))
#7 src\XF\Mvc\Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src\XF\App.php(1880): XF\Mvc\Dispatcher->run()
#9 src\XF.php(328): XF\App->run()
#10 index.php(13): XF::runApp('XF\\Pub\\App')
#11 {main}

Request state

array(4) {
  ["url"] => string(12) "/inline-mod/"
  ["referrer"] => string(31) "http://lokal/threads/test.1603/"
  ["_GET"] => array(1) {
    ["/inline-mod/"] => string(0) ""
  }
  ["_POST"] => array(13) {
    ["thread_type"] => string(8) "existing"
    ["existing_url"] => string(40) "http://lokal/threads/cara-download.1342/"
    ["author_alert"] => string(1) "1"
    ["author_alert_reason"] => string(5) "moved"
    ["ids"] => array(2) {
      [0] => string(5) "59801"
      [1] => string(5) "59802"
    }
    ["type"] => string(4) "post"
    ["action"] => string(4) "move"
    ["confirmed"] => string(1) "1"
    ["_xfRedirect"] => string(31) "http://lokal/threads/test.1603/"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(19) "/threads/test.1603/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

Delete

thanks.
 
Back
Top Bottom