Bug Template error: [E_WARNING] Constant BB2_CORE already defined when paging through bad behavior logs

Status
Not open for further replies.

SeToY

Customer
Code:
ErrorException: Template error: [E_WARNING] Constant BB2_CORE already defined src\addons\DBTech\Security\Entity\BadBehavior.php:33
Generated by: SeToY 9 Jan 2023 at 08:57

Code:
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Con...', 'D:\\inetpub\\wwwr...', 33)
#1 src\addons\DBTech\Security\Entity\BadBehavior.php(33): define('BB2_CORE', 'D:\\inetpub\\wwwr...')
#2 src\XF\Mvc\Entity\Entity.php(167): DBTech\Security\Entity\BadBehavior->getResponse()
#3 src\XF\Mvc\Entity\Entity.php(125): XF\Mvc\Entity\Entity->get('response')
#4 internal_data\code_cache\templates\l4\s0\admin\dbtech_security_log_bad_behavior_list.php(55): XF\Mvc\Entity\Entity->offsetGet('response')
#5 src\XF\Template\Templater.php(1652): XF\Template\Templater->{closure}(Object(SV\WarningImprovements\XF\Template\Templater), Array, NULL)
#6 src\XF\Template\Template.php(24): XF\Template\Templater->renderTemplate('dbtech_security...', Array)
#7 src\XF\Mvc\Renderer\Html.php(50): XF\Template\Template->render()
#8 src\XF\Mvc\Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('DBTech\\Security...', 'admin:dbtech_se...', Array)
#9 src\XF\Mvc\Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src\XF\Mvc\Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src\XF\Mvc\Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src\XF\App.php(2483): XF\Mvc\Dispatcher->run()
#13 src\XF.php(524): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}

Code:
array(4) {
  ["url"] => string(52) "/admin.php?dbtech-security/logs/bad-behavior/&page=2"
  ["referrer"] => string(81) "https://domain.com/admin.php?dbtech-security/logs/bad-behavior/"
  ["_GET"] => array(2) {
    ["dbtech-security/logs/bad-behavior/"] => string(0) ""
    ["page"] => string(1) "2"
  }
  ["_POST"] => array(0) {
  }
}

Code:
PHP version    8.1.12
MySQL version    10.6.11 (10.6.11-MariaDB)
Server software    Microsoft-IIS/10.0
 
Bad Behavior is currently not compatible with PHP 8.1, please disable it for now.
 
Hello @SeToY,

We hope your ticket regarding DragonByte Security has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
I'd like to keep this ticket open, as "please disable this functionality" is merely a workaround and not a fix. Thanks.
 
The reason why I'm recommending disabling Bad Behavior for now is that the project is abandoned by the original authors, and breaks down when attempting to run on PHP versions 8.1 and newer.

The original website is down (I won't link to it in case it gets taken over by malicious actors), and the GitHub repo has had a placeholder file for 11 years: https://github.com/bad-behavior/core

I am investigating solutions for carrying the functionality forward, I've posted the latest update here: https://www.dragonbyte-tech.com/thr...ypeerror-dechex-argument-1.25724/#post-130307

---

All of that being said, I was too hasty in my original reply and this particular issue will be fixed in the next update :)
 
Hello @SeToY,

We hope your ticket regarding DragonByte Security has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Hello @SeToY,

As we have not heard back from you, your ticket regarding DragonByte Security has now been closed.

If your ticket has not been resolved, please feel free to start a new support ticket and link back to this ticket.

If you have time, please leave a review on XenForo.com's Resource Manager.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

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,090
Customer rating
5.00 star(s) 1 ratings
Back
Top