Bug [E_NOTICE] Trying to get property 'hash' of non-object

Status
Not open for further replies.

Nirjonadda

Customer
Server error logs

Code:
ErrorException: [E_NOTICE] Trying to get property 'hash' of non-object src/addons/DBTech/Security/Pub/Controller/AccountLock.php:109

Generated by: Bergamo Jan 8, 2019 at 9:28 PM

Stack trace

#0 src/addons/DBTech/Security/Pub/Controller/AccountLock.php(109): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nadda/pub...', 109, Array)
#1 src/addons/DBTech/Security/Pub/Controller/AccountLock.php(51): DBTech\Security\Pub\Controller\AccountLock->assertValidatedUnlockHash(2, 'c0a50e2140df3b1...')
#2 src/XF/Mvc/Dispatcher.php(249): DBTech\Security\Pub\Controller\AccountLock->actionUnlock(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('DBTech\\Security...', 'Unlock', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(DBTech\Security\Pub\Controller\AccountLock), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
#6 src/XF.php(333): XF\App->run()
#7 index.php(13): XF::runApp('XF\\Pub\\App')
#8 {main}

Request state

array(4) {
  ["url"] => string(84) "/dbtech-security/account-lock/unlock?user_id=2&hash=c0a50e2140df3b1f0d943171c84e5088"
  ["referrer"] => bool(false)
  ["_GET"] => array(2) {
    ["user_id"] => string(1) "2"
    ["hash"] => string(32) "c0a50e2140df3b1f0d943171c84e5088"
  }
  ["_POST"] => array(0) {
  }
}
 
The only way that could happen would be if someone tried to click the link twice. I'll fix that in the next version, for now it can be ignored.
 
Hello @Nirjonadda,

We hope your ticket regarding DragonByte Security has been addressed to your satisfaction. This ticket has now been 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.
 
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,188
Customer rating
5.00 star(s) 1 ratings
Back
Top