Bug forumid in src/addons/DBTech/Shop/ItemType/CreateForum.php at line 127

neoblizz

Customer
Upon configuring a create a forum item, I get the following:

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']);
                }
 

Fillip H.

Staff member
Owner
Developer
Can you please upgrade to v6.1.0rc4 and let me know if the issue still occurs? Even though it is flagged as "Unstable" due to the fact that it's a Release Candidate, it is the recommended version at this time :)
 

DragonByte Shop

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,526
Customer rating
5.00 star(s) 1 ratings
Top