[DBTech] DragonByte Shop

[DBTech] DragonByte Shop [Paid] 7.4.0

No permission to buy (€12.45)
@DragonByte Tech or anyone who may know the answer,...

I will only have a few items in the shop and as such my shop items will not need to be searchable.

My question is, does anybody know where/how to disable or remove the added links "Search items" and "Search trade posts" from the Advanced Search page search navigation bar?

I cannot for the life of me find it.
 
DragonByte Tech updated [DBTech] DragonByte Shop with a new update entry:

7.2.4

Update highlights​

This version fixes a couple regressions from v7.2.3 caused by the new caching system implemented in that version, primarily centered around stock updates.


Complete Change Log​

Fix: Fix cache generator potentially causing edits appearing as if they did not save
Fix: Fix issues with stock updates not being reflected in the cache

Read the rest of this update entry...
 
@DragonByte Tech or anyone who may know the answer,...

I will only have a few items in the shop and as such my shop items will not need to be searchable.

My question is, does anybody know where/how to disable or remove the added links "Search items" and "Search trade posts" from the Advanced Search page search navigation bar?

I cannot for the life of me find it.

There's no option, that takes a custom modification.
 
Same issue, we have like 6 items and don't want to pollute the search with them.

I made a new addon, extended the \XF\Search\Search class and blocked anything with the prefix dbtech_shop_
 
Last edited:
DragonByte Tech updated [DBTech] DragonByte Shop with a new update entry:

7.3.0

Update highlights​

This version adds a few new features requested by the community, as well as performance improvements aimed mostly at forums with a very large node count.

You can now sell a new item type; "User Icon", which adds a pre-defined icon in front of the buyer's user name in most locations across the site. There is no "user customisable" version of this item because of the moderation nightmare this would introduce.

