[FIXED] Error in upgrade from 1.0.9 to 2.0.3

developr

New Member
Hi there,

I got an error when I would like to upgrade from version 1.0.9 to 2.0.3 (XF2.1).

Code:
InvalidArgumentException: Option (tl_groups_enableForums) does not exists. in src/addons/Truonglv/Groups/App.php at line 251
Truonglv\Groups\App::getOption() in src/addons/Truonglv/Groups/XF/Entity/Node.php at line 107
Truonglv\Groups\XF\Entity\Node::getStructure() in src/XF/Mvc/Entity/Manager.php at line 70
XF\Mvc\Entity\Manager->getEntityStructure() in src/XF/Mvc/Entity/Manager.php at line 223
XF\Mvc\Entity\Manager->getFinder() in src/XF/Mvc/Entity/Repository.php at line 35
XF\Mvc\Entity\Repository->finder() in src/XF/Repository/Node.php at line 26
XF\Repository\Node->getFullNodeList() in src/XF/Permission/NodePermissions.php at line 76
XF\Permission\NodePermissions->getContentTree() in src/XF/Permission/TreeContentPermissions.php at line 23
XF\Permission\TreeContentPermissions->setupBuildTypeData() in src/XF/Permission/NodePermissions.php at line 67
XF\Permission\NodePermissions->setupBuildTypeData() in src/XF/Permission/AbstractContentPermissions.php at line 48
XF\Permission\AbstractContentPermissions->setupBuildData() in src/XF/Permission/AbstractContentPermissions.php at line 21
XF\Permission\AbstractContentPermissions->__construct() in src/XF/Permission/Builder.php at line 114
XF\Permission\Builder->getContentHandler() in src/XF/Permission/Builder.php at line 83
XF\Permission\Builder->getContentHandlers() in src/XF/Permission/Builder.php at line 146
XF\Permission\Builder->rebuildCombinationContent() in src/XF/Permission/Builder.php at line 140
XF\Permission\Builder->rebuildCombination() in src/XF/Job/PermissionRebuild.php at line 58
XF\Job\PermissionRebuild->run() in src/XF/Job/Manager.php at line 253
XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 195
XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 111
XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 120
XF\Admin\Controller\Tools->actionRunJob() 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 admin.php at line 13
 

developr

New Member
Now after the upgrade I got an error on the homepage.

Code:
TypeError: Argument 1 passed to Truonglv\Groups\XF\Entity\Node::setTlgGroupEntity() must be an instance of Truonglv\Groups\Entity\Group, null given, called in /srv/www/htdocs/src/addons/Truonglv/Groups/XF/Repository/Node.php on line 53 in src/addons/Truonglv/Groups/XF/Entity/Node.php at line 84
Truonglv\Groups\XF\Entity\Node->setTlgGroupEntity() in src/addons/Truonglv/Groups/XF/Repository/Node.php at line 53
Truonglv\Groups\XF\Repository\Node->loadNodeTypeDataForNodes() in src/XF/Repository/Node.php at line 18
XF\Repository\Node->getNodeList() in src/XF/Pub/Controller/Forum.php at line 50
XF\Pub\Controller\Forum->actionList() in src/addons/Truonglv/Groups/XF/Pub/Controller/Forum.php at line 25
Truonglv\Groups\XF\Pub\Controller\Forum->actionList() 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
 

developr

New Member
Hm... I get this error already since version 2.0.0 on the forum homepage (XF2.1).

Code:
TypeError: Argument 1 passed to Truonglv\Groups\XF\Entity\Node::setTlgGroupEntity() must be an instance of Truonglv\Groups\Entity\Group, null given, called in /srv/www/htdocs/src/addons/Truonglv/Groups/XF/Repository/Node.php on line 53 in src/addons/Truonglv/Groups/XF/Entity/Node.php at line 84
Truonglv\Groups\XF\Entity\Node->setTlgGroupEntity() in src/addons/Truonglv/Groups/XF/Repository/Node.php at line 53
Truonglv\Groups\XF\Repository\Node->loadNodeTypeDataForNodes() in src/XF/Repository/Node.php at line 18
XF\Repository\Node->getNodeList() in src/XF/Pub/Controller/Forum.php at line 50
XF\Pub\Controller\Forum->actionList() in src/addons/Truonglv/Groups/XF/Pub/Controller/Forum.php at line 25
Truonglv\Groups\XF\Pub\Controller\Forum->actionList() 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
 

developr

New Member
The upgrade works well now when I disable this addon before upgrading.

But the error from post #8 still exists. Do you have an idea or solution?

TypeError[/B]: Argument 1 passed to Truonglv\Groups\XF\Entity\Node::setTlgGroupEntity() must be an instance of Truonglv\Groups\Entity\Group, null given, called in /srv/www/htdocs/src/addons/Truonglv/Groups/XF/Repository/Node.php on line 53 in [B]src/addons/Truonglv/Groups/XF/Entity/Node.php[/B] at line [B]84

Code:
TypeError: Argument 1 passed to Truonglv\Groups\XF\Entity\Node::setTlgGroupEntity() must be an instance of Truonglv\Groups\Entity\Group, null given, called in /srv/www/htdocs/src/addons/Truonglv/Groups/XF/Repository/Node.php on line 53 in src/addons/Truonglv/Groups/XF/Entity/Node.php at line 84
Truonglv\Groups\XF\Entity\Node->setTlgGroupEntity() in src/addons/Truonglv/Groups/XF/Repository/Node.php at line 53
Truonglv\Groups\XF\Repository\Node->loadNodeTypeDataForNodes() in src/XF/Repository/Node.php at line 18
XF\Repository\Node->getNodeList() in src/XF/Pub/Controller/Forum.php at line 50
XF\Pub\Controller\Forum->actionList() in src/addons/Truonglv/Groups/XF/Pub/Controller/Forum.php at line 25
Truonglv\Groups\XF\Pub\Controller\Forum->actionList() 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
 
Top