neoblizz
Customer
Upon configuring a create a forum item, I get the following:
I am guessing it's due to the fact that forumid is null. I think.
Code:
ErrorException: [E_NOTICE] Undefined index: forumid in src/addons/DBTech/Shop/ItemType/CreateForum.php at line 127
XF::handlePhpError() in src/addons/DBTech/Shop/ItemType/CreateForum.php at line 127
DBTech\Shop\ItemType\CreateForum->validateUserConfig() in src/addons/DBTech/Shop/Pub/Controller/Inventory.php at line 315
DBTech\Shop\Pub\Controller\Inventory->actionConfigure() in src/XF/Mvc/Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 390
XF::runApp() in index.php at line 20
I am guessing it's due to the fact that forumid is null. I think.
Code:
if ($this->purchase->configured)
{
// Carry over existing forum ID so we don't lose data
$configuration['forumid'] = $this->purchase->configuration['forumid'];
}
$stringFormatter = $this->app()->stringFormatter();
$configuration['title'] = $stringFormatter->censorText($configuration['title']);
$configuration['description'] = $stringFormatter->censorText($configuration['description']);
$node = null;
if ($configuration['forumid'])
{
/** @var \XF\Entity\Node $node */
$node = $this->em()->find('XF:Node', $configuration['forumid']);
}