Bug BadBehavior issues with newer PHP versions

fionix

Customer
After installing this ADD On yesterday again, I get the below error when people create an thread for instant.

Code:
#0 src/addons/DBTech/Security/3rdParty/bad-behavior/banned.inc.php(47): dechex('2a06:98c0:3600:...')
#1 src/addons/DBTech/Security/3rdParty/bad-behavior/core.inc.php(22): bb2_display_denial(Array, Array, '17566707', '17566707')
#2 src/addons/DBTech/Security/3rdParty/bad-behavior/core.inc.php(152): bb2_banned(Array, Array, '17566707')
#3 src/addons/DBTech/Security/Listener.php(245): bb2_start(Array)
#4 src/XF/Extension.php(69): DBTech\Security\Listener::dispatcherPostRender(Object(XF\Mvc\Dispatcher), '<!doctype html>...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html), Object(XF\Http\Response))
#5 src/XF/App.php(2855): XF\Extension->fire('dispatcher_post...', Array, NULL)
#6 src/XF/Mvc/Dispatcher.php(409): XF\App->fire('dispatcher_post...', Array)
#7 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#8 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#9 src/XF.php(524): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}
 
I would recommend disabling the BadBehavior integration for now. The project appears abandoned, as the original website is no longer accessible.

I'm monitoring efforts to revive the project but I have no news to share at this time.
 
Update: From others experiencing this issue, it seems like the current implementation does not work on PHP 8.1 or newer.

There is an alternative project that aims to carry on support here: https://github.com/Bad-Behaviour/badbehaviour but it requires PHP 8.0, so I'm hesitant to include it in the current version.

When XenForo 2.3 is released, I would consider bumping all of my add-ons up to a minimum PHP version of 8.0, which would then enable me to include this newer version.
 

DragonByte Security

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