An catastrophic error issue when using node-based navigation tabs... and a couple other questions...

xydrine

New Member
Hi - I posted this on XenForo.com but I am not sure how active you over there and many developers prefer stuff posted on their own forum so I figured I'd cross-post it here. Hope you don't mind.

Anyway, I am having a very interesting error when creating a navigation tab which utilizes the node option on the configuration page of that tab...

For example, here's the tab I created:

Imagde33.png

When this tab is in the enabled state, the main forum page works, the tab works, category pages work, but almost every other function on the forum throws this error:

Code:
An exception occurred: [Error] Call to undefined method XF\Entity\Node::setTlgGroupEntity() in src/addons/Truonglv/Groups/Repository/Group.php on line 115

Truonglv\Groups\Repository\Group->loadGroupsForNodes() in src/addons/Truonglv/Groups/XF/Repository/Node.php at line 22
Truonglv\Groups\XF\Repository\Node->loadNodeTypeDataForNodes() in src/XF/Navigation/NodeType.php at line 227
XF\Navigation\NodeType::loadPendingNodeData() in src/XF/Navigation/NodeType.php at line 115
XF\Navigation\NodeType::displayNodeExtended() in internal_data/code_cache/navigation_cache.php at line 107
XF\Pub\App->{closure}() in src/XF/Template/Templater.php at line 6646
XF\Template\Templater->renderNavigationClosure() in src/XF/Pub/App.php at line 560
XF\Pub\App->getNavigation() in src/XF/Pub/App.php at line 513
XF\Pub\App->renderPageHtml() in src/XF/App.php at line 1989
XF\App->renderPage() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 53
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2178
XF\App->run() in src/XF.php at line 390
XF::runApp() in index.php at line 20
Playing with any of the options on this navigation tab does not change anything - the errors are still thrown.

Here's the full error log:

Code:
Server error log
Error: Call to undefined method XF\Entity\Node::setTlgGroupEntity() src/addons/Truonglv/Groups/Repository/Group.php:115
Generated by: Unknown account Aug 7, 2019 at 12:02 PM
Stack trace
#0 src/addons/Truonglv/Groups/XF/Repository/Node.php(22): Truonglv\Groups\Repository\Group->loadGroupsForNodes(Array)
#1 src/XF/Navigation/NodeType.php(227): Truonglv\Groups\XF\Repository\Node->loadNodeTypeDataForNodes(Array)
#2 src/XF/Navigation/NodeType.php(115): XF\Navigation\NodeType::loadPendingNodeData(true)
#3 internal_data/code_cache/navigation_cache.php(107): XF\Navigation\NodeType::displayNodeExtended(4, 'testnav')
#4 src/XF/Template/Templater.php(6646): XF\Pub\App->{closure}(Object(AddonFlare\PaidRegistrations\XF\Template\Templater), 'forums', Array)
#5 src/XF/Pub/App.php(560): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#6 src/XF/Pub/App.php(513): XF\Pub\App->getNavigation(Array, 'forums')
#7 src/XF/App.php(1989): XF\Pub\App->renderPageHtml('








  
  
  
...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(362): XF\App->renderPage('








  
  
  
...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#9 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#11 src/XF.php(390): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
Request state
array(4) {
  ["url"] => string(25) "/index.php?threads/70846/"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["threads/70846/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
Any idea what might be causing this? It is most likely PHP related and I could probably play around with the php file in question but I figured I'd ask here first.

Also, I wanted to find out something regarding the "Newsfeed" option in social groups. We have notifications enabled however when clicking this item inside a social group, it does not actually do anything. It just brings us to our default discussion forum inside the social group. Is there something I am missing regarding this function?

Lastly, when looking at the "About" page, Administrators and Members are displayed - is there any way that Moderators of the social group (i.e. relating to our "Social Group Moderators" social group role) could be displayed as a separate entity in this list as well?

Thanks a bunch!
 

Thread view new threads

Top