Deleting a Wiki moderator leads to an error and remain unsuccesful with invalidArgumentException: A content type and ID must be provided
ArgumentException whilst trying to remove a wiki area moderator
Hi folks, this affects 4.1.4 and 4.1.5.
While I try to clean up the moderators, I can't remove a moderator who also is wiki area mod. The message is:
I
Code:
nvalidArgumentException: A content type and ID must be provided src/XF/Service/UpdatePermissions.php:58
Stack-Trace
#0 src/XF/Entity/ModeratorContent.php(57): XF\Service\UpdatePermissions->setContent('vwarea', 0)
#1 src/addons/vw/vw/XF/Entity/ModeratorContent.php(60): XF\Entity\ModeratorContent->_postDelete()
#2 src/XF/Mvc/Entity/Entity.php(1654): vw\vw\XF\Entity\ModeratorContent->_postDelete()
#3 src/XF/ControllerPlugin/Delete.php(18): XF\Mvc\Entity\Entity->delete()
#4 src/XF/Admin/Controller/Moderator.php(326): XF\ControllerPlugin\Delete->actionDelete(Object(vw\vw\XF\Entity\ModeratorContent), '/stage1/admin.p...', '/stage1/admin.p...', '/stage1/admin.p...', 'JPP (Wiki area ...')
#5 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Moderator->actionContentDelete(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Moderator', 'Contentdelete', Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Admin\Controller\Moderator), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Admin\Controller\Moderator), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#10 src/XF.php(524): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}
Status der Anfrage
array(4) {
["url"] => string(46) "/stage1/admin.php?moderators/content/13/delete"
["referrer"] => string(53) "https://xf2t.tt-board.eu/stage1/admin.php?moderators/"
["_GET"] => array(1) {
["moderators/content/13/delete"] => string(0) ""
}
["_POST"] => array(4) {
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(29) "/stage1/admin.php?moderators/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
The error ist reproducable in test and prod environment with different versions (4.1.4 in prod and 4.1.5 in test).
Cheers