The "Thread Highlight" (and its Pre-Defined...

Read the rest of this update entry...
 
DragonByte Tech updated [DBTech] DragonByte Shop with a new update entry:

7.3.3

Update highlights​

This version adds the ability for users to see their own purchased lottery tickets and whether they won any prizes when clicking the lottery draw history. Winning numbers are highlighted with accent coloured backgrounds.


Complete Change Log​

Feature: Display purchased lottery tickets in the draw history

Read the rest of this update entry...
 
After upgrading from XF 2.2.17 to 2.2.19 Patch 1 I keep getting errors.

Im going to see if I can download a patch.


1788796724375.webp
 

Attachments

  • 1788796679081.webp
    1788796679081.webp
    10.4 KB · Views: 2
Hi,

Thanks for letting me know, I'm investigating and will get back to you as soon as possible :)
Here's an example stack trace.



Code:
    LogicException: Macro public:helper_js_global :: body() error: Cannot modify container while locked src/XF/Container.php:323

    Generated by: Alex September 7, 2026 at 11:58 AM

Stack trace

#0 src/XF/Container.php(112): XF\Container->assertNotLocked()
#1 src/XF/Container.php(67): XF\Container->set('dbtechShop.item...', Object(XF\Mvc\Entity\ArrayCollection))
#2 src/addons/DBTech/Shop/XF/Entity/User.php(226): XF\Container->offsetSet('dbtechShop.item...', Object(XF\Mvc\Entity\ArrayCollection))
#3 src/XF/Mvc/Entity/Entity.php(167): DBTech\Shop\XF\Entity\User->getDbtechShopPurchase()
#4 src/XF/Mvc/Entity/Entity.php(119): XF\Mvc\Entity\Entity->get('dbtech_shop_pur...')
#5 src/addons/DBTech/Shop/Repository/Purchase.php(296): XF\Mvc\Entity\Entity->__get('dbtech_shop_pur...')
#6 src/addons/DBTech/Shop/Repository/Purchase.php(331): DBTech\Shop\Repository\Purchase->getViewablePurchasesForUser(Object(NF\Discord\XF\Entity\User), false)
#7 src/addons/DBTech/Shop/XF/Entity/User.php(286): DBTech\Shop\Repository\Purchase->filterActivePurchasesForUser(Object(NF\Discord\XF\Entity\User), false)
#8 src/XF/Template/Templater.php(1202): DBTech\Shop\XF\Entity\User->hasPermission('siropuChat', 'viewChat')
#9 internal_data/code_cache/templates/l1/s0/public/helper_js_global.php(62): XF\Template\Templater->method(Object(NF\Discord\XF\Entity\User), 'hasPermission', Array)
#10 src/XF/Template/Templater.php(829): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#11 internal_data/code_cache/templates/l1/s0/admin/helper_js_global.php(12): XF\Template\Templater->callMacro('helper_js_globa...', 'body', Array, Array)
#12 src/XF/Template/Templater.php(829): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#13 internal_data/code_cache/templates/l1/s0/admin/PAGE_CONTAINER.php(505): XF\Template\Templater->callMacro('helper_js_globa...', 'body', Array, Array)
#14 src/XF/Template/Templater.php(1663): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#15 src/XF/Admin/App.php(259): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
#16 src/XF/App.php(2283): XF\Admin\App->renderPageHtml('


    
    
    <div cl...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#17 src/XF/Admin/App.php(138): XF\App->renderPage('


    
    
    <div cl...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#18 src/XF/Mvc/Dispatcher.php(404): XF\Admin\App->renderPage('


    
    
    <div cl...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#19 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#20 src/XF/App.php(2523): XF\Mvc\Dispatcher->run()
#21 src/XF.php(524): XF\App->run()
#22 admin.php(13): XF::runApp('XF\\Admin\\App')
#23 {main}

Request state

array(4) {
  ["url"] => string(22) "/forum/admin.php?logs/"
  ["referrer"] => string(45) "https://pawngame.com/forum/admin.php?add-ons/"
  ["_GET"] => array(1) {
    ["logs/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
Here's an example stack trace.



Code:
    LogicException: Macro public:helper_js_global :: body() error: Cannot modify container while locked src/XF/Container.php:323

    Generated by: Alex September 7, 2026 at 11:58 AM

Stack trace

#0 src/XF/Container.php(112): XF\Container->assertNotLocked()
#1 src/XF/Container.php(67): XF\Container->set('dbtechShop.item...', Object(XF\Mvc\Entity\ArrayCollection))
#2 src/addons/DBTech/Shop/XF/Entity/User.php(226): XF\Container->offsetSet('dbtechShop.item...', Object(XF\Mvc\Entity\ArrayCollection))
#3 src/XF/Mvc/Entity/Entity.php(167): DBTech\Shop\XF\Entity\User->getDbtechShopPurchase()
#4 src/XF/Mvc/Entity/Entity.php(119): XF\Mvc\Entity\Entity->get('dbtech_shop_pur...')
#5 src/addons/DBTech/Shop/Repository/Purchase.php(296): XF\Mvc\Entity\Entity->__get('dbtech_shop_pur...')
#6 src/addons/DBTech/Shop/Repository/Purchase.php(331): DBTech\Shop\Repository\Purchase->getViewablePurchasesForUser(Object(NF\Discord\XF\Entity\User), false)
#7 src/addons/DBTech/Shop/XF/Entity/User.php(286): DBTech\Shop\Repository\Purchase->filterActivePurchasesForUser(Object(NF\Discord\XF\Entity\User), false)
#8 src/XF/Template/Templater.php(1202): DBTech\Shop\XF\Entity\User->hasPermission('siropuChat', 'viewChat')
#9 internal_data/code_cache/templates/l1/s0/public/helper_js_global.php(62): XF\Template\Templater->method(Object(NF\Discord\XF\Entity\User), 'hasPermission', Array)
#10 src/XF/Template/Templater.php(829): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#11 internal_data/code_cache/templates/l1/s0/admin/helper_js_global.php(12): XF\Template\Templater->callMacro('helper_js_globa...', 'body', Array, Array)
#12 src/XF/Template/Templater.php(829): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#13 internal_data/code_cache/templates/l1/s0/admin/PAGE_CONTAINER.php(505): XF\Template\Templater->callMacro('helper_js_globa...', 'body', Array, Array)
#14 src/XF/Template/Templater.php(1663): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#15 src/XF/Admin/App.php(259): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
#16 src/XF/App.php(2283): XF\Admin\App->renderPageHtml('


   
   
    <div cl...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#17 src/XF/Admin/App.php(138): XF\App->renderPage('


   
   
    <div cl...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#18 src/XF/Mvc/Dispatcher.php(404): XF\Admin\App->renderPage('


   
   
    <div cl...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#19 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#20 src/XF/App.php(2523): XF\Mvc\Dispatcher->run()
#21 src/XF.php(524): XF\App->run()
#22 admin.php(13): XF::runApp('XF\\Admin\\App')
#23 {main}

Request state

array(4) {
  ["url"] => string(22) "/forum/admin.php?logs/"
  ["referrer"] => string(45) "https://pawngame.com/forum/admin.php?add-ons/"
  ["_GET"] => array(1) {
    ["logs/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
Thank you :)

I have upgraded my local test board to 2.3.13 and I'm currently verifying the fix to ensure it works on XenForo versions < 2.3.9 (where this change was very first introduced) and to ensure it doesn't break anything else.

Once it's all done and the fix has been applied to the latest beta and non-beta versions, I will go through each affected resource and post an update explaining what happened and how to get the fix.
 
DragonByte Tech updated [DBTech] DragonByte Shop with a new update entry:

Hotfix

This add-on has been hotfixed to address an issue affecting all front-end pages while this add-on is enabled. This issue was caused by additional security measures introduced in XenForo 2.3.13.

The latest version has been patched, and can be downloaded at no additional cost. If you are running an older version and you are unable to upgrade for whatever reason, please let me know the exact version you are running and I will apply the hotfix accordingly.

Read the rest of this update entry...
 
I have DB Shop 6.6.3 and DB Credits 5.8.5, is it possible to get the hotfix without renewing the license?
 
Do I need to do anything other than just re-uploading the files, such as rebuild? Because it didnt work, and it also makes thing difficult because I cant manage addons, have to disable all to disable the DB ones.


  • Code:
    LogicException: Macro public:helper_js_global :: body() error: Cannot modify container while locked
                  
    src/XF/Container.php:323
                
    
                    
    Generated by: Alex
                  
    September 7, 2026 at 1:58 PM
                
    
    
          
    Stack trace
          
                #0 src/XF/Container.php(112): XF\Container->assertNotLocked()
    #1 src/XF/Container.php(67): XF\Container->set('dbtechShop.item...', Object(XF\Mvc\Entity\ArrayCollection))
    #2 src/addons/DBTech/Shop/XF/Entity/User.php(226): XF\Container->offsetSet('dbtechShop.item...', Object(XF\Mvc\Entity\ArrayCollection))
    #3 src/XF/Mvc/Entity/Entity.php(167): DBTech\Shop\XF\Entity\User->getDbtechShopPurchase()
    #4 src/XF/Mvc/Entity/Entity.php(119): XF\Mvc\Entity\Entity->get('dbtech_shop_pur...')
    #5 src/addons/DBTech/Shop/Repository/Purchase.php(296): XF\Mvc\Entity\Entity->__get('dbtech_shop_pur...')
    #6 src/addons/DBTech/Shop/Repository/Purchase.php(331): DBTech\Shop\Repository\Purchase->getViewablePurchasesForUser(Object(NF\Discord\XF\Entity\User), false)
    #7 src/addons/DBTech/Shop/XF/Entity/User.php(286): DBTech\Shop\Repository\Purchase->filterActivePurchasesForUser(Object(NF\Discord\XF\Entity\User), false)
    #8 src/XF/Template/Templater.php(1202): DBTech\Shop\XF\Entity\User->hasPermission('siropuChat', 'viewChat')
    #9 internal_data/code_cache/templates/l1/s0/public/helper_js_global.php(62): XF\Template\Templater->method(Object(NF\Discord\XF\Entity\User), 'hasPermission', Array)
    #10 src/XF/Template/Templater.php(829): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
    #11 internal_data/code_cache/templates/l1/s0/admin/helper_js_global.php(12): XF\Template\Templater->callMacro('helper_js_globa...', 'body', Array, Array)
    #12 src/XF/Template/Templater.php(829): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
    #13 internal_data/code_cache/templates/l1/s0/admin/PAGE_CONTAINER.php(505): XF\Template\Templater->callMacro('helper_js_globa...', 'body', Array, Array)
    #14 src/XF/Template/Templater.php(1663): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
    #15 src/XF/Admin/App.php(259): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
    #16 src/XF/App.php(2283): XF\Admin\App->renderPageHtml('
    
    
    
    
    <div cl...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
    #17 src/XF/Admin/App.php(138): XF\App->renderPage('
    
    
    
    
    <div cl...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
    #18 src/XF/Mvc/Dispatcher.php(404): XF\Admin\App->renderPage('
    
    
    
    
    <div cl...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
    #19 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
    #20 src/XF/App.php(2523): XF\Mvc\Dispatcher->run()
    #21 src/XF.php(524): XF\App->run()
    #22 admin.php(13): XF::runApp('XF\\Admin\\App')
    #23 {main}
    
          
    Request state
          
                array(4) {
    ["url"] => string(22) "/forum/admin.php?logs/"
    ["referrer"] => string(45) "https://pawngame.com/forum/admin.php?add-ons/"
    ["_GET"] => array(1) {
    ["logs/"] => string(0) ""
    }
    ["_POST"] => array(0) {
    }
    }

Delete
 
Do I need to do anything other than just re-uploading the files, such as rebuild? Because it didnt work, and it also makes thing difficult because I cant manage addons, have to disable all to disable the DB ones.
Did you use the archive installer in XenForo to upload the files? Manual uploads via places like cPanel or other control panels can cause files to be uploaded to the wrong location.
 
Back
Top Bottom