Lua errors when talking to/opening merchant/vendor windows
Speaker1264 opened this issue ยท 2 comments
Which software were you running?
- Addon version name: Scrap-10.1.7
- Client used: WotLK
Please describe the bug.
2 lua errors pop up when opening or talking to a merchant/vendor
Please describe how to reproduce it.
- Talk to vendor
Error Logs are Important!
Error 1:
Message: Interface/SharedXML/SharedUIPanelTemplates.lua:538: attempt to index local 'leftDisabled' (a nil value)
Time: Thu Oct 12 11:09:06 2023
Count: 1
Stack: Interface/SharedXML/SharedUIPanelTemplates.lua:538: attempt to index local 'leftDisabled' (a nil value)
[string "=[tsm error check]"]:1: in main chunk
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:538: in function `PanelTemplates_DeselectTab'
[string "@Interface/AddOns/Scrap/libs/SecureTabs-2.0/SecureTabs-2.0.lua"]:47: in function `Add'
[string "@Interface/AddOns/Scrap/addons/merchant/visualizer.lua"]:29: in function `?'
[string "@Interface/AddOns/BagBrother/libs/WildAddon-1.0/WildAddon-1.0.lua"]:20: in function <...dOns/BagBrother/libs/WildAddon-1.0/WildAddon-1.0.lua:18>
[string "@Interface/AddOns/BagBrother/libs/WildAddon-1.0/WildAddon-1.0.lua"]:56: in function <...dOns/BagBrother/libs/WildAddon-1.0/WildAddon-1.0.lua:53>
[string "=[C]"]: ?
[string "@Interface/AddOns/alaTradeSkill/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:29: in function <...ill/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:25>
[string "@Interface/AddOns/alaTradeSkill/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:64: in function `Fire'
[string "@Interface/AddOns/BagBrother/libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <...AddOns/BagBrother/libs/AceEvent-3.0/AceEvent-3.0.lua:119>
[string "=[C]"]: in function `LoadAddOn'
[string "@Interface/AddOns/Scrap/addons/main/main.lua"]:35: in function <Interface/AddOns/Scrap/addons/main/main.lua:35>
[string "=[C]"]: ?
[string "@Interface/AddOns/alaTradeSkill/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:29: in function <...ill/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:25>
[string "@Interface/AddOns/alaTradeSkill/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:64: in function `Fire'
[string "@Interface/AddOns/BagBrother/libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <...AddOns/BagBrother/libs/AceEvent-3.0/AceEvent-3.0.lua:119>
Locals:
Error 2:
Message: Interface/SharedXML/SharedUIPanelTemplates.lua:561: attempt to index local 'leftDisabled' (a nil value)
Time: Thu Oct 12 11:09:06 2023
Count: 1
Stack: Interface/SharedXML/SharedUIPanelTemplates.lua:561: attempt to index local 'leftDisabled' (a nil value)
[string "=[tsm error check]"]:1: in main chunk
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:561: in function `PanelTemplates_SelectTab'
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:382: in function `PanelTemplates_UpdateTabs'
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:363: in function <Interface/SharedXML/SharedUIPanelTemplates.lua:361>
[string "=[C]"]: in function `PanelTemplates_SetTab'
[string "@Interface_TBC/FrameXML/MerchantFrame.lua"]:93: in function <Interface_TBC/FrameXML/MerchantFrame.lua:87>
[string "=[C]"]: in function `Show'
[string "@Interface_Wrath/FrameXML/UIParent.lua"]:2282: in function `SetUIPanel'
[string "@Interface_Wrath/FrameXML/UIParent.lua"]:2127: in function `ShowUIPanel'
[string "@Interface_Wrath/FrameXML/UIParent.lua"]:1995: in function <Interface_Wrath/FrameXML/UIParent.lua:1991>
[string "=[C]"]: in function `SetAttribute'
[string "@Interface_Wrath/FrameXML/UIParent.lua"]:2806: in function `ShowUIPanel'
[string "@Interface_TBC/FrameXML/MerchantFrame.lua"]:45: in function `showFunc'
[string "@Interface/FrameXML/PlayerInteractionFrameManager.lua"]:183: in function <Interface/FrameXML/PlayerInteractionFrameManager.lua:172>
[string "=[C]"]: ?
[string "@Interface/AddOns/BagBrother/addons/core/features/autoDisplay.lua"]:84: in function `ShowFrame'
[string "@Interface/FrameXML/PlayerInteractionFrameManager.lua"]:215: in function <Interface/FrameXML/PlayerInteractionFrameManager.lua:212>
Locals:
In Scrap\libs\SecureTabs-2.0\SecureTabs-2.0.lua modifying the line
Lib.template = PanelTabButtonMixin and 'PanelTabButtonTemplate' or 'CharacterFrameTabButtonTemplate'
to
Lib.template = PanelTabButtonMixin and 'TabButtonTemplate' or 'CharacterFrameTabButtonTemplate'
will make the addon work again, although the Scrap button will look a bit weird.