Problem:
If a user has not approved the changed "terms and rules" option; this add-on doesn't work and the user cannot go to another page.
Server error log
[LIST]
[*]ErrorException: [E_WARNING] Attempt to read property "node_id" on null
[*]src/addons/xenMade/STFRT/XF/Pub/Controller/Forum.php:52
[*]Generated by: CJ
[*]Nov 13, 2023 at 7:43 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/addons/xenMade/STFRT/XF/Pub/Controller/Forum.php(52): XF::handlePhpError(2, '[E_WARNING] Att...', '/home/jeepcj/pu...', 52)
#1 src/addons/SV/StandardLib/XF/Pub/Controller/Forum.php(21): xenMade\STFRT\XF\Pub\Controller\Forum->actionForum(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(352): SV\StandardLib\XF\Pub\Controller\Forum->actionForum(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'Forum', Object(XF\Mvc\RouteMatch), Object(EWR\Porta\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute))
#4 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(EWR\Porta\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute))
#5 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#7 src/XF.php(524): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
["url"] => string(45) "/community/forums/threads-to-be-reviewed.168/"
["referrer"] => string(37) "https://jeep-cj.com/community/forums/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
@Ozzy47Problem:
If a user has not approved the changed "terms and rules" option; this add-on doesn't work and the user cannot go to another page.
This is not a bug. The user must agree to them before interacting with other pages.If a user has not approved the changed "terms and rules" option; this add-on doesn't work and the user cannot go to another page.
Ah, now I get itIf the contract is renewed, the user must accept these rules again. If there is something mandatory to read at that time, you can't go to the rules acceptance page option, you can't go anywhere.
And if this is not a bug, what should we do to solve it?
2.0.9 Patch Level 1:
- Fix: Attempt to read property "node_id" on null in .../XF/Pub/Controller/Forum.php:52
- Fix: exclude rules and privacy policy acceptance pages from global forced threads
Change the force notice group from registered to any.Hi @Painbaker,
This feature is only available to logged in users.
So is there a chance to apply it to everyone who visits the site?
Yes, this is caused by the latest patch to XF.and XenForo 2.2.16 with the latest patch level
Line 22:
return $this->view('xenMade\STFRT\Thread\View', 'stfrt_thread_list', $viewParams);
With:
return $this->view('xenMade\STFRT\Thread\View:View', 'stfrt_thread_list', $viewParams);
Line 74:
return $this->view('xenMade\STFRT\Thread\Delete', 'stfrt_thread_delete', $viewParams);
with:
return $this->view('xenMade\STFRT\Thread\Delete:Delete', 'stfrt_thread_delete', $viewParams);
Line 93:
return $this->view('xenMade\STFRT\Thread\Reset', 'stfrt_thread_reset', $viewParams);
with:
return $this->view('xenMade\STFRT\Thread\Reset:Reset', 'stfrt_thread_reset', $viewParams);
Line 176:
return $this->view('xenMade\STFRT\Thread\Edit', 'stfrt_thread_edit', $viewParams);
with:
return $this->view('xenMade\STFRT\Thread\Edit:Edit', 'stfrt_thread_edit', $viewParams);
We use essential cookies to make this site work, and optional cookies to enhance your experience.