Bagnon

Bagnon

122M Downloads

Attempt to call global 'GetContainerNumFreeSlots' (a nil value)

meyverick opened this issue ยท 5 comments

commented

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

  • Addon version: 10.0.3
  • Server patch: 10.0.2.46658

Describe the bug
I can't open my bags.

To Reproduce

  1. Start the game,
  2. Login,
  3. Press the inventory key,
  4. Get the error.

Expected behaviour
Open my bags.

Error Logs

Date: 2022-11-16 07:14:19
ID: 7
Error occured in: Global
Count: 1
Message: ...Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua line 178:
   attempt to call global 'GetContainerNumFreeSlots' (a nil value)
Debug:
   [string "@Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua"]:178:
      ...Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:160
   [string "=(tail call)"]: ?
   [string "@Interface/AddOns/Bagnon/common/Wildpants/classes/frame.lua"]:117:
      ...ace/AddOns/Bagnon/common/Wildpants/classes/frame.lua:116
   [string "=(tail call)"]: ?
   [string "@Interface/AddOns/Bagnon/common/Wildpants/classes/itemGroup.lua"]:46: RegisterEvents()
   [string "@Interface/AddOns/Bagnon/common/Wildpants/classes/itemGroup.lua"]:32: Update()
   [string "@Interface/AddOns/Bagnon/common/Wildpants/classes/itemGroup.lua"]:27:
      ...AddOns/Bagnon/common/Wildpants/classes/itemGroup.lua:13
   [string "=(tail call)"]: ?
   [string "@Interface/AddOns/Bagnon/addons/main/frame.lua"]:26: New()
   [string "@Interface/AddOns/Bagnon/common/Wildpants/api/frames.lua"]:44: New()
   [string "@Interface/AddOns/Bagnon/common/Wildpants/api/frames.lua"]:81: Show()
   [string "@Interface/AddOns/Bagnon/common/Wildpants/api/frames.lua"]:77:
      ...erface/AddOns/Bagnon/common/Wildpants/api/frames.lua:76
   [string "=(tail call)"]: ?
   [string "@Interface/AddOns/Bagnon/common/Wildpants/features/autoDisplay.lua"]:82:
      ...Ons/Bagnon/common/Wildpants/features/autoDisplay.lua:81
   [string "@Interface/AddOns/ZygorGuidesViewer/InventoryManager.lua"]:650: ToggleAllBags()
   [string "OPENALLBAGS"]:1:
      [string "OPENALLBAGS"]:1
