Fixed Error when deleting thread prompts

Delazar

Active member
Affected version
Xenforo 2.0 Beta 3
If I want to delete the test group, I get the message:
  • InvalidArgumentException: Column 'prefix_group_id' is unknown
  • src/XF/Mvc/Entity/Entity.php:581
  • Generiert durch: Delazar
  • 21 September 2017 um 15:57 Uhr

Stack trace
#0 /var/www/xxx/htdocs/src/XF/Mvc/Entity/Entity.php(547): XF\Mvc\Entity\Entity->set('prefix_group_id', 0)
#1 /var/www/xxx/htdocs/src/XF/Entity/AbstractPromptGroup.php(60): XF\Mvc\Entity\Entity->__set('prefix_group_id', 0)
#2 /var/www/xxx/htdocs/src/XF/Mvc/Entity/Entity.php(1842): XF\Entity\AbstractPromptGroup->_postDelete()
#3 /var/www/xxx/htdocs/src/XF/Admin/Controller/AbstractPrompt.php(321): XF\Mvc\Entity\Entity->delete()
#4 /var/www/xxx/htdocs/src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\AbstractPrompt->actionGroupDelete(Object(XF\Mvc\ParameterBag))
#5 /var/www/xxx/htdocs/src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:ThreadPrompt', 'Groupdelete', 'json', Object(XF\Mvc\ParameterBag), 'threadPrompts', Object(XF\Admin\Controller\ThreadPrompt), NULL)
#6 /var/www/xxx/htdocs/src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 /var/www/xxx/htdocs/src/XF/App.php(1787): XF\Mvc\Dispatcher->run()
#8 /var/www/xxx/htdocs/src/XF.php(326): XF\App->run()
#9 /var/www/xxx/htdocs/admin.php(13): XF::runApp('XF\\Admin\\App')
#10 {main}


Request state
array(4) {
["url"] => string(51) "/admin.php?thread-prompts/group/testgruppe.2/delete"
["referrer"] => string(55) "https://xf2test.rpg-foren.com/admin.php?thread-prompts/"
["_GET"] => array(1) {
["thread-prompts/group/testgruppe_2/delete"] => string(0) ""
}
["_POST"] => array(4) {
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(26) "/admin.php?thread-prompts/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

But if I delete "test" beforehand, I can also delete the test group.

Bildschirmfoto2.webp
 
Top Bottom