Fixed Error Logged when Moving Content

KawaiiHannah

Active member
Affected version
RC 2
I get this error when I move posts
Code:
ErrorException: [E_NOTICE] Undefined index: alertReason src/addons/XFMG/InlineMod/Media/Move.php:157

Stack Trace:
Code:
#0 src/addons/XFMG/InlineMod/Media/Move.php(157): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/www/vhosts...', 157, Array)
#1 src/XF/InlineMod/AbstractAction.php(80): XFMG\InlineMod\Media\Move->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
#2 src/XF/Pub/Controller/InlineMod.php(131): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
#3 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
#4 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))
#5 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(1863): XF\Mvc\Dispatcher->run()
#7 src/XF.php(328): XF\App->run()
#8 index.php(13): XF::runApp('XF\\Pub\\App')
#9 {main}

Request State:

Code:
array(4) {
  ["url"] => string(12) "/inline-mod/"
  ["referrer"] => string(58) "mydomain"
  ["_GET"] => array(1) {
    ["inline-mod/"] => string(0) ""
  }
  ["_POST"] => array(12) {
    ["target_type"] => string(8) "category"
    ["target_category_id"] => string(2) "20"
    ["ids"] => array(14) {
      [0] => string(3) "282"
      [1] => string(3) "283"
      [2] => string(3) "284"
      [3] => string(3) "285"
      [4] => string(3) "286"
      [5] => string(3) "287"
      [6] => string(3) "288"
      [7] => string(3) "289"
      [8] => string(3) "290"
      [9] => string(3) "291"
      [10] => string(3) "292"
      [11] => string(3) "293"
      [12] => string(3) "294"
      [13] => string(3) "295"
    }
    ["type"] => string(10) "xfmg_media"
    ["action"] => string(4) "move"
    ["confirmed"] => string(1) "1"
    ["_xfRedirect"] => string(58) "media"
    ["_xfToken"] => string(8) "********"
    ["ct_checkjs"] => string(1) "0"
    ["_xfRequestUri"] => string(32) "/media/categories/mycategiry/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
 
Top Bottom