Bug Undefined Index Errors

Status
Not open for further replies.

etrd

Customer
We've been receiving infinite number of these errors when we install the new version DB Shop 6.5.0

PHP version 7.4.29
MySQL version 10.3.35 (10.3.35-MariaDB)

Everything is working fine prior to v6.5.0. We're hoping we could undo it by reinstalling the previous version but it wont let us due to lower version.

shop650errors.jpg

  • ErrorException: [E_NOTICE] Undefined index: itemIds
  • src/addons/DBTech/Shop/Listener.php:192

Stack trace​

#0 src/addons/DBTech/Shop/Listener.php(192): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/user/publi...', 192, Array)
#1 src/XF/Extension.php(69): DBTech\Shop\Listener::criteriaUser('dbtech_shop_ite...', Array, Object(SV\UserPromoOnUpdate\XF\Entity\User), false)
#2 src/XF/App.php(2854): XF\Extension->fire('criteria_user', Array, NULL)
#3 src/XF/Criteria/User.php(66): XF\App->fire('criteria_user', Array)
#4 src/XF/Criteria/AbstractCriteria.php(65): XF\Criteria\User->isUnknownMatched('dbtech_shop_ite...', Array, Object(SV\UserPromoOnUpdate\XF\Entity\User))
#5 src/XF/Repository/Trophy.php(70): XF\Criteria\AbstractCriteria->isMatched(Object(SV\UserPromoOnUpdate\XF\Entity\User))
#6 src/XF/Pub/App.php(258): XF\Repository\Trophy->updateTrophiesForUser(Object(SV\UserPromoOnUpdate\XF\Entity\User))
#7 src/XF/Pub/App.php(198): XF\Pub\App->updateUserCaches()
#8 src/XF/App.php(2348): XF\Pub\App->start(true)
#9 src/XF.php(524): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}


Request state​

array(4) {
["url"] => string(24) "/lost-password/requested"
["referrer"] => string(50) "https://www.domain.ext/lost-password/requested"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}


-------------------------------------------

  • ErrorException: [E_NOTICE] Undefined index: all
  • src/addons/DBTech/Shop/Listener.php:221

Stack trace​

#0 src/addons/DBTech/Shop/Listener.php(221): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/user/publi...', 221, Array)
#1 src/XF/Extension.php(69): DBTech\Shop\Listener::criteriaUser('dbtech_shop_ite...', Array, Object(SV\UserPromoOnUpdate\XF\Entity\User), false)
#2 src/XF/App.php(2854): XF\Extension->fire('criteria_user', Array, NULL)
#3 src/XF/Criteria/User.php(66): XF\App->fire('criteria_user', Array)
#4 src/XF/Criteria/AbstractCriteria.php(65): XF\Criteria\User->isUnknownMatched('dbtech_shop_ite...', Array, Object(SV\UserPromoOnUpdate\XF\Entity\User))
#5 src/XF/Repository/Trophy.php(70): XF\Criteria\AbstractCriteria->isMatched(Object(SV\UserPromoOnUpdate\XF\Entity\User))
#6 src/XF/Pub/App.php(258): XF\Repository\Trophy->updateTrophiesForUser(Object(SV\UserPromoOnUpdate\XF\Entity\User))
#7 src/XF/Pub/App.php(198): XF\Pub\App->updateUserCaches()
#8 src/XF/App.php(2348): XF\Pub\App->start(true)
#9 src/XF.php(524): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}


Request state​

array(4) {
["url"] => string(24) "/lost-password/requested"
["referrer"] => string(50) "https://www.domain.ext/lost-password/requested"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Last edited:
What criteria? We didnt do anything except install the update. We didnt change the setting or anything.
 
Trophy criteria. I'll fix it in the next update, but for now the fix is to edit and save trophies and anything else that might save user criteria.
 
We've edited the trophies and reselect the criteria and the [E_NOTICE] Undefined index: itemIds errors were gone but the [E_NOTICE] Undefined index: all errors still persists.
 
Hello @etrd,

We hope your ticket regarding DragonByte Shop 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 @etrd,

As we have not heard back from you, your ticket regarding DragonByte Shop 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 Shop

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