raiderio-addon
raiderio-addon copied to clipboard
Error when initialize plugin - InterfaceOptions_AddCategory
Description :
When launching game with retail expension (The War Within v11.0.2 - 56513 - x64 - Sep 5 2024) we got LUA error on addon initialization.
Error stack :
Message: Interface/AddOns/RaiderIO/core.lua:13339: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
Time: Tue Sep 17 18:02:11 2024
Count: 1
Stack: Interface/AddOns/RaiderIO/core.lua:13339: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
[string "@Interface/AddOns/RaiderIO/core.lua"]:13339: in function `CreateInterfacePanel'
[string "@Interface/AddOns/RaiderIO/core.lua"]:13439: in main chunk
Suggestion :
Change line 13339 :
InterfaceOptions_AddCategory(panel, true)
By :
if InterfaceOptions_AddCategory then
InterfaceOptions_AddCategory(panel, true)
else
local category, layout = _G.Settings.RegisterCanvasLayoutCategory(panel, panel.name)
_G.Settings.RegisterAddOnCategory(category)
end