[AL] Perspective API 2.x

[AL] Perspective API 2.x [Paid] 2.3.2

No permission to buy ($59.99)
The permission to bypass auto-moderation applies to users who make the post, during making the post - if they cannot bypass it, then their post is checked.

That is what I was expecting if bypass auto-moderation is set for a user group, but what I am seeing is that the posts are still sent off to the Google API for checking.
 
Got a conflict with this, between @AndyB history addon. Testing this out, and found this issue.

Code:
Server error log
ErrorException: [E_WARNING] Attempt to read property "thread_id" on null src/addons/AL/PerspectiveApi/XF/Pub/Controller/Thread.php:46
Generated by: Unknown account Apr 11, 2025 at 11:37 PM
Stack trace
#0 src/addons/AL/PerspectiveApi/XF/Pub/Controller/Thread.php(46): XF::handlePhpError(2, '[E_WARNING] Att...', '/home/myptsd/pu...', 46)
#1 src/addons/Andy/History/XF/Pub/Controller/Thread.php(12): AL\PerspectiveApi\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(362): Andy\History\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Index', Object(XF\Mvc\RouteMatch), Object(XFES\XF\Pub\Controller\Thread), NULL)
#4 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFES\XF\Pub\Controller\Thread), NULL)
#5 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#7 src/XF.php(806): XF\App->run()
#8 index.php(23): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
  ["url"] => string(32) "/threads/new-to-the-forum.14729/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
That is what I was expecting if bypass auto-moderation is set for a user group, but what I am seeing is that the posts are still sent off to the Google API for checking.

This issue is resolved now. Please check the latest release.

Got a conflict with this, between @AndyB history addon. Testing this out, and found this issue.

Code:
Server error log
ErrorException: [E_WARNING] Attempt to read property "thread_id" on null src/addons/AL/PerspectiveApi/XF/Pub/Controller/Thread.php:46
Generated by: Unknown account Apr 11, 2025 at 11:37 PM
Stack trace
#0 src/addons/AL/PerspectiveApi/XF/Pub/Controller/Thread.php(46): XF::handlePhpError(2, '[E_WARNING] Att...', '/home/myptsd/pu...', 46)
#1 src/addons/Andy/History/XF/Pub/Controller/Thread.php(12): AL\PerspectiveApi\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(362): Andy\History\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Index', Object(XF\Mvc\RouteMatch), Object(XFES\XF\Pub\Controller\Thread), NULL)
#4 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFES\XF\Pub\Controller\Thread), NULL)
#5 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#7 src/XF.php(806): XF\App->run()
#8 index.php(23): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
  ["url"] => string(32) "/threads/new-to-the-forum.14729/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

We have modified the add-on not to trigger an error, but it seems the thread variable that was meant to be present on the thread page simply did not exist, so it seems the original issue is with some other add-on.

Thank you!
 
AddonsLab updated [AL] Perspective API 2.x with a new update entry:

XenForo 2.3.7 issue patch release

A new method - getEntityNameLowerCase has been added to address the template error - get_entity_name not available.

This issue is related to a XenForo bug reported at https://xenforo.com/community/threads/breaking-change-in-xenforo-2-3-7-in-getter-syntax.232161/ that will be resolved in version 2.3.8.

Meanwhile, please apply this package and install the latest version of the affected add-on to resolve the error.

The new version is available for all licensed customers at...

Read the rest of this update entry...
 
Back
Top Bottom