Quantcast
Puzzling Error When Porting Classic AddOn to BFA - WoWInterface
Thread Tools Display Modes
04-28-20, 10:02 AM   #1
mtp1032
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 22
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
  Reply With Quote
04-28-20, 11:30 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,924
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.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 04-28-20 at 11:50 AM.
  Reply With Quote
04-28-20, 11:52 AM   #3
mtp1032
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 22
Thanks. Looks like I'll need to change the name to something else.
  Reply With Quote
04-28-20, 12:02 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,924
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.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 04-28-20 at 12:04 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Puzzling Error When Porting Classic AddOn to BFA

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off