[BUG] Unable to create poll

Pioneer

New Member
Hello Truonglv!
In conjunction with XF 2.2.1 and Social Groups 3.0.2, voting in the discussion is not created.
Below you can see the server errors:

InvalidArgumentException: Accessed unknown getter 'allow_poll' on XF:Forum[unsaved] src/XF/Mvc/Entity/Entity.php:203

Stack Trace

Code:
#0 src/XF/Mvc/Entity/Entity.php(115): XF\Mvc\Entity\Entity->get('allow_poll')

#1 internal_data/code_cache/templates/l1/s6/public/tlg_forum_add.php(108): XF\Mvc\Entity\Entity->offsetGet('allow_poll')

#2 src/XF/Template/Templater.php(1609): XF\Template\Templater->{closure}(Object(NZMD\HideSystem\XF\Template\Templater), Array, NULL)

#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('tlg_forum_add', Array)

#4 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()

#5 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('Truonglv\\Group:...', 'public:tlg_foru...', Array)

#6 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Json->renderView('Truonglv\\Group:...', 'public:tlg_foru...', Array)

#7 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))

#8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))

#9 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')

#10 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()

#11 src/XF.php(465): XF\App->run()

#12 index.php(20): XF::runApp('XF\\Pub\\App')

#13 {main}


Request Status

Code:
array(4) {

  ["url"] => string(161) "/groups/test.1/add-forum?_xfRequestUri=%2Fgroups%2Ftest.1%2Fdiscussions&_xfWithData=1&_xfToken=1605346481%2Cf0c913c189d89d10d09fc70327a67f90&_xfResponseType=json"

  ["referrer"] => string(48) "https://mydomain.com/groups/test.1/discussions"

  ["_GET"] => array(4) {

    ["_xfRequestUri"] => string(26) "/groups/test.1/discussions"

    ["_xfWithData"] => string(1) "1"

    ["_xfToken"] => string(43) "1605346481,f0c913c189d89d10d09fc70327a67f90"

    ["_xfResponseType"] => string(4) "json"

  }

  ["_POST"] => array(0) {

  }

}


InvalidArgumentException: Accessed unknown getter 'allow_poll' on XF:Forum[43] src/XF/Mvc/Entity/Entity.php:203

Stack Trace

Code:
#0 src/XF/Mvc/Entity/Entity.php(115): XF\Mvc\Entity\Entity->get('allow_poll')

#1 internal_data/code_cache/templates/l1/s6/public/tlg_forum_add.php(108): XF\Mvc\Entity\Entity->offsetGet('allow_poll')

#2 src/XF/Template/Templater.php(1609): XF\Template\Templater->{closure}(Object(NZMD\HideSystem\XF\Template\Templater), Array, NULL)

#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('tlg_forum_add', Array)

#4 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()

#5 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('Truonglv\\Group:...', 'public:tlg_foru...', Array)

#6 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Json->renderView('Truonglv\\Group:...', 'public:tlg_foru...', Array)

#7 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))

#8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))

#9 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')

#10 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()

#11 src/XF.php(465): XF\App->run()

#12 index.php(20): XF::runApp('XF\\Pub\\App')

#13 {main}


Request Status

Code:
array(4) {

  ["url"] => string(153) "/group-forums/test.43/edit?_xfRequestUri=%2Fforums%2Ftest.43%2F&_xfWithData=1&_xfToken=1605346638%2C134e465d615931c859b8dcf7ec095600&_xfResponseType=json"

  ["referrer"] => string(38) "https://mydomain.com/forums/test.43/"

  ["_GET"] => array(4) {

    ["_xfRequestUri"] => string(16) "/forums/test.43/"

    ["_xfWithData"] => string(1) "1"

    ["_xfToken"] => string(43) "1605346638,134e465d615931c859b8dcf7ec095600"

    ["_xfResponseType"] => string(4) "json"

  }

  ["_POST"] => array(0) {

  }

}
 
Top