InvalidArgumentException: MAD thread report creation error: Attempted to convert NULL to string/binary [username] src/XF/Mvc/Entity/Entity.php:765
Generated by: iHate Oct 25, 2022 at 3:35 AM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(643): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'username', 5, Array)
#1 src/XF/Mvc/Entity/Entity.php(572): XF\Mvc\Entity\Entity->set('username', NULL)
#2 src/XF/Service/Thread/Creator.php(109): XF\Mvc\Entity\Entity->__set('username', NULL)
#3 src/XF/Service/Thread/Creator.php(73): XF\Service\Thread\Creator->setUser(Object(MMO\ReputationSystem\XF\Entity\User))
#4 src/XF/Service/Thread/Creator.php(57): XF\Service\Thread\Creator->setupDefaults()
#5 src/XF/Container.php(276): XF\Service\Thread\Creator->__construct(Object(XF\Pub\App), Object(XFMG\XF\Entity\Forum))
#6 src/XF/App.php(1710): XF\Container->createObject('XF\\Service\\Thre...', Array)
#7 src/XF/Container.php(234): XF\App->XF\{closure}('XF\\Service\\Thre...', Array, Object(XF\Container))
#8 src/XF/App.php(3023): XF\Container->create('service', 'XF:Thread\\Creat...', Array)
#9 src/XF/Service/AbstractService.php(79): XF\App->service('XF:Thread\\Creat...', Object(XFMG\XF\Entity\Forum))
#10 src/addons/BS/MultiAccountDetector/Service/Thread/ReportDuplicate.php(49): XF\Service\AbstractService->service('XF:Thread\\Creat...', Object(XFMG\XF\Entity\Forum))
#11 src/XF.php(625): BS\MultiAccountDetector\Service\Thread\ReportDuplicate->BS\MultiAccountDetector\Service\Thread\{closure}()
#12 src/addons/BS/MultiAccountDetector/Service/Thread/ReportDuplicate.php(70): XF::asVisitor(Object(MMO\ReputationSystem\XF\Entity\User), Object(Closure))
#13 src/addons/BS/MultiAccountDetector/Repository/MultiAccount.php(109): BS\MultiAccountDetector\Service\Thread\ReportDuplicate->create()
#14 src/addons/BS/MultiAccountDetector/Entity/MultiAccount.php(93): BS\MultiAccountDetector\Repository\MultiAccount->createThreadReport(Object(BS\MultiAccountDetector\Entity\MultiAccount))
#15 src/addons/BS/MultiAccountDetector/Entity/MultiAccount.php(85): BS\MultiAccountDetector\Entity\MultiAccount->_createThreadReport()
#16 src/XF/Mvc/Entity/Entity.php(1272): BS\MultiAccountDetector\Entity\MultiAccount->_postSave()
#17 src/addons/BS/MultiAccountDetector/Repository/MultiAccount.php(91): XF\Mvc\Entity\Entity->save()
#18 src/addons/BS/MultiAccountDetector/XF/Pub/Controller/Member.php(104): BS\MultiAccountDetector\Repository\MultiAccount->createMultiAccountReport(Object(MMO\ReputationSystem\XF\Entity\User))
#19 src/XF/Mvc/Dispatcher.php(352): BS\MultiAccountDetector\XF\Pub\Controller\Member->actionMadCheck(Object(XF\Mvc\ParameterBag))
#20 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'MadCheck', Object(XF\Mvc\RouteMatch), Object(ThemeHouse\AttachmentsPlus\XF\Pub\Controller\Member), NULL)
#21 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ThemeHouse\AttachmentsPlus\XF\Pub\Controller\Member), NULL)
#22 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#23 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#24 src/XF.php(524): XF\App->run()
#25 index.php(20): XF::runApp('XF\\Pub\\App')
#26 {main}
-------------
Previous InvalidArgumentException: Attempted to convert NULL to string/binary - src/XF/Mvc/Entity/ValueFormatter.php:138
#0 src/XF/Mvc/Entity/Entity.php(761): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 5, Array)
#1 src/XF/Mvc/Entity/Entity.php(643): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'username', 5, Array)
#2 src/XF/Mvc/Entity/Entity.php(572): XF\Mvc\Entity\Entity->set('username', NULL)
#3 src/XF/Service/Thread/Creator.php(109): XF\Mvc\Entity\Entity->__set('username', NULL)
#4 src/XF/Service/Thread/Creator.php(73): XF\Service\Thread\Creator->setUser(Object(MMO\ReputationSystem\XF\Entity\User))
#5 src/XF/Service/Thread/Creator.php(57): XF\Service\Thread\Creator->setupDefaults()
#6 src/XF/Container.php(276): XF\Service\Thread\Creator->__construct(Object(XF\Pub\App), Object(XFMG\XF\Entity\Forum))
#7 src/XF/App.php(1710): XF\Container->createObject('XF\\Service\\Thre...', Array)
#8 src/XF/Container.php(234): XF\App->XF\{closure}('XF\\Service\\Thre...', Array, Object(XF\Container))
#9 src/XF/App.php(3023): XF\Container->create('service', 'XF:Thread\\Creat...', Array)
#10 src/XF/Service/AbstractService.php(79): XF\App->service('XF:Thread\\Creat...', Object(XFMG\XF\Entity\Forum))
#11 src/addons/BS/MultiAccountDetector/Service/Thread/ReportDuplicate.php(49): XF\Service\AbstractService->service('XF:Thread\\Creat...', Object(XFMG\XF\Entity\Forum))
#12 src/XF.php(625): BS\MultiAccountDetector\Service\Thread\ReportDuplicate->BS\MultiAccountDetector\Service\Thread\{closure}()
#13 src/addons/BS/MultiAccountDetector/Service/Thread/ReportDuplicate.php(70): XF::asVisitor(Object(MMO\ReputationSystem\XF\Entity\User), Object(Closure))
#14 src/addons/BS/MultiAccountDetector/Repository/MultiAccount.php(109): BS\MultiAccountDetector\Service\Thread\ReportDuplicate->create()
#15 src/addons/BS/MultiAccountDetector/Entity/MultiAccount.php(93): BS\MultiAccountDetector\Repository\MultiAccount->createThreadReport(Object(BS\MultiAccountDetector\Entity\MultiAccount))
#16 src/addons/BS/MultiAccountDetector/Entity/MultiAccount.php(85): BS\MultiAccountDetector\Entity\MultiAccount->_createThreadReport()
#17 src/XF/Mvc/Entity/Entity.php(1272): BS\MultiAccountDetector\Entity\MultiAccount->_postSave()
#18 src/addons/BS/MultiAccountDetector/Repository/MultiAccount.php(91): XF\Mvc\Entity\Entity->save()
#19 src/addons/BS/MultiAccountDetector/XF/Pub/Controller/Member.php(104): BS\MultiAccountDetector\Repository\MultiAccount->createMultiAccountReport(Object(MMO\ReputationSystem\XF\Entity\User))
#20 src/XF/Mvc/Dispatcher.php(352): BS\MultiAccountDetector\XF\Pub\Controller\Member->actionMadCheck(Object(XF\Mvc\ParameterBag))
#21 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'MadCheck', Object(XF\Mvc\RouteMatch), Object(ThemeHouse\AttachmentsPlus\XF\Pub\Controller\Member), NULL)
#22 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ThemeHouse\AttachmentsPlus\XF\Pub\Controller\Member), NULL)
#23 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#24 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#25 src/XF.php(524): XF\App->run()
#26 index.php(20): XF::runApp('XF\\Pub\\App')
#27 {main}
Request state
array(4) {
["url"] => string(18) "/members/mad-check"
["referrer"] => string(35) "https://XXX.org/register/complete"
["_GET"] => array(1) {
["/members/mad-check"] => string(0) ""
}
["_POST"] => array(6) {
["fpJs"] => string(32) "13e8c950ee46a51fa64fcdcef9ac1287"
["ec"] => array(1) {
[0] => string(32) "52d2f307f3e0f2b100d4ef826816cccb"
}
["_xfRequestUri"] => string(18) "/register/complete"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}