shirsig / aux-addon

Auction House addOn for Classic (1.13) IMPORTANT: The folder name must be "aux-addon" IMPORTANT: The Vanilla (1.12) version moved here https://github.com/shirsig/aux-addon-vanilla
https://www.curseforge.com/wow/addons/aux
196 stars 42 forks source link

lua error: I was testing the /aux bid (and reload) and: core.lua:320: attempt to perform arithmetic on a nil value #212

Closed mooreatv closed 5 years ago

mooreatv commented 5 years ago
3x aux-addon\tabs\post\core.lua:320: attempt to perform arithmetic on a nil value
aux-addon\tabs\post\core.lua:320: in function `update_item_configuration'
aux-addon\tabs\post\core.lua:541: in function <aux-addon\tabs\post\core.lua:537>

Locals:
deposit_factor = 0.050000
(*temporary) = nil
(*temporary) = 480
(*temporary) = nil
(*temporary) = 1
(*temporary) = 2
(*temporary) = 2
(*temporary) = 8
(*temporary) = 3
(*temporary) = 24
(*temporary) = <table> {
 1 = 2
 2 = 8
 3 = 24
}
(*temporary) = 5
(*temporary) = "attempt to perform arithmetic on a nil value"
aux = <table> {
}
info = <table> {
}
money = <table> {
}

image

mooreatv commented 5 years ago

and then trying to turn bid off:

Message: Interface\AddOns\aux-addon\core\slash.lua:62: attempt to concatenate a nil value
Time: Sun Sep  1 02:56:25 2019
Count: 1
Stack: Interface\AddOns\aux-addon\core\slash.lua:62: attempt to concatenate a nil value
Interface\AddOns\aux-addon\core\slash.lua:62: in function `?'
Interface\FrameXML\ChatFrame.lua:4606: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:4267: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:4303: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals: command = "bid"
arguments = <table> {
 1 = "bid"
}
tooltip_settings = <table> {
 merchant_buy = false
 merchant_sell = false
 value = true
 disenchant_distribution = false
 disenchant_value = false
 daily = false
}
(*temporary) = <function> defined @Interface\AddOns\aux-addon\aux-addon.lua:6
(*temporary) = "- post duration ["
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = "h"
(*temporary) = nil
(*temporary) = 1
(*temporary) = 2
(*temporary) = "attempt to concatenate a nil value"
aux = <table> {
}
T = <table> {
}
post = <table> {
}
info = <table> {
}
shirsig commented 5 years ago

seems like your default post duration is corrupted. try /aux post duration 8 And for each item where the duration dropdown says "custom" you'll have to select something valid instead.

mooreatv commented 5 years ago

interesting, I wonder how that happened - thanks (maybe add some code so it doesn't blow up in that case though? default back to short or some such)