Fixed ErrorException: [E_NOTICE] Undefined offset: 11471 src/XF/Service/Post/Mover.php:245

Dan Hawkins

Active member
Affected version
xf 2.0.1
  • ErrorException: [E_NOTICE] Undefined offset: 11471
  • src/XF/Service/Post/Mover.php:245
  • Generated by: StevieSQ
  • Jan 4, 2018 at 5:00 PM
Stack trace
#0 src/XF/Service/Post/Mover.php(245): XF::handlePhpError(8, 'Undefined offse...', '/home/arlrebor/...', 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(Object(XF\Mvc\Entity\ArrayCollection))
#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(89): 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
Code:
array(4) {
  ["url"] => string(22) "/community/inline-mod/"
  ["referrer"] => string(103) "https://apexonlineracing.com/community/threads/aor-ginetta-g40-junior-league-sign-ups-open.28522/page-6"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(11) {
    ["thread_type"] => string(8) "existing"
    ["existing_url"] => string(65) "https://apexonlineracing.com/community/threads/dump-thread.11471/"
    ["ids"] => array(1) {
      [0] => string(6) "482192"
    }
    ["type"] => string(4) "post"
    ["action"] => string(4) "move"
    ["confirmed"] => string(1) "1"
    ["_xfRedirect"] => string(103) "https://apexonlineracing.com/community/threads/aor-ginetta-g40-junior-league-sign-ups-open.28522/page-6"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(75) "/community/threads/aor-ginetta-g40-junior-league-sign-ups-open.28522/page-6"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

Any idea why this keeps occurring when members are copying files across? Seems to be occurring several times a week now, whenever someone either moves or copies something from one forum to another

Usually

Public > Private or vice versa.
 
This is fixed for 2.0.2.

I believe this to be specific to when the first post being moved it deleted/moderated. We automatically make this post visible in the new thread (as the first post is always visible) and the extra updates were triggering these issues. A simple workaround is to make what you're moving be visible before you do the move.
 
Hi, How are you?
Error: call to undefined method XF\Service\Post\Mover::move() src/XF/InlineMod/Post/Move.php:39
How to fix this error?
Thank you.
 
Back
Top Bottom