Scrap (Junk Seller)

Scrap (Junk Seller)

21M Downloads

Lua error about GetContainerItemInfo when entering world on Classic Era or Hardcore 1.14.4

gouletr opened this issue ยท 2 comments

commented

Running Software (issues missing this information will be deleted):

  • Addon version: 10.1.2
  • Server patch: 1.14.4 (51146)

Have you read the changelog? (please don't waste our time)
Yes

Describe the bug
Lua error upon entering world and Scrap options panel not visible.

To Reproduce
Just enter world on WoW Classic Era or Hardcore (1.14.4) with Scrap addon installed.

Expected behaviour
No lua error, and Scrap options are visible in Options->Addons section.

Screenshots
No screenshot needed, simple lua error.

Error Logs

Message: Interface/AddOns/Scrap/addons/main/pricing.lua:40: attempt to call global 'GetContainerItemInfo' (a nil value)
Time: Fri Sep  8 17:02:33 2023
Count: 3
Stack: Interface/AddOns/Scrap/addons/main/pricing.lua:40: attempt to call global 'GetContainerItemInfo' (a nil value)
[string "=(tail call)"]: ?
[string "=[C]"]: in function `GetContainerItemInfo'
[string "@Interface/AddOns/Scrap/addons/main/pricing.lua"]:40: in function <Interface/AddOns/Scrap/addons/main/pricing.lua:39>
[string "=[C]"]: in function `SetBagItem'
[string "@Interface/AddOns/TradeSkillMaster/LibTSM/Service/TooltipScanning.lua"]:168: in function `SetContainerItem'
[string "@Interface/AddOns/TradeSkillMaster/LibTSM/Service/TooltipScanning.lua"]:33: in function `IsSoulbound'
[string "@Interface/AddOns/TradeSkillMaster/LibTSM/Service/InventoryInfo.lua"]:79: in function `IsSoulbound'
[string "@Interface/AddOns/TradeSkillMaster/LibTSM/Service/BagTracking.lua"]:646: in function `ScanBagSlot'
[string "@Interface/AddOns/TradeSkillMaster/LibTSM/Service/BagTracking.lua"]:557: in function `ScanBagOrBank'
[string "@Interface/AddOns/TradeSkillMaster/LibTSM/Service/BagTracking.lua"]:450: in function `BagUpdateDelayedHandler'
[string "@Interface/AddOns/TradeSkillMaster/LibTSM/Service/BagTracking.lua"]:211: in function `gameDataLoadFunc'
[string "@Interface/AddOns/TradeSkillMaster/LibTSM/Core.lua"]:181: in function `ProcessGameDataLoad'
[string "@Interface/AddOns/TradeSkillMaster/LibTSM/Core.lua"]:226: in function <Interface/AddOns/TradeSkillMaster/LibTSM/Core.lua:208>

Locals: (*temporary) = <function> defined =[C]:-1

Additional context
None.

commented

An easy fix is to add in pricing.lua

local C = LibStub('C_Everywhere').Container

like you have elsewhere, and change the call from GetContainerItemInfo to C.GetContainerItemInfo.

commented

No clue why the Scrap options are not showing thought.