WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Puzzling Error When Porting Classic AddOn to BFA (https://www.wowinterface.com/forums/showthread.php?t=57967)

mtp1032 04-28-20 10:02 AM

Puzzling Error When Porting Classic AddOn to BFA
 
Here is the error and its associated stack trace. When you look through the trace, lines from my code show the ChaChing directory.

All other addons are disabled. This error appears upon login. I can dismiss the dialog but it pops up almost immediately Thereafter.

Any advice on how to proceed would be appreciated.


Code:

PAGE 1
Message: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
Time: Tue Apr 28 09:29:14 2020
Count: 1
Stack: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
[string "@Interface\FrameXML\AzeriteBar.lua"]:24: in function `Update'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:151: in function `LayoutBar'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:177: in function `LayoutBars'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:84: in function `UpdateBarsShown'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:36: in function `AddBarFromTemplate'
[string "@Interface\FrameXML\MainMenuBar.lua"]:113: in function <Interface\FrameXML\MainMenuBar.lua:65>

Locals: self = <unnamed> {
 0 = <userdata>
 OnEnter = <function> defined @Interface\FrameXML\AzeriteBar.lua:86
 SetTextLocked = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:49
 AnimatedValueChangedCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:48
 Update = <function> defined @Interface\FrameXML\AzeriteBar.lua:17
 ShouldBeVisible = <function> defined @Interface\FrameXML\AzeriteBar.lua:9
 UpdatePointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:125
 priority = 0
 UpdateOverlayFrameText = <function> defined @Interface\FrameXML\AzeriteBar.lua:40
 SetBarColor = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:40
 CancelItemLoadCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:105
 UpdateTextVisibility = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:56
 StatusBar = <unnamed> {
 }
 ShouldBarTextBeDisplayed = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:45
 UpdateAll = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:18
 OnLoad = <function> defined @Interface\FrameXML\AzeriteBar.lua:53
 OnHide = <function> defined @Interface\FrameXML\AzeriteBar.lua:82
 GetPriority = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:3
 SetBarText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:24
 OnEvent = <function> defined @Interface\FrameXML\AzeriteBar.lua:59
 SetupPointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:112
 UpdateTick = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:14
 ShowText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:28
 OverlayFrame = <unnamed> {
 }
 OnShow = <function> defined @Interface\FrameXML\AzeriteBar.lua:77
 OnLeave = <function> defined @Interface\FrameXML\AzeriteBar.lua:97
 SetBarValues = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:36
 HideText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:32
}
azeriteItemLocation = <table> {
 GetBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:34
 equipmentSlotIndex = 2
 IsBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:52
 SetEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:38
 HasAnyLocation = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:56
 Clear = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:21
 IsEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:48
 IsEqualToBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:64
 SetBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:27
 IsEqualTo = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:80
 GetEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:44
 IsEqualToEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:72
 IsValid = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:60
}
(*temporary) = nil
(*temporary) = <table> {
 _init = <function> defined @Interface\AddOns\ChaChing\OO\ItemClass.lua:72
 getUnitSalesPrice = <function>

PAGE 2
Message: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
Time: Tue Apr 28 09:29:17 2020
Count: 76
Stack: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
[string "@Interface\FrameXML\AzeriteBar.lua"]:24: in function `Update'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:151: in function `LayoutBar'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:177: in function `LayoutBars'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:84: in function `UpdateBarsShown'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:209: in function <Interface\FrameXML\StatusTrackingManager.lua:205>

Locals: self = <unnamed> {
 0 = <userdata>
 OnEnter = <function> defined @Interface\FrameXML\AzeriteBar.lua:86
 SetTextLocked = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:49
 AnimatedValueChangedCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:48
 Update = <function> defined @Interface\FrameXML\AzeriteBar.lua:17
 ShouldBeVisible = <function> defined @Interface\FrameXML\AzeriteBar.lua:9
 UpdatePointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:125
 priority = 0
 UpdateOverlayFrameText = <function> defined @Interface\FrameXML\AzeriteBar.lua:40
 SetBarColor = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:40
 CancelItemLoadCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:105
 UpdateTextVisibility = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:56
 StatusBar = <unnamed> {
 }
 ShouldBarTextBeDisplayed = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:45
 UpdateAll = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:18
 OnLoad = <function> defined @Interface\FrameXML\AzeriteBar.lua:53
 OnHide = <function> defined @Interface\FrameXML\AzeriteBar.lua:82
 GetPriority = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:3
 SetBarText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:24
 OnEvent = <function> defined @Interface\FrameXML\AzeriteBar.lua:59
 SetupPointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:112
 UpdateTick = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:14
 ShowText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:28
 OverlayFrame = <unnamed> {
 }
 OnShow = <function> defined @Interface\FrameXML\AzeriteBar.lua:77
 OnLeave = <function> defined @Interface\FrameXML\AzeriteBar.lua:97
 SetBarValues = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:36
 HideText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:32
}
azeriteItemLocation = <table> {
 GetBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:34
 equipmentSlotIndex = 2
 IsBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:52
 SetEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:38
 HasAnyLocation = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:56
 Clear = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:21
 IsEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:48
 IsEqualToBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:64
 SetBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:27
 IsEqualTo = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:80
 GetEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:44
 IsEqualToEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:72
 IsValid = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:60
}
(*temporary) = nil
(*temporary) = <table> {
 _init = <function> defined @Interface\AddOns\ChaChing\OO\ItemClass.lua:72
 getUnitSalesPrice = <function> defined @Interface\AddOns\ChaChing\OO\ItemClass.lua:120
 getLink = <fun

PAGE 3
Message: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
Time: Tue Apr 28 09:29:14 2020
Count: 1
Stack: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
[string "@Interface\FrameXML\AzeriteBar.lua"]:24: in function `Update'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:151: in function `LayoutBar'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:177: in function `LayoutBars'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:84: in function `UpdateBarsShown'
[string "*:OnEvent"]:4: in function <[string "*:OnEvent"]:1>

Locals: self = <unnamed> {
 0 = <userdata>
 OnEnter = <function> defined @Interface\FrameXML\AzeriteBar.lua:86
 SetTextLocked = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:49
 AnimatedValueChangedCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:48
 Update = <function> defined @Interface\FrameXML\AzeriteBar.lua:17
 ShouldBeVisible = <function> defined @Interface\FrameXML\AzeriteBar.lua:9
 UpdatePointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:125
 priority = 0
 UpdateOverlayFrameText = <function> defined @Interface\FrameXML\AzeriteBar.lua:40
 SetBarColor = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:40
 CancelItemLoadCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:105
 UpdateTextVisibility = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:56
 StatusBar = <unnamed> {
 }
 ShouldBarTextBeDisplayed = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:45
 UpdateAll = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:18
 OnLoad = <function> defined @Interface\FrameXML\AzeriteBar.lua:53
 OnHide = <function> defined @Interface\FrameXML\AzeriteBar.lua:82
 GetPriority = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:3
 SetBarText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:24
 OnEvent = <function> defined @Interface\FrameXML\AzeriteBar.lua:59
 SetupPointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:112
 UpdateTick = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:14
 ShowText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:28
 OverlayFrame = <unnamed> {
 }
 OnShow = <function> defined @Interface\FrameXML\AzeriteBar.lua:77
 OnLeave = <function> defined @Interface\FrameXML\AzeriteBar.lua:97
 SetBarValues = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:36
 HideText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:32
}
azeriteItemLocation = <table> {
 GetBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:34
 equipmentSlotIndex = 2
 IsBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:52
 SetEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:38
 HasAnyLocation = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:56
 Clear = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:21
 IsEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:48
 IsEqualToBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:64
 SetBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:27
 IsEqualTo = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:80
 GetEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:44
 IsEqualToEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:72
 IsValid = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:60
}
(*temporary) = nil
(*temporary) = <table> {
 _init = <function> defined @Interface\AddOns\ChaChing\OO\ItemClass.lua:72`
 getUnitSalesPrice = <function> defined @Interface\AddOns\ChaChing\OO\ItemClass.lua:120
 getLink = <function> defined @Interface\AddOns\ChaChing\OO\ItemClass.lua:111 
g
PAGE 4
Message: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
Time: Tue Apr 28 09:29:14 2020
Count: 1
Stack: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
[string "@Interface\FrameXML\AzeriteBar.lua"]:24: in function `Update'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:151: in function `LayoutBar'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:177: in function `LayoutBars'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:84: in function `UpdateBarsShown'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:72: in function `SetBarSize'
[string "@Interface\FrameXML\MainMenuBar.lua"]:364: in function `ChangeMenuBarSizeAndPosition'
[string "@Interface\FrameXML\MultiActionBars.lua"]:49: in function `cb'
[string "@Interface\FrameXML\MultiActionBars.lua"]:44: in function <Interface\FrameXML\MultiActionBars.lua:34>
[string "@Interface\FrameXML\MultiActionBars.lua"]:69: in function `MultiActionBar_Update'
[string "@Interface\FrameXML\ActionBarController.lua"]:169: in function `ValidateActionBarTransition'
[string "@Interface\FrameXML\ActionBarController.lua"]:137: in function `ActionBarController_UpdateAll'
[string "@Interface\FrameXML\ActionBarController.lua"]:54: in function <Interface\FrameXML\ActionBarController.lua:51>

Locals: self = <unnamed> {
 0 = <userdata>
 OnEnter = <function> defined @Interface\FrameXML\AzeriteBar.lua:86
 SetTextLocked = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:49
 AnimatedValueChangedCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:48
 Update = <function> defined @Interface\FrameXML\AzeriteBar.lua:17
 ShouldBeVisible = <function> defined @Interface\FrameXML\AzeriteBar.lua:9
 UpdatePointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:125
 priority = 0
 UpdateOverlayFrameText = <function> defined @Interface\FrameXML\AzeriteBar.lua:40
 SetBarColor = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:40
 CancelItemLoadCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:105
 UpdateTextVisibility = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:56
 StatusBar = <unnamed> {
 }
 ShouldBarTextBeDisplayed = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:45
 UpdateAll = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:18
 OnLoad = <function> defined @Interface\FrameXML\AzeriteBar.lua:53
 OnHide = <function> defined @Interface\FrameXML\AzeriteBar.lua:82
 GetPriority = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:3
 SetBarText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:24
 OnEvent = <function> defined @Interface\FrameXML\AzeriteBar.lua:59
 SetupPointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:112
 UpdateTick = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:14
 ShowText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:28
 OverlayFrame = <unnamed> {
 }
 OnShow = <function> defined @Interface\FrameXML\AzeriteBar.lua:77
 OnLeave = <function> defined @Interface\FrameXML\AzeriteBar.lua:97
 SetBarValues = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:36
 HideText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:32
}
azeriteItemLocation = <table> {
 GetBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:34
 equipmentSlotIndex = 2
 IsBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:52
 SetEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:38
 HasAnyLocation = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:56
 Clear = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:21
 IsEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:48
 IsEqualToBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:64
 S


PAGE 5
Message: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
Time: Tue Apr 28 09:29:15 2020
Count: 1
Stack: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
[string "@Interface\FrameXML\AzeriteBar.lua"]:24: in function `Update'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:151: in function `LayoutBar'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:177: in function `LayoutBars'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:84: in function `UpdateBarsShown'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:72: in function `SetBarSize'
[string "@Interface\FrameXML\MainMenuBar.lua"]:364: in function `ChangeMenuBarSizeAndPosition'
[string "@Interface\FrameXML\MultiActionBars.lua"]:49: in function `cb'
[string "@Interface\FrameXML\MultiActionBars.lua"]:44: in function <Interface\FrameXML\MultiActionBars.lua:34>
[string "@Interface\FrameXML\MultiActionBars.lua"]:69: in function `MultiActionBar_Update'
[string "@Interface\FrameXML\ActionBarController.lua"]:169: in function `ValidateActionBarTransition'
[string "@Interface\FrameXML\ActionBarController.lua"]:137: in function `ActionBarController_UpdateAll'
[string "@Interface\FrameXML\ActionBarController.lua"]:62: in function <Interface\FrameXML\ActionBarController.lua:51>

Locals: self = <unnamed> {
 0 = <userdata>
 OnEnter = <function> defined @Interface\FrameXML\AzeriteBar.lua:86
 SetTextLocked = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:49
 AnimatedValueChangedCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:48
 Update = <function> defined @Interface\FrameXML\AzeriteBar.lua:17
 ShouldBeVisible = <function> defined @Interface\FrameXML\AzeriteBar.lua:9
 UpdatePointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:125
 priority = 0
 UpdateOverlayFrameText = <function> defined @Interface\FrameXML\AzeriteBar.lua:40
 SetBarColor = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:40
 CancelItemLoadCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:105
 UpdateTextVisibility = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:56
 StatusBar = <unnamed> {
 }
 ShouldBarTextBeDisplayed = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:45
 UpdateAll = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:18
 OnLoad = <function> defined @Interface\FrameXML\AzeriteBar.lua:53
 OnHide = <function> defined @Interface

\FrameXML\AzeriteBar.lua:82
 GetPriority = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:3
 SetBarText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:24
 OnEvent = <function> defined @Interface\FrameXML\AzeriteBar.lua:59
 SetupPointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:112
 UpdateTick = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:14
 ShowText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:28
 OverlayFrame = <unnamed> {
 }
 OnShow = <function> defined @Interface\FrameXML\AzeriteBar.lua:77
 OnLeave = <function> defined @Interface\FrameXML\AzeriteBar.lua:97
 SetBarValues = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:36
 HideText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:32
}
azeriteItemLocation = <table> {
 GetBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:34
 equipmentSlotIndex = 2
 IsBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:52
 SetEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:38
 HasAnyLocation = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:56
 Clear = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:21
 IsEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:48
 IsEqualToBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:64
 S

PAGE 5
Message: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
Time: Tue Apr 28 09:29:15 2020
Count: 1
Stack: Interface\FrameXML\AzeriteBar.lua:24: attempt to call method 'CreateFromItemLocation' (a nil value)
[string "@Interface\FrameXML\AzeriteBar.lua"]:24: in function `Update'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:151: in function `LayoutBar'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:177: in function `LayoutBars'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:84: in function `UpdateBarsShown'
[string "@Interface\FrameXML\StatusTrackingManager.lua"]:72: in function `SetBarSize'
[string "@Interface\FrameXML\MainMenuBar.lua"]:364: in function `ChangeMenuBarSizeAndPosition'
[string "@Interface\FrameXML\MultiActionBars.lua"]:49: in function `cb'
[string "@Interface\FrameXML\MultiActionBars.lua"]:44: in function <Interface\FrameXML\MultiActionBars.lua:34>
[string "@Interface\FrameXML\MultiActionBars.lua"]:69: in function `MultiActionBar_Update'
[string "@Interface\FrameXML\ActionBarController.lua"]:169: in function `ValidateActionBarTransition'
[string "@Interface\FrameXML\ActionBarController.lua"]:137: in function `ActionBarController_UpdateAll'
[string "@Interface\FrameXML\ActionBarController.lua"]:62: in function <Interface\FrameXML\ActionBarController.lua:51>

Locals: self = <unnamed> {
 0 = <userdata>
 OnEnter = <function> defined @Interface\FrameXML\AzeriteBar.lua:86
 SetTextLocked = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:49
 AnimatedValueChangedCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:48
 Update = <function> defined @Interface\FrameXML\AzeriteBar.lua:17
 ShouldBeVisible = <function> defined @Interface\FrameXML\AzeriteBar.lua:9
 UpdatePointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:125
 priority = 0
 UpdateOverlayFrameText = <function> defined @Interface\FrameXML\AzeriteBar.lua:40
 SetBarColor = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:40
 CancelItemLoadCallback = <function> defined @Interface\FrameXML\AzeriteBar.lua:105
 UpdateTextVisibility = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:56
 StatusBar = <unnamed> {
 }
 ShouldBarTextBeDisplayed = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:45
 UpdateAll = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:18
 OnLoad = <function> defined @Interface\FrameXML\AzeriteBar.lua:53
 OnHide = <function> defined @Interface\FrameXML\AzeriteBar.lua:82
 GetPriority = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:3
 SetBarText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:24
 OnEvent = <function> defined @Interface\FrameXML\AzeriteBar.lua:59
 SetupPointsTooltip = <function> defined @Interface\FrameXML\AzeriteBar.lua:112
 UpdateTick = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:14
 ShowText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:28
 OverlayFrame = <unnamed> {
 }
 OnShow = <function> defined @Interface\FrameXML\AzeriteBar.lua:77
 OnLeave = <function> defined @Interface\FrameXML\AzeriteBar.lua:97
 SetBarValues = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:36
 HideText = <function> defined @Interface\FrameXML\StatusTrackingBar.lua:32
}
azeriteItemLocation = <table> {
 GetBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:34
 equipmentSlotIndex = 2
 IsBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:52
 SetEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:38
 HasAnyLocation = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:56
 Clear = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:21
 IsEquipmentSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:48
 IsEqualToBagAndSlot = <function> defined @Interface\FrameXML\ObjectAPI\ItemLocation.lua:64
 S


SDPhantom 04-28-20 11:30 AM

The error points to this line in AzeriteBar.lua.
Code:

local azeriteItem = Item:CreateFromItemLocation(azeriteItemLocation);
This references an API called Item located in ObjectAPI\Item.lua.

The error is complaining that a function located in this global table is no longer there and AzeriteBarMixin:Update() is still trying to call it.

mtp1032 04-28-20 11:52 AM

Thanks. Looks like I'll need to change the name to something else.

SDPhantom 04-28-20 12:02 PM

I'd highly suggest using local variables. Nothing outside of your code can access them and similarly, it can't interfere with anyone else's code. If you have to use a global, be sure to prefix the name with something unique like the name of your addon to prevent collisions like this.


All times are GMT -6. The time now is 11:12 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI