Depreciated API causing Errors #76


Open
  • BlackwaltzFour created this issue May 2, 2025

    I went to use Elephant today only to get the following error:
    Date: 2025-05-02 09:57:15
    ID: 1
    Error occured in: Global
    Count: 1
    Message: Interface/AddOns/Elephant/Broker.lua line 31:
    attempt to call global 'InterfaceOptionsFrame_OpenToCategory' (a nil value)
    Debug:
    [Interface/AddOns/Elephant/Broker.lua]:31: in function 'OnClick'
    [Interface/AddOns/totalRP3/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua]:179:
    ...AddOns/totalRP3/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:177
    Locals:
    self = LibDBIcon10_Elephant {
    fadeOut = AnimationGroup {
    }
    dataObject = <table> {
    }
    isMouseDown = false
    db = <table> {
    }
    icon = Texture {
    }
    }
    button = "RightButton"
    (*temporary) = nil
    (*temporary) = "Elephant"
    (*temporary) = "attempt to call global 'InterfaceOptionsFrame_OpenToCategory' (a nil value)"




    It looks like InterfaceOptionsFrame_OpenToCategory is depreciated API as it has been replaced with Settings.OpenToCategory

    So line 31 of Broker.LUA should be replaced with:

    Settings.OpenToCategory("Elephant")

  • BlackwaltzFour edited description May 2, 2025

To post a comment, please login or register a new account.