Locals:
self = <table> {
 IsKeyring = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:405
 FrameTemplate = "BackdropTemplate"
 IsRetail = true
 GetOwnerID = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:285
 Frames = <table> {
 }
 Currency = <table> {
 }
 InBank = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:382
 ItemGroup = <table> {
 }
 RestoreItemData = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:319
 Frame = <table> {
 }
 OptionsToggle = <table> {
 }
 Bag = <table> {
 }
 IsBank = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:409
 RegisterMessage = <function> defined @Interface/AddOns/Auctioneer/Libs/LibDataBroker/CallbackHandler/CallbackHandler-1.0.lua:90
 UnregisterMessage = <function> defined @Interface/AddOns/Auctioneer/Libs/LibDataBroker/CallbackHandler/CallbackHandler-1.0.lua:153
 IsBagCached = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:306
 Base = <table> {
 }
 UnregisterSignal = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/WildAddon-1.0/WildAddon-1.0.lua:78
 GetOwnerAddress = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:290
 RegisterEvent = <function> defined @Interface/AddOns/Auctioneer/Libs/LibDataBroker/CallbackHandler/CallbackHandler-1.0.lua:90
 sets = <table> {
 }
 OnEnable = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/Wildpants.lua:101
 Name = "Bagnon"
 IterateOwners = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:129
 InGuild = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:390
 Parented = <table> {
 }
 NewModule = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/WildAddon-1.0/WildAddon-1.0.lua:68
 RestorePetLinkData = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:373
 Item = <table> {
 }
 IsClassic = false
 OwnerSelector = <table> {
 }
 Commands = <table> {
 }
 profile = <table> {
 }
 SortButton = <table> {
 }
 ItemSlot = <table> {
 }
 InventoryFrame = <table> {
 }
 SearchToggle = <table> {
 }
 SearchFrame = <table> {
 }
 BagGroup = <table> {
 }
 BrokerCarrousel = <table> {
 }
 Events = <table> {
 }
 LDB = <table> {
 }
 TooltipCounts = <table> {
 }
 Title = <table> {
 }
 AutoDisplay = <table> {
 }
 Tag = "BAGNON_"
 GetItemInfo = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:221
 IsBackpackBag = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:401
 GetOwnerInfo = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:89
 PickupItem = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:265
 ShowOptions = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/Wildpants.lua:159
 UnregisterAllEvents = <function> defined @Interface/AddOns/Auctioneer/Libs/LibDataBroker/CallbackHandler/CallbackHandler-1.0.lua:174
 BankFrame = <table> {
 }
 DropButton = <table> {
 }
 GetItemID = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:244
 IsReagents = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:417
 IsBankBag = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:413
 Owners = <table> {
 }
 Sorting = <table> {
 }
 GetBagInfo = <function> defined @Interface/AddOns/Bagnon/common/Wildpants/libs/LibItemCache-2.0/LibItemCache-2.0.lua:160
 BagToggle = <table> {
 }
 CurrencyTracker = <table> {
 }
 SendSignal = <function> defin
AddOns:
  Swatter, v<%version%> (<%codename%>)
  WowheadLooter, v100002
  Auctioneer, v9.1.BETA.5.4 (OneMawTime)
  AuctioneerStatsOverTime, v9.1.BETA.5.4 (OneMawTime)
  AuctioneerUtilDealFinder, v9.1.BETA.5.4 (OneMawTime)
  AuctioneerUtilValuer, v9.1.BETA.5.4 (OneMawTime)
  BagBrother, v
  Bagnon, v10.0.3
  Bartender4, v4.13.6
  Buffet, v10.0.0.94
  DejaCharacterStats, vR100000r1
  Details, v#Details.DF.Wrath.10259.146
  DetailsEncounterDetails, v
  DetailsRaidCheck, v
  DetailsStreamer, v
  DetailsTinyThreat, v
  DetailsVanguard, v
  GSE, v3.1.19
  GSELDB, v3.1.19
  Informant, v<%version%> (<%codename%>)
  MacroToolkit, vv10.0.0-9
  MacroToolkitIcons, v7.2.0.0
  Pawn, v2.7.8
  Plater, vPlater-v538-Retail
  Postal, vv3.8.7
  Prat30, v3.9.12
  Prat30Libraries, v
  Quartz, v3.7.1
  Scrap, v10.0.3
  SexyMap, vv10.0.7
  ShadowedUnitFrames, vv4.4.1
  SpeedyAutoLoot, v2.2.3
  Stubby, v9.1.BETA.5.4 (OneMawTime)
  tdBattlePetScript, vv1.4
  WeakAuras, v5.2.0
  WIM, v3.9.11
  ZygorGuidesViewer, v8.1
  BlizRuntimeLib_enUS v10.0.2.100002 <none>
  (ck=412)
commented

Change:
GetContainerNumFreeSlots
to:
C_Container.GetContainerNumFreeSlots

commented

I try to look to a lot of .lua files and cant find it can you please let me know the name of the .lua or the path so i can find it? Thank you in advance for your time

commented

Oh i just see it LibItemCache-2.0.lua..... blind

commented

Ok the GetContainerNumFreeSlots is fixed but now i have an error with C_Container any thoughts ?

Message: ...erface/AddOns/Bagnon/common/Wildpants/api/events.lua:91: attempt to index field 'C_Container' (a nil value)
Time: Wed Nov 16 20:10:52 2022
Count: 1
Stack: ...erface/AddOns/Bagnon/common/Wildpants/api/events.lua:91: attempt to index field 'C_Container' (a nil value)
[string "@Interface/AddOns/Bagnon/common/Wildpants/libs/WildAddon-1.0/WildAddon-1.0.lua"]:56: in function <...ommon/Wildpants/libs/WildAddon-1.0/WildAddon-1.0.lua:53>
[string "=[C]"]: ?
[string "@Interface/AddOns/Bagnon/common/Wildpants/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:29: in function <...nts/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:25>
[string "@Interface/AddOns/Bagnon/common/Wildpants/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:64: in function Fire' [string "@Interface/AddOns/Bagnon/common/Wildpants/libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <.../common/Wildpants/libs/AceEvent-3.0/AceEvent-3.0.lua:119> [string "=[C]"]: in function LoadAddOn'
[string "@Interface/FrameXML/UIParent.lua"]:536: in function UIParentLoadAddOn' [string "@Interface/FrameXML/UIParent.lua"]:667: in function TimeManager_LoadUI'
[string "@Interface/FrameXML/UIParent.lua"]:1482: in function <Interface/FrameXML/UIParent.lua:1362>

Locals:

commented

Compatility between Retail and Classic: ;-)
(C_Container and C_Container.GetContainerNumFreeSlots or GetContainerNumFreeSlots)()