Removing multiple pages from category fails
Reproduce:
1. Open a category page
2. Select multiple pages under category
3. Chose "Remove pages from this category" + Go
Fails with:
Code:
Error: Call to a member function set_existing() on null src/addons/vw/vw/_core/model/modlog/xf2.php:37
Generated by: mazzly Sep 11, 2022 at 1:51 PM
Stack trace
#0 src/addons/vw/vw/_core/controller/ui/imod/action/deletefrom/vw.php(143): vw_ModLog_Model_XF2->mod_add('delete_from', Array, Array)
#1 src/addons/vw/vw/_core/controller/ui/imod/action/base/vw.php(106): vw_UI_iMod_Action_DeleteFrom_Controller->perform_dodeletefrom()
#2 src/addons/vw/vw/Handler/InlineMod/Base/AbstractAction.php(183): vw_UI_iMod_Action_base_Controller->process('dodeletefrom')
#3 src/XF/InlineMod/AbstractAction.php(87): vw\vw\Handler\InlineMod\Base\AbstractAction->applyToEntity(Object(vw_DM_Page_Controller_XF2), Array)
#4 src/XF/InlineMod/AbstractAction.php(80): XF\InlineMod\AbstractAction->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
#5 src/XF/Pub/Controller/InlineMod.php(131): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
#6 src/addons/vw/vw/XF/Pub/Controller/InlineMod.php(41): XF\Pub\Controller\InlineMod->actionPerform()
#7 src/XF/Mvc/Dispatcher.php(350): vw\vw\XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'Perform', Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
#9 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
#10 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#12 src/XF.php(488): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
["url"] => string(19) "/inline-mod/perform"
["referrer"] => string(51) "https://www..com/wiki/CharacterGroup"
["_GET"] => array(1) {
["/inline-mod/perform"] => string(0) ""
}
["_POST"] => array(13) {
["rootid"] => string(1) "4"
["roottype"] => string(2) "19"
["url"] => string(51) "https://www..com/wiki/CharacterGroup"
["ids"] => array(13) {
[10000000000007] => string(14) "10000000000007"
[10000000000015] => string(14) "10000000000015"
[10000000000016] => string(14) "10000000000016"
[10000000000043] => string(14) "10000000000043"
[10000000000057] => string(14) "10000000000057"
[10000000000080] => string(14) "10000000000080"
[10000000000083] => string(14) "10000000000083"
[10000000000459] => string(14) "10000000000459"
[10000000000967] => string(14) "10000000000967"
[10000000001227] => string(14) "10000000001227"
[10000000001594] => string(14) "10000000001594"
[10000000001685] => string(14) "10000000001685"
[10000000001895] => string(14) "10000000001895"
}
["type"] => string(6) "vwpage"
["action"] => string(10) "deletefrom"
["confirmed"] => string(1) "1"
["do"] => string(12) "dodeletefrom"
["_xfToken"] => string(8) "********"
["ct_checkjs"] => string(4) "2022"
["_xfRequestUri"] => string(20) "/wiki/CharacterGroup"